/* Nerva · añadidos mínimos sobre el diseño original de Webflow.
   Todo lo demás (tipografía, colores, botones, tarjetas, animaciones) es el CSS original;
   aquí solo hay lo que el original no tenía: selector de idioma, menú con 10 enlaces,
   botones + microcopy, línea de WhatsApp, formularios y aviso legal del pie. */

.nv-sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* El "sticky" del índice de Jurisdicciones/FAQ necesita que no haya overflow:hidden */
html, body, .page-wrapper { overflow-x: clip !important; }

/* ---------- Navegación ---------- */
.nv-lang {
  margin-left: auto;
  margin-right: 1.5rem;
  color: var(--dbf0ec);
  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.nv-lang:hover { border-bottom-color: var(--dbf0ec); }

/* El menú original tenía 6 enlaces; ahora hay 10 */
.nav-opened-link { padding-top: .45em; padding-bottom: .45em; }
.nav-opened-link-text._1, .nav-opened-link-text._2, .nav-opened-link-text._3 { font-size: 36px; }
.nav-opened-link-icon { height: 2.6em; width: 40px; }
@media screen and (max-height: 760px) and (min-width: 992px) {
  .nav-opened-link-text._1, .nav-opened-link-text._2, .nav-opened-link-text._3 { font-size: 30px; }
}
@media screen and (max-width: 991px) {
  .nav-opened-panel-links { overflow-y: auto; }
}
@media screen and (max-width: 479px) {
  .nav-opened-links-grid { grid-row-gap: .9em; }
  .nav-opened-link-text._1, .nav-opened-link-text._2, .nav-opened-link-text._3 { font-size: 26px; }
}

/* ---------- Hero: subtítulo + botones ---------- */
.about-hero-subtitle-wrapper.nv-hero-sub { width: 640px; max-width: 100%; }
.nv-buttons { flex-wrap: wrap; gap: 12px; min-height: 0; padding-top: 1.5rem; }
.nv-buttons .button { text-align: center; }
.nv-micro {
  margin-top: .75rem;
  padding-left: 5px;
  color: var(--dbf0ec);
  opacity: .7;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
@media screen and (max-width: 767px) {
  .about-hero-subtitle-wrapper.nv-hero-sub { width: 100%; }
  .nv-hero-sub .text-style-all-caps { font-size: 15px; }
  .nv-buttons { justify-content: center; }
  .nv-micro { text-align: center; padding-left: 0; }
}

/* ---------- Home: pilares ---------- */
.heading-3.ventajas .nv-plain { color: inherit; text-decoration: none; }
.homeheroventajas .heading-3.ventajas { margin-bottom: 30px; padding-bottom: 0; border-bottom: 0; text-transform: uppercase; }
.nv-pillar {
  margin-bottom: 100px;
  padding-bottom: 80px;
  border-bottom: 2px solid #dbf0ec;
}
.nv-pillar .text-style-all-caps { max-width: 820px; margin: 0 0 1.75rem; }

/* Trayectoria: 5 elementos en la rejilla de 3 columnas del original */
@media screen and (min-width: 992px) {
  .nv-trust .expertise-item:nth-child(3) { border-bottom: 1px solid #333; }
}
@media screen and (min-width: 480px) and (max-width: 991px) {
  .nv-trust .expertise-item:nth-last-child(2) { border-bottom: 1px solid #333; }
}

/* ---------- Bloques de texto, tarjetas y método ---------- */
.nv-info-section .overline-section { margin-bottom: 2.5rem; }
.nv-info-section .text-size-large { max-width: 60ch; }
.nv-cards .principle-name-text { text-transform: none; }
.nv-cards .overline-section, .nv-process .overline-section { margin-bottom: 2.5rem; }

/* Aparición al hacer scroll (la misma de la home original), también en el resto de páginas */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.scroll-animate.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .scroll-animate { opacity: 1; transform: none; transition: none; }
}

/* ---------- Cierre (titular gigante del original) ---------- */
h2.nv-heading-7 {
  font-variation-settings: "wght" 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  text-align: center;
}
h2.nv-heading-7.is-long { font-size: 64px; max-width: 22ch; }
.nv-close-body { display: flex; flex-direction: column; align-items: center; margin-top: 3rem; text-align: center; }
.nv-close-body .nv-buttons { justify-content: center; }
.nv-whatsapp-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2.5rem;
  color: var(--dbf0ec);
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}
.nv-whatsapp-line span { border-bottom: 1px solid currentColor; }
@media screen and (max-width: 767px) {
  h2.nv-heading-7.is-long { font-size: 34px; }
  .nv-whatsapp-line { font-size: 15px; }
}

/* ---------- Contacto ---------- */
.nv-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.nv-alternatives { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.nv-alternatives a, .nv-text-link { color: var(--dbf0ec); }
.nv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.nv-field { display: flex; flex-direction: column; gap: .5rem; margin: 0; font-weight: 400; }
.nv-field span { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--dbf0ec); }
.nv-field input, .nv-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--dbf0ec);
  background: transparent;
  border: 2px solid var(--dbf0ec);
  border-radius: 0;
  font: inherit;
  font-size: 1rem;
}
.nv-field input:focus, .nv-field textarea:focus { outline: 2px solid var(--dbf0ec); outline-offset: 2px; }
.nv-field-wide { grid-column: 1 / -1; }
.nv-hidden { position: absolute; left: -9999px; }
.nv-guide-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px; width: 100%; max-width: 640px; }
.nv-guide-form .nv-field { flex: 1 1 280px; text-align: left; }
.nv-form-ok { display: none; margin-bottom: 1.5rem; padding: 1rem 1.25rem; border: 2px solid var(--dbf0ec); color: var(--dbf0ec); }
.nv-form-ok.is-visible { display: block; }
@media screen and (max-width: 767px) {
  .nv-contact, .nv-form { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Hero de la home: que nunca se salga ni se corte en ninguna pantalla ----------
   El original fijaba el titular grande en una sola línea (se salía por la derecha) y el bloque
   a 100vh con overflow oculto (en pantallas panorámicas se cortaban los botones). */
.home-hero-section .heading-span.headinhero { white-space: normal !important; font-size: 6.2vw !important; }
.home-hero-section { height: auto !important; min-height: 100vh; }
.home-hero-section .about-hero-subtitle-wrapper.nv-hero-sub { width: auto; max-width: none; }
.home-hero-section .nv-hero-sub .text-style-all-caps { max-width: 640px; }
@media screen and (min-width: 1441px) {
  .home-hero-section .nv-hero-sub .text-style-all-caps { max-width: 44.444vw; }
}
@media screen and (max-width: 767px) {
  .home-hero-section .heading-span.headinhero { font-size: 7.4vw !important; }
}

/* ---------- Pantallas grandes (más de 1440 px: 2K, 4K…) ----------
   En el CSS original los titulares crecen con la pantalla (1vw), pero los textos pequeños,
   botones, logo, menú, rejillas y pie tienen tamaños fijos en px y en 4K quedaban diminutos.
   A partir de 1440 px todo crece en la misma proporción: cada valor es px / 14.4 en vw,
   así que en 1440 px es idéntico al original y por encima escala igual que los titulares. */
@media screen and (min-width: 1441px) {
  /* Titulares con tamaño fijo */
  .title-xlarge { margin-top: 1.389vw; font-size: 7.639vw; }
  .heading-7, .heading-8, .heading-span._1 { font-size: 7.639vw; }
  .heading-3 { margin-top: 6.944vw; font-size: 5.556vw; }
  .font-1st-styleguide { font-size: 5.556vw; }
  .heading-6 { font-size: 2.778vw; }
  h2.nv-heading-7.is-long { font-size: 4.444vw; }

  /* Textos y botones */
  .text-style-all-caps { font-size: 1.389vw; }
  .about-hero-subtitle-wrapper { width: 34.722vw; }
  .about-hero-subtitle-wrapper.nv-hero-sub { width: 44.444vw; }
  .button, .w-button { padding: .833vw 1.389vw; font-size: 1.333vw; border-width: max(2px, .139vw); }
  .nv-buttons { gap: .833vw; padding-top: 1.667vw; }
  .nv-micro { margin-top: .833vw; font-size: .972vw; }
  .nv-whatsapp-line { gap: .833vw; margin-top: 2.778vw; font-size: 1.25vw; }
  .nv-whatsapp-line img { width: 1.944vw; height: auto; }
  .nv-close-body { margin-top: 3.333vw; }
  .paragraph { margin-top: 2.778vw; }
  .info-page-section { padding-top: 8.889vw; }

  /* Navegación y menú */
  .nav-logo-wrapper { width: 18.056vw; }
  .nav-logo-wrapper.w--current { width: 13.889vw; }
  .nav-burger-icon-wrapper { font-size: 1.111vw; }
  .nav-burger-icon-line { height: max(2px, .139vw); }
  .nv-lang { margin-right: 1.667vw; font-size: 1.111vw; }
  .nav-opened-link-text._1, .nav-opened-link-text._2, .nav-opened-link-text._3 { font-size: 2.5vw; }
  .nav-opened-link-icon { width: 2.778vw; }

  /* Home */
  .home-hero-wrapper { padding-top: 2.778vw; }
  .home-hero-wrapper.homeheroventajas { padding-top: 6.944vw; }
  .image-5 { width: 31.25vw; }
  .homeheroventajas .heading-3.ventajas { margin-bottom: 2.083vw; }
  .nv-pillar { margin-bottom: 6.944vw; padding-bottom: 5.556vw; }
  .nv-pillar .text-style-all-caps { max-width: 56.944vw; margin-bottom: 1.944vw; }
  .div-block-2 { padding-top: 13.194vw; }
  .div-block-2.partners-block { padding-top: 15.278vw; }
  .default-wrapper.expertise-section { padding-bottom: 3.472vw; }
  .expertise-section .expertise-grid { max-width: 69.444vw; margin-top: 6.944vw; grid-auto-rows: minmax(10.417vw, auto); }
  .expertise-section .expertise-item { padding: 2.083vw .694vw; }
  .expertise-section .expertise-title { font-size: 1.667vw; }
  .partnerships-section .partners-carousel-viewport { max-width: 69.444vw; padding: 1.389vw 0; }
  .partnerships-section .partners-logo { width: 18.056vw; margin: 0 3.472vw; }

  /* Jurisdicciones / FAQ */
  .styleguide-grid .image-destinations { max-height: 41.667vw; }
  .styleguide-fixed-nav { margin-top: 11.111vw; }

  /* Contacto */
  .nv-contact { gap: 4.444vw; }
  .nv-form { gap: 1.389vw; }
  .nv-field { gap: .556vw; }
  .nv-field span { font-size: .972vw; }
  .nv-field input, .nv-field textarea { padding: .833vw .972vw; font-size: 1.111vw; border-width: max(2px, .139vw); }
  .nv-guide-form { max-width: 44.444vw; gap: .833vw; }
  .nv-form-ok { padding: 1.111vw 1.389vw; }

  /* Pie */
  .footer-2 { margin-top: 6.944vw; padding-top: 6.944vw; padding-bottom: 4.167vw; }
  .div-block-3 { gap: 3.333vw; }
  .image-8 { max-width: 10.417vw; }
  .link-block-2 { margin-left: 1.389vw; }
  .link-block-2 img { width: 2.431vw; height: auto; }
  .nv-footer-legal { margin-top: 2.222vw; padding-top: 1.389vw; font-size: .903vw; }
}

/* ---------- Pie ---------- */
.nv-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(219, 240, 236, .25);
  color: var(--dbf0ec);
  font-size: 13px;
  line-height: 1.5;
  opacity: .8;
}
.nv-footer-legal p { margin: 0; }
.nv-footer-legal a { color: inherit; }
@media screen and (min-width: 992px) {
  .footer-2 .div-block-6 .button { white-space: nowrap; }
}

/* ---------- Ajuste de textos a cualquier ancho (móvil, tablet, portátil) ----------
   Los titulares originales tienen tamaños fijos (110 px, 80 px, 72 px…) pensados para 1440 px;
   con palabras largas ("Jurisdicciones", "Estructuración", "acompañamiento") se salían
   de la pantalla en anchos menores. Se limitan para que la palabra más larga siempre quepa.
   A partir de 1158 px el tamaño es exactamente el original. */
@media screen and (max-width: 1440px) {
  .heading-span._1:not(.text-align-right) { font-size: min(110px, 9.5vw); }
}
@media screen and (min-width: 1441px) {
  .heading-span._1:not(.text-align-right) { font-size: 7.639vw; }
}
@media screen and (max-width: 479px) {
  .heading-span._1:not(.text-align-right) { font-size: min(40px, 9vw); }
}
.heading-span._1, h2.nv-heading-7, .homeheroventajas .heading-3.ventajas, .nv-process .text-weight-sbold { overflow-wrap: break-word; }

/* Pasos del proceso: "Ejecución y acompañamiento" no cabía en su columna */
@media screen and (min-width: 480px) {
  .nv-process .process-item .text-weight-sbold { font-size: 4em; }
}

/* Pilares de la portada en tablet y móvil */
@media screen and (max-width: 991px) {
  .homeheroventajas .heading-3.ventajas { width: auto; font-size: min(80px, 9vw); }
}
@media screen and (max-width: 479px) {
  .homeheroventajas .heading-3.ventajas { font-size: min(34px, 8.5vw); }
  h2.nv-heading-7.is-long { font-size: min(34px, 8.5vw); }
}

/* Pie en móvil: logo, botón y redes apilados y centrados (en fila se salían por la derecha) */
@media screen and (max-width: 767px) {
  .footer-2 .div-block-3 { flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
  .footer-2 .div-block-6 { flex: 0 0 auto; width: 100%; }
  .footer-2 .div-block-6 .button { max-width: 100%; white-space: normal; }
}

/* Hero de la portada en móvil: titular algo menor y separado del subtítulo */
@media screen and (max-width: 767px) {
  .home-hero-section .heading-span.headinhero { font-size: 6.4vw !important; }
  .home-hero-section .nv-hero-sub { margin-top: 1.25rem; }
}
/* Hero de la portada: aire entre el titular grande y el párrafo en todas las pantallas */
.home-hero-section .about-hero-subtitle-wrapper.nv-hero-sub { margin-top: 1.5rem; }
@media screen and (min-width: 1441px) {
  .home-hero-section .about-hero-subtitle-wrapper.nv-hero-sub { margin-top: 1.667vw; }
}
@media screen and (max-width: 767px) {
  .footer-2 .div-block-4.socialfooter { width: 100%; max-width: 100%; justify-content: center; }
  .footer-2 .link-block-2 { width: 30px; max-width: 30px; margin: 0 10px; }
  .footer-2 .link-block-2 img { width: 100%; height: auto; }
}

/* =====================================================================
   Variaciones de diseño entre páginas (mismo lenguaje visual del original:
   tipografía grande, líneas de 2 px en #dbf0ec, versalitas, bloques invertidos).
   Medidas en em: en escritorio 1em = 1vw (escala sola hasta 4K), en móvil 16 px.
   ===================================================================== */
.nv-stats-section, .nv-numbered-section, .nv-statement-section, .nv-faq-section { padding-top: 10em; padding-bottom: 4em; }
.nv-numbered, .nv-band-grid { margin: 0; padding: 0; list-style: none; }

/* Sobre mí: cifras */
.nv-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3em; border-top: 2px solid var(--dbf0ec); }
.nv-stat { padding: 2.5em 2em 1em; border-left: 2px solid var(--dbf0ec); }
.nv-stat:first-child { border-left: 0; padding-left: 0; }
.nv-stat-big { font-size: 7em; line-height: 1; letter-spacing: -.3vw; font-variation-settings: "wght" 600; }
.nv-stat-text { margin: 1.5em 0 0; max-width: 18em; font-size: max(1.25em, 14px); line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; }

/* Residencia: lista numerada */
.nv-numbered { margin-top: 3em; border-bottom: 2px solid var(--dbf0ec); }
.nv-row { display: grid; grid-template-columns: 14em 1fr; gap: 3em; align-items: baseline; padding: 2.75em 0; border-top: 2px solid var(--dbf0ec); }
.nv-row-num { font-size: 6em; line-height: 1; letter-spacing: -.2vw; font-variation-settings: "wght" 280; }
.nv-row-text { margin: 0; max-width: 26em; font-size: 2.25em; line-height: 1.15; letter-spacing: -.05vw; }

/* Fiscalidad: banda invertida */
.nv-band { margin: 8em 0 2em; padding: 8em 0; background-color: var(--dbf0ec); color: var(--dark); }
.nv-band-title { margin: 0 0 .6em; color: var(--dark); font-size: 7.5em; line-height: .95; letter-spacing: -.4vw; text-transform: uppercase; font-variation-settings: "wght" 600; }
.nv-band-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4em; }
.nv-band-item { display: grid; grid-template-columns: 3em 1fr; gap: 1em; padding: 2em 0 2.5em; border-top: 1px solid rgba(20, 13, 13, .35); }
.nv-band-num { padding-top: .35em; color: rgba(20, 13, 13, .45); font-size: 1.5em; line-height: 1; }
.nv-band-text { margin: 0; font-size: 1.85em; line-height: 1.2; letter-spacing: -.05vw; }

