/* ===========================================================================
   NINTA — Capa de marca v2.17
   Pedido de Karen (1 dic 2026): mobile first, curvas más sutiles, más
   animación, detalles de fondo que realcen la marca y menos sensación de
   sitio "plano y vacío".
   - Se carga DESPUÉS de ninta.css y ninta-home.css: solo sobrescribe.
   - Fondo de marca: curvas de nivel (como un mapa topográfico de los volcanes
     de Guanacaste) en assets/img/contour-*.svg. Muy suave, nunca detrás de texto
     largo con poco contraste.
   - Animaciones: solo transform/opacity, y se apagan con "reducir movimiento".
   ======================================================================== */

/* ---------- 1. Curvas más sutiles (v2.20: aún menos redondo) ---------- */
:root{
  --ninta-radius-lg:14px;
  --ninta-radius:10px;
  --ninta-radius-sm:6px;
  --ninta-radius-pill:6px;    /* botones y pestañas: esquina apenas curva */
  --ninta-chip:4px;           /* etiquetas chicas: también rectas con curva leve */
  --ninta-mono:var(--ninta-sans); /* sin IBM Plex Mono: una fuente menos */
  --nb-ease:cubic-bezier(.2,.7,.2,1);
  --nb-contour-green:url(../img/contour-green.svg);
  --nb-contour-light:url(../img/contour-light.svg);
}
.nh-journey,.nh-final{border-radius:16px}
.nh-story .ninta-split__img{border-radius:var(--ninta-radius-lg)}
.nh-pill,.nh-card__rating,.nh-mood span,.ninta-tour-badge,.ninta-tour-dur{border-radius:var(--ninta-chip)}
.nh-card__photo{border-radius:var(--ninta-radius-sm)}
@media(max-width:680px){
  .nh-sec--tint,.ninta-cta-band,.ninta-band-green{border-radius:12px}
  .nh-journey,.nh-final{border-radius:12px}
}

/* Etiquetas (eyebrows): Karla, más presentes, con un trazo de marca */
.ninta-eyebrow,.ninta-hero .eyebrow,.ninta-sec-head .eyebrow,.ninta-split .eyebrow,.nh .eyebrow,
.ninta-route-eyebrow,.ninta-fleet-eyebrow,.ninta-article-cat{
  font-family:var(--ninta-sans);font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ninta-terracota-ink)}