/* Cumplimiento: frase destacada */
.nv-statement { max-width: 17em; margin: .5em 0 0; font-size: 4.5em; line-height: 1.05; letter-spacing: -.25vw; font-variation-settings: "wght" 500; }
.nv-statement-follow { max-width: 40em; margin: 3em 0 0; padding-left: 1.5em; border-left: 2px solid var(--dbf0ec); }

/* FAQ: desplegables */
.nv-faq { border-bottom: 2px solid var(--dbf0ec); }
.nv-faq-item { border-top: 2px solid var(--dbf0ec); }
.nv-faq-q { display: grid; grid-template-columns: 4em 1fr auto; gap: 1.5em; align-items: center; padding: 2em 0; cursor: pointer; list-style: none; }
.nv-faq-q::-webkit-details-marker { display: none; }
.nv-faq-q:focus-visible { outline: 2px solid var(--dbf0ec); outline-offset: 4px; }
.nv-faq-num { font-size: 1.5em; opacity: .55; }
.nv-faq-q-text { font-size: 3em; line-height: 1.05; letter-spacing: -.15vw; font-variation-settings: "wght" 500; }
.nv-faq-icon { position: relative; width: 2.5em; height: 2.5em; }
.nv-faq-icon::before, .nv-faq-icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; background: var(--dbf0ec); transition: transform .3s ease; }
.nv-faq-icon::after { transform: rotate(90deg); }
.nv-faq-item[open] .nv-faq-icon::after { transform: rotate(0deg); }
.nv-faq-body { padding: 0 0 2.75em 5.5em; }
.nv-faq-a { max-width: 42em; margin: 0; font-size: 1.5em; line-height: 1.35; }