.nh .nh-head .eyebrow,.ninta-sec-head .eyebrow{display:inline-flex;align-items:center;gap:10px}
.nh .nh-head .eyebrow::before,.ninta-sec-head .eyebrow::before{
  content:"";width:28px;height:8px;flex:none;
  background:no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 8'%3E%3Cpath d='M1 5c4-4 7-4 10 0s6 4 9 0 5-3 7-1' fill='none' stroke='%23A8501F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
.nh-head--light .eyebrow,.nh-eyebrow-light{color:#EFD9C6 !important}

/* ---------- 2. Botones con vida ---------- */
.ninta-btn{transition:transform .25s var(--nb-ease),background .2s,box-shadow .25s,color .2s}
.ninta-btn:hover{transform:translateY(-2px)}
.ninta-btn--primary{box-shadow:0 6px 16px rgba(168,80,31,.25)}
.ninta-btn--primary:hover{box-shadow:0 10px 24px rgba(168,80,31,.32)}
.ninta-btn svg{transition:transform .25s var(--nb-ease)}
.ninta-btn:hover svg{transform:translateX(2px)}

/* ---------- 3. Fondos de marca (en TODA la web) ----------
   a) Curvas de nivel: el "mapa topográfico" de los volcanes de Guanacaste.
   b) Silueta de volcanes (Rincón de la Vieja, Miravalles, Tenorio) sobre el
      pie de página y al final de las bandas verdes.
   Se ven claramente pero nunca compiten con el texto. */
html,body{overflow-x:clip} /* las curvas de fondo nunca generan scroll lateral */
.nh,.ninta-home{position:relative;isolation:isolate}

/* a) Curvas de nivel en secciones claras: esquinas alternas */
.nh-sec,.ninta-sec,.ninta-sec--tight,.ninta-section{position:relative;isolation:isolate}
.nh-sec::before,
.ninta-sec:not(.ninta-band-green):not(.ninta-cta-band)::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;width:min(820px,135vw);aspect-ratio:1;
  background:var(--nb-contour-green) no-repeat center/contain;opacity:.2}
.nh-sec:nth-of-type(odd)::before,.ninta-sec:nth-of-type(odd)::before{right:-300px;top:-160px}
.nh-sec:nth-of-type(even)::before,.ninta-sec:nth-of-type(even)::before{left:-340px;bottom:-240px}
.nh-sec--tint{overflow:hidden;z-index:0}
.nh-sec--tint::before{opacity:.22}
@media(max-width:680px){
  .nh-sec::before,.ninta-sec:not(.ninta-band-green):not(.ninta-cta-band)::before{width:150vw;opacity:.18}
  .nh-sec:nth-of-type(odd)::before,.ninta-sec:nth-of-type(odd)::before{right:-70vw;top:-60px}
  .nh-sec:nth-of-type(even)::before,.ninta-sec:nth-of-type(even)::before{left:-80vw;bottom:-90px}
}

/* Héroes (todas las plantillas): curvas claras sobre el verde o la foto */
.nh-hero::after,.ninta-hero::after,.ninta-hero-img::after,.ninta-article-hero::after{
  content:"";position:absolute;right:-180px;bottom:-280px;width:min(900px,150vw);aspect-ratio:1;
  background:var(--nb-contour-light) no-repeat center/contain;opacity:.22;pointer-events:none;z-index:0}
.ninta-hero,.ninta-hero-img,.ninta-article-hero{position:relative;overflow:hidden;isolation:isolate}
.ninta-hero > *,.ninta-hero-img > *,.ninta-article-hero > *{position:relative;z-index:1}
/* Página de cada hotel: cabecera clara con curvas verdes */
.ninta-route-hero{position:relative;isolation:isolate}
.ninta-route-hero::before{content:"";position:absolute;z-index:-1;pointer-events:none;right:-260px;top:-200px;width:760px;aspect-ratio:1;
  background:var(--nb-contour-green) no-repeat center/contain;opacity:.12}

/* Bandas verdes y cierres: curvas claras + volcanes al pie */
.nh-journey,.ninta-band-green,.ninta-cta-band,.nh-final{position:relative;overflow:hidden;isolation:isolate}
.nh-journey::before,.ninta-band-green::before,.ninta-cta-band::before,.nh-final::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;right:-200px;top:-240px;width:min(820px,150vw);aspect-ratio:1;
  background:var(--nb-contour-light) no-repeat center/contain;opacity:.2}
.ninta-cta-band::after,.nh-final::after{content:"";position:absolute;z-index:-1;pointer-events:none;left:0;right:0;bottom:-1px;height:70px;
  background:url(../img/volcanoes-soft.svg) no-repeat bottom center/100% 100%;opacity:.9}
.ninta-cta-band,.nh-final{padding-bottom:110px !important}
.nh-final{background:var(--ninta-verde-guanacaste);color:#fff}
.nh-final h2{color:#fff !important}
.nh-final p{color:rgba(255,255,255,.85) !important}
.nh-final .nh-btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.nh-final .nh-btn-ghost:hover{background:#fff;color:var(--ninta-verde-guanacaste)}

/* b) Cordillera de volcanes sobre el pie de página (Astra: .site-footer) */
.site-footer{position:relative;margin-top:110px}
.site-footer::before{content:"";position:absolute;left:0;right:0;bottom:calc(100% - 1px);height:clamp(70px,9vw,140px);pointer-events:none;
  background:url(../img/volcanoes.svg) no-repeat bottom center/100% 100%}

.ninta-tour-card{transition:transform .35s var(--nb-ease),box-shadow .35s,border-color .35s}
.ninta-tour-photo img{transition:transform .8s var(--nb-ease)}

/* ---------- 4. Hero: foto real, mobile first ---------- */
.nh-hero{overflow:hidden;isolation:isolate}
.nh-hero--photo{background-image:none}
.nh-hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;
  transform-origin:60% 40%;animation:nb-kenburns 18s var(--nb-ease) both}
.nh-hero--photo::before{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(13,42,35,.62) 0%,rgba(13,42,35,.2) 30%,rgba(13,42,35,.15) 45%,rgba(13,42,35,.85) 78%)}
@media(min-width:1001px){
  .nh-hero--photo::before{background:linear-gradient(100deg,rgba(13,42,35,.9) 0%,rgba(13,42,35,.65) 45%,rgba(13,42,35,.15) 100%)}
}
.nh-hero__inner{position:relative;z-index:1}
.nh-hero__edge{z-index:1}
@keyframes nb-kenburns{from{transform:scale(1.12)}to{transform:scale(1)}}
/* Entrada del texto del hero (no se anima el H1: es el elemento LCP) */
.ninta-js .nh-hero .eyebrow,.ninta-js .nh-lead,.ninta-js .nh-hero__cta,.ninta-js .nh-planner{animation:nb-up .9s var(--nb-ease) both}
.ninta-js .nh-lead{animation-delay:.12s}
.ninta-js .nh-hero__cta{animation-delay:.22s}
.ninta-js .nh-planner{animation-delay:.32s}
@keyframes nb-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

@media(max-width:680px){
  .nh-hero{padding:40px 0 132px}
  .nh-hero__inner{padding:0 18px;gap:26px}
  .nh-hero h1{font-size:2.45rem;margin-bottom:14px}
  .nh-lead{font-size:1.02rem;margin-bottom:20px}
  .nh-hero__cta .ninta-btn{flex:1 1 auto}
  .nh-planner{padding:8px 8px 18px;box-shadow:0 18px 40px rgba(6,26,21,.35)}
  .nh-sec{padding:56px 0}
  .nh-head{margin-bottom:26px}
  .nh h2{font-size:2.05rem}
}

/* ---------- 5. Barra de confianza: cinta que se mueve sola ---------- */
.nh-trust li{border-radius:var(--ninta-chip);box-shadow:0 2px 10px rgba(18,58,49,.06)}
@media(max-width:680px){
  .ninta-js .nh-trust.is-marquee{overflow:hidden;padding:0;margin-top:-4px;
    mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
  .ninta-js .nh-trust.is-marquee .nb-track{list-style:none;margin:0;display:flex;gap:10px;width:max-content;animation:nb-marquee 28s linear infinite;padding:4px 0 10px}
  .ninta-js .nh-trust.is-marquee:hover .nb-track{animation-play-state:paused}
}
@keyframes nb-marquee{to{transform:translateX(calc(-50% - 5px))}}

/* ---------- 6. "The Ninta standard": menos tarjetas, más carácter ---------- */
.nh-features{gap:0 !important;background:#fff;border-radius:var(--ninta-radius-lg);border:1px solid var(--ninta-linea);overflow:hidden}
.nh-features .ninta-feature{background:transparent !important;border:0;border-radius:0;box-shadow:none;text-align:left;padding:26px 24px;
  border-right:1px solid var(--ninta-linea)}
.nh-features .ninta-feature:last-child{border-right:0}
.nh-features .ninta-feature .ic{margin:0 0 14px;border-radius:10px;width:44px;height:44px}
.nh-features .ninta-feature:hover .ic{transform:rotate(-6deg) scale(1.06)}
.nh-features .ninta-feature .ic{transition:transform .35s var(--nb-ease)}
@media(max-width:900px){
  .nh-features{grid-template-columns:1fr 1fr !important}
  .nh-features .ninta-feature:nth-child(2n){border-right:0}
  .nh-features .ninta-feature:nth-child(-n+2){border-bottom:1px solid var(--ninta-linea)}
}
@media(max-width:680px){
  .nh-features .ninta-feature{padding:18px 16px}
  .nh-features .ninta-feature p{font-size:.88rem}
}

/* ---------- 7. Tarjetas y fotos ---------- */
.nh-card{background:#fff;border:1px solid var(--ninta-linea);transition:transform .35s var(--nb-ease),box-shadow .35s}
.nh-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(18,58,49,.12)}
.nh-card__photo img,.ninta-route-photo img,.ninta-tour-photo img{transition:transform .8s var(--nb-ease)}
.nh-card:hover .nh-card__photo img,.ninta-route-card:hover .ninta-route-photo img{transform:scale(1.06)}
.nh-tile img{transition:transform .9s var(--nb-ease)}
.nh-tile__body::after{content:"See tours \2192";display:inline-block;margin-top:8px;font:700 .82rem/1 var(--ninta-sans);
  background:rgba(255,255,255,.92);color:var(--ninta-verde-guanacaste);padding:7px 10px;border-radius:8px;
  opacity:0;transform:translateY(6px);transition:opacity .3s,transform .3s var(--nb-ease)}
.nh-tile:hover .nh-tile__body::after,.nh-tile:focus-visible .nh-tile__body::after{opacity:1;transform:none}
@media(hover:none){.nh-tile__body::after{display:none}}
.nh-tile__title{text-shadow:0 2px 14px rgba(0,0,0,.35)}
/* Riel: en celular se ve que hay más (la siguiente tarjeta asoma) */
@media(max-width:680px){
  .nh-rail{grid-auto-columns:78%;gap:14px;padding-left:2px}
}

/* ---------- 8. Entradas al hacer scroll ---------- */
.ninta-js [data-nb-reveal]{opacity:0;transform:translateY(26px);
  transition:opacity .8s var(--nb-ease),transform .8s var(--nb-ease);transition-delay:calc(var(--nb-i,0) * 90ms)}
.ninta-js [data-nb-reveal].is-in{opacity:1;transform:none}
.ninta-js .nh-tile[data-nb-reveal]{transform:translateY(26px) scale(.98)}
.ninta-js .nh-tile[data-nb-reveal].is-in{transform:none}

/* Número que cuenta (17+, 5.0, 58…) */
.nb-count{font-variant-numeric:tabular-nums}


/* ---------- 10. Espaciado: que todo respire (mobile first) ---------- */
/* Fuente base en todo el sitio (antes dependía del ajuste de Astra). */
body{font-family:var(--ninta-sans);color:var(--ninta-carbon);-webkit-font-smoothing:antialiased}
.ninta-home p,.nh p,.ninta-sec p,.ninta-section p,.ninta-hero p,.ninta-hero-img p,.ninta-article p,.ninta-route-page p{line-height:1.65}

/* Celular */
.ninta-container{padding:0 20px}
.ninta-sec{padding:72px 0}
.ninta-sec--tight{padding:52px 0}
.ninta-section{padding:44px 0}
.ninta-sec-head{margin-bottom:40px}
.ninta-sec-head h2,.nh h2{margin-bottom:14px}
.ninta-sec-head .eyebrow,.nh .eyebrow{margin-bottom:14px}
.nh-sec{padding:72px 0}
.nh-head{margin-bottom:34px}
.nh-head p,.ninta-sec-head p{line-height:1.6}
.ninta-hero-img .inner{padding:72px 22px 80px}
.ninta-hero-img h1,.ninta-hero h1{margin-bottom:18px}
.ninta-hero-img p,.ninta-hero p.lead{line-height:1.6}
.ninta-tours{gap:22px}
.ninta-tour-body{padding:22px 22px 24px;gap:2px}
.ninta-tour-body h3{margin:6px 0 10px;line-height:1.3}
.ninta-tour-tags{gap:6px;margin-bottom:12px}
.ninta-tour-actions{gap:10px;margin-top:16px}
.ninta-route-body,.ninta-service-body,.ninta-fleet-body{padding:24px}
.ninta-related--grid{gap:20px}
.ninta-faq-item{padding-top:4px;padding-bottom:4px}
.ninta-checklist li{margin-bottom:12px}
.nh-card__body{padding:18px 10px 8px}
.nh-card__desc{margin-bottom:16px}
.nh-facts{gap:14px}
.nh-facts > div{padding:18px 20px}
.nh-stops{gap:30px}
.ninta-tour-layout{gap:36px}
.ninta-tour-twocol{gap:28px}
/* "The Ninta standard" en celular: una columna, ícono a la izquierda */
@media(max-width:680px){
  .nh-features{grid-template-columns:1fr !important}
  .nh-features .ninta-feature{display:grid;grid-template-columns:44px 1fr;column-gap:16px;align-items:start;
    border-right:0 !important;border-bottom:1px solid var(--ninta-linea);padding:20px 18px}
  .nh-features .ninta-feature:last-child{border-bottom:0}
  .nh-features .ninta-feature .ic{grid-row:span 2;margin:0}
  .nh-features .ninta-feature h3{margin:2px 0 4px}
  .nh-features .ninta-feature p{font-size:.92rem}
  .ninta-sec-head{margin-bottom:32px}
  .ninta-split{gap:32px}
  .ninta-route-hero{gap:28px;padding:32px 0}
}
/* Tablet y escritorio: más aire entre bloques */
@media(min-width:681px){
  .ninta-container{padding:0 32px}
  .ninta-sec{padding:112px 0}
  .ninta-sec--tight{padding:72px 0}
  .ninta-section{padding:52px 0}
  .ninta-sec-head{margin-bottom:60px}
  .nh-sec{padding:104px 0}
  .nh-head{margin-bottom:46px}
  .ninta-tours{gap:30px}
  .ninta-tour-body{padding:24px 24px 26px}
  .ninta-hero-img .inner{padding:96px 32px}
  .ninta-related--grid{gap:24px}
}

/* ---------- 9. Reducir movimiento ---------- */
@media(prefers-reduced-motion:reduce){
  .nh-hero__img,.ninta-js .nh-hero .eyebrow,.ninta-js .nh-lead,.ninta-js .nh-hero__cta,.ninta-js .nh-planner{animation:none}
  .ninta-js [data-nb-reveal]{opacity:1;transform:none;transition:none}
  .ninta-js .nh-trust.is-marquee .nb-track{animation:none}
  .ninta-btn:hover,.nh-card:hover{transform:none}
}
.nh-hero h1,.nh-lead,.nh-hero .eyebrow{text-shadow:0 1px 14px rgba(6,26,21,.5)}
a.ninta-btn--primary,a.ninta-btn--primary:visited,a.ninta-btn--primary:hover{color:#fff}

/* ---------- 11. Botones con curva leve en todo el sitio (v2.20) ----------
   Karen: "los botones siguen siendo muy redondos". Todo lo que es botón,
   pestaña o filtro usa 6px; nada queda en forma de cápsula. */
.ninta-btn,a.ninta-btn,button.ninta-btn,.nh-btn,.ninta-filter-pill,.ninta-tmap-lock,
.wp-block-button__link,.ast-button,.button,input[type=submit],button[type=submit]{border-radius:var(--ninta-radius-pill) !important}
.ninta-menu-cta > a{border-radius:var(--ninta-radius-pill) !important}
.ninta-wa-float{border-radius:var(--ninta-radius) !important}

/* ---------- 12. Arreglos de espaciado (v2.20, revisión de Karen) ----------
   a) Dos bloques verdes seguidos (p. ej. flota + "Tell us what you have in
      mind" en Premium) ya no quedan pegados.
   b) Las curvas de fondo nunca ensanchan la página (página de hotel).
   (El hero del inicio tiene más espacio abajo: ver sección 4.) */
:is(.ninta-band-green,.ninta-cta-band,.nh-journey,.nh-final,.nh-sec--tint) + :is(.ninta-band-green,.ninta-cta-band,.nh-final,.nh-journey){margin-top:clamp(28px,5vw,56px)}
.ninta-sec,.nh-sec,.ninta-hero,.ninta-hero-img,.ninta-article-hero,.ninta-route-hero,.site-content,#content{overflow-x:clip}
/* c) Página de tour en celular: menos hueco entre las etiquetas y el texto. */
@media(max-width:680px){.ninta-crumbs + .ninta-sec--tight{padding-top:24px}}