/* Tablet (en el original 1em sigue siendo 1vw, así que se suben los mínimos) */
@media screen and (max-width: 991px) {
  .nv-stats { grid-template-columns: 1fr 1fr; }
  .nv-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .nv-stat:nth-child(n+3) { border-top: 2px solid var(--dbf0ec); }
  .nv-stat-big { font-size: max(7em, 56px); }
  .nv-row { grid-template-columns: 10em 1fr; }
  .nv-row-num { font-size: max(6em, 44px); }
  .nv-row-text { font-size: max(2.25em, 20px); }
  .nv-band-title { font-size: max(7.5em, 52px); }
  .nv-band-num { font-size: max(1.5em, 14px); }
  .nv-band-text { font-size: max(1.85em, 17px); }
  .nv-statement { font-size: max(4.5em, 34px); }
  .nv-faq-q { grid-template-columns: 3em 1fr auto; }
  .nv-faq-num { font-size: max(1.5em, 14px); }
  .nv-faq-q-text { font-size: max(3em, 24px); }
  .nv-faq-icon { width: max(2.5em, 22px); height: max(2.5em, 22px); }
  .nv-faq-body { padding-left: 4.5em; }
  .nv-faq-a { font-size: max(1.5em, 16px); }
}
/* Móvil (1em = 16 px) */
@media screen and (max-width: 767px) {
  .nv-stats-section, .nv-numbered-section, .nv-statement-section, .nv-faq-section { padding-top: 6em; padding-bottom: 2em; }
  .nv-stat { padding: 1.75em 1em 1.25em; }
  .nv-stat-big { font-size: 3.25em; }
  .nv-stat-text { font-size: 13px; }
  .nv-row { grid-template-columns: 1fr; gap: .75em; padding: 1.75em 0; }
  .nv-row-num { font-size: 2.5em; }
  .nv-row-text { font-size: 1.25em; }
  .nv-band { margin-top: 5em; padding: 4em 0; }
  .nv-band-title { font-size: 2.5em; letter-spacing: -.05em; }
  .nv-band-grid { grid-template-columns: 1fr; }
  .nv-band-item { grid-template-columns: 2.25em 1fr; padding: 1.5em 0; }
  .nv-band-num { font-size: 1em; padding-top: .15em; }
  .nv-band-text { font-size: 1.15em; }
  .nv-statement { font-size: 2em; letter-spacing: -.03em; }
  .nv-statement-follow { padding-left: 1em; }
  .nv-faq-q { grid-template-columns: 1fr auto; gap: 1em; padding: 1.5em 0; }
  .nv-faq-num { display: none; }
  .nv-faq-q-text { font-size: 1.35em; letter-spacing: -.02em; }
  .nv-faq-icon { width: 1.25em; height: 1.25em; }
  .nv-faq-body { padding: 0 0 1.75em; }
  .nv-faq-a { font-size: 1.05em; }
}
@media screen and (max-width: 479px) {
  .nv-stats { grid-template-columns: 1fr; }
  .nv-stat, .nv-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .nv-stat + .nv-stat { border-top: 2px solid var(--dbf0ec); }
}
