/* Criterio Consultora · sitio web v1.3.3
   Concepto: escenario oscuro en teal profundo que se abre a superficies claras;
   tipografía grande de Sora, mucho aire y movimiento ligado al scroll. */
:root {
  --petroleo: #0F4C4A;
  --profundo: #123F44;
  --agua: #7FD8C2;
  --menta: #DDF5EF;
  --fondo: #F7FAF9;
  --texto: #1F2B2E;
  --borde: #E5E9E8;
  --blanco: #FFFFFF;
  --texto-suave: #4A5A5E;
  --sobre-oscuro: #F7FAF9;
  --sobre-oscuro-suave: #A9C9C3;
  --linea-oscura: rgba(127, 216, 194, .18);

  --f-titulo: "Sora", "Arial", "DejaVu Sans", sans-serif;
  --f-texto: "IBM Plex Sans", "Arial", "DejaVu Sans", sans-serif;

  --t-hero: clamp(2.6rem, 6.4vw, 5.6rem);
  --t-1: clamp(2.1rem, 4.6vw, 4rem);
  --t-2: clamp(1.6rem, 3vw, 2.5rem);
  --t-3: clamp(1.15rem, 1.6vw, 1.35rem);
  --t-lead: clamp(1.1rem, 1.7vw, 1.4rem);
  --t-base: 1.0625rem;
  --t-chico: .875rem;

  --ancho: 1180px;
  --ancho-texto: 40rem;
  --radio: 14px;
  --radio-g: 28px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --seccion: clamp(5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip; /* clip no convierte al body en contenedor de scroll: el encabezado fijo sigue funcionando con el menú abierto */
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-titulo); line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--agua); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--agua); color: var(--profundo); padding: .6rem 1rem; border-radius: 10px; font-weight: 600; text-decoration: none; }
.saltar:focus { top: 12px; }

.envoltura { max-width: var(--ancho); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.seccion { padding-block: var(--seccion); }
.oscuro { background: var(--profundo); color: var(--sobre-oscuro); }
.petroleo { background: var(--petroleo); color: var(--sobre-oscuro); }
.claro { background: var(--blanco); }
.menta { background: var(--menta); }

.etiqueta { font-family: var(--f-texto); font-size: var(--t-chico); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--petroleo); }
.oscuro .etiqueta, .petroleo .etiqueta { color: var(--agua); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--texto-suave); max-width: var(--ancho-texto); }
.oscuro .lead, .petroleo .lead { color: var(--sobre-oscuro-suave); }
.titulo-1 { font-size: var(--t-1); }
.titulo-2 { font-size: var(--t-2); }
.cabeza { display: grid; gap: 1.1rem; max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cabeza.centro { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* Botones */
.botones { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.boton {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--f-texto); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.boton:hover { transform: translateY(-1px); }
.boton.primario { background: var(--agua); color: var(--profundo); }
.boton.primario:hover { background: var(--menta); }
.boton.secundario { border-color: currentColor; color: inherit; background: transparent; }
.claro .boton.secundario, body > main > .boton.secundario { color: var(--petroleo); }
.boton.oscuro-btn { background: var(--petroleo); color: var(--blanco); }
.boton.oscuro-btn:hover { background: var(--profundo); }
.enlace-flecha { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; text-decoration: none; color: var(--petroleo); }
.enlace-flecha::after { content: "→"; transition: transform .25s var(--ease); }
.enlace-flecha:hover::after { transform: translateX(4px); }
.oscuro .enlace-flecha, .petroleo .enlace-flecha { color: var(--agua); }

/* Encabezado */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 51; background: var(--profundo); }
.cabecera {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  /* Arriba de todo, el encabezado no tiene contenido debajo (solo el fondo claro de la página):
     por eso arranca opaco, del mismo teal que el inicio, y se vuelve translúcido al hacer scroll. */
  background: rgb(18, 63, 68); color: var(--sobre-oscuro);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--linea-oscura);
  transition: background-color .3s;
}
.cabecera.con-scroll { background: rgba(18, 63, 68, .92); }
.cabecera .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca { display: inline-flex; align-items: center; flex-shrink: 0; }
.marca img { width: 168px; height: auto; }
.marca { position: relative; align-items: flex-start; text-decoration: none; }
.registrada { font: 600 11px/1 var(--f-texto); color: var(--agua); margin: 4px 0 0 3px; user-select: none; }
.pie .registrada { font-size: 12px; margin-top: 5px; }
.menu { display: flex; align-items: center; gap: .25rem; }
.menu a { text-decoration: none; font-size: .95rem; padding: .5rem .8rem; border-radius: 999px; color: var(--sobre-oscuro-suave); transition: color .2s, background-color .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--sobre-oscuro); background: rgba(127, 216, 194, .1); }
.menu .boton { margin-left: .5rem; min-height: 40px; padding: .55rem 1.1rem; font-size: .95rem; color: var(--profundo); }
.menu .boton:hover { color: var(--profundo); background: var(--menta); }
@media (min-width: 901px) and (max-width: 1060px) { .menu a { padding: .5rem .55rem; font-size: .9rem; } .menu .boton { margin-left: .25rem; padding: .5rem .9rem; font-size: .9rem; } .cabecera .marca img { width: 128px; height: auto; } }
.menu-boton { display: none; background: none; border: 0; color: var(--sobre-oscuro); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.menu-boton span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.submenu { position: relative; }
.submenu > button { background: none; border: 0; font: inherit; font-size: .95rem; color: var(--sobre-oscuro-suave); padding: .5rem .8rem; border-radius: 999px; cursor: pointer; }
.submenu > button:hover, .submenu > button[aria-expanded="true"] { color: var(--sobre-oscuro); background: rgba(127, 216, 194, .1); }
.submenu-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(520px, 90vw); padding: .6rem; border-radius: 18px;
  background: #123f44; border: 1px solid var(--linea-oscura);
  box-shadow: 0 24px 60px rgba(5, 20, 22, .35); display: grid; gap: .15rem;
}
.submenu-panel a { display: grid; gap: .1rem; padding: .75rem .9rem; border-radius: 12px; background: transparent; }
.submenu-panel a strong { color: var(--sobre-oscuro); font-weight: 600; font-family: var(--f-titulo); font-size: .98rem; letter-spacing: -.01em; }
.submenu-panel a span { font-size: .86rem; color: var(--sobre-oscuro-suave); }

@media (max-width: 900px) {
  .menu-boton { display: block; }
  .menu {
    position: fixed; inset: calc(64px + env(safe-area-inset-top, 0px)) 0 auto 0; height: calc(100dvh - 64px - env(safe-area-inset-top, 0px)); flex-direction: column; align-items: stretch;
    padding: 1rem var(--gutter-r) 1.5rem var(--gutter-l); gap: .2rem; background: var(--profundo);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .menu:not(.abierto) { display: none; }
  .menu a, .submenu > button { font-size: 1.1rem; padding: .85rem .6rem; text-align: left; width: 100%; }
  .submenu-panel { position: static; transform: none; width: 100%; box-shadow: none; background: transparent; border: 0; padding: 0 0 0 .5rem; }
  .menu .boton { margin: .8rem 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem) 0; }
.hero-red { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.hero .envoltura { position: relative; }
.hero-texto { display: grid; gap: 1.5rem; justify-items: center; text-align: center; max-width: 62rem; margin: 0 auto; }
.hero h1 { font-size: var(--t-hero); letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--agua); }
.hero .lead { margin: 0 auto; text-align: center; }
.hero .botones { justify-content: center; margin-top: .5rem; }
.hero-escena { margin-top: clamp(3rem, 7vw, 5.5rem); perspective: 1600px; }
.hero-pagina { padding-bottom: clamp(4rem, 9vw, 7rem); }
.hero-pagina .hero-texto { justify-items: start; text-align: left; margin: 0; }
.hero-pagina .lead { text-align: left; margin: 0; }
.hero-pagina .botones { justify-content: flex-start; }
.migas { font-size: var(--t-chico); color: var(--sobre-oscuro-suave); display: flex; gap: .5rem; flex-wrap: wrap; }
.migas a { color: var(--sobre-oscuro-suave); }

/* Ventana de producto (maqueta de un Proyecto de IA) */
.ventana {
  max-width: 1040px; margin: 0 auto; border-radius: 22px 22px 0 0; overflow: hidden;
  background: var(--blanco); color: var(--texto);
  box-shadow: 0 -10px 80px rgba(127, 216, 194, .16), 0 40px 120px rgba(4, 18, 20, .5);
  border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0;
  transform-origin: 50% 100%;
}
.ventana-barra { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; background: var(--fondo); border-bottom: 1px solid var(--borde); }
.ventana-barra i { width: 11px; height: 11px; border-radius: 50%; background: var(--borde); display: block; }
.ventana-barra b { margin-left: .8rem; font: 500 .8rem var(--f-texto); color: var(--texto-suave); }
.ventana-cuerpo { display: grid; grid-template-columns: 220px 1fr 250px; min-height: 380px; }
.v-lateral { border-right: 1px solid var(--borde); padding: 1.1rem .9rem; display: grid; align-content: start; gap: .3rem; background: #FBFDFC; }
.v-lateral small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-suave); padding: .2rem .5rem .5rem; }
.v-proy { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: 10px; font-size: .88rem; color: var(--texto-suave); }
.v-proy::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--petroleo); flex-shrink: 0; }
.v-proy.activo { background: var(--menta); color: var(--petroleo); font-weight: 600; }
.v-proy.activo::before { background: var(--petroleo); }
.v-chat { padding: 1.4rem 1.5rem; display: grid; align-content: start; gap: 1rem; min-width: 0; }
.v-msg { max-width: 92%; padding: .8rem 1rem; border-radius: 16px; font-size: .9rem; line-height: 1.5; }
.v-msg.persona { justify-self: end; background: var(--petroleo); color: var(--blanco); border-bottom-right-radius: 5px; }
.v-msg.ia { background: var(--fondo); border: 1px solid var(--borde); border-bottom-left-radius: 5px; }
.v-msg.ia ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.v-revision { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--petroleo); font-weight: 600; padding: .55rem .8rem; border-radius: 10px; background: var(--menta); justify-self: start; }
.v-revision::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--petroleo); color: var(--blanco); font-size: .72rem; }
.v-panel { border-left: 1px solid var(--borde); padding: 1.1rem 1rem; display: grid; align-content: start; gap: .9rem; background: #FBFDFC; }
.v-panel .v-rotulo { margin: 0;  font-family: var(--f-texto); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-suave); font-weight: 600; }
.v-fuente { display: flex; gap: .55rem; align-items: center; font-size: .82rem; padding: .45rem .55rem; border: 1px solid var(--borde); border-radius: 9px; background: var(--blanco); min-width: 0; }
.v-fuente span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-fuente .ext { font: 700 .62rem var(--f-texto); color: var(--petroleo); background: var(--menta); border-radius: 5px; padding: .15rem .3rem; flex-shrink: 0; }
.v-instr { font-size: .8rem; line-height: 1.5; color: var(--texto-suave); padding: .65rem .7rem; border-radius: 9px; background: var(--blanco); border: 1px dashed var(--borde); }
@media (max-width: 960px) { .ventana-cuerpo { grid-template-columns: 1fr 230px; } .v-lateral { display: none; } }
@media (max-width: 640px) { .ventana-cuerpo { grid-template-columns: 1fr; min-height: 0; } .v-panel { display: none; } .v-chat { padding: 1.1rem; } }

/* Frase que se ilumina con el scroll */
.manifiesto { padding-block: clamp(6rem, 14vw, 12rem); }
.manifiesto p { font-family: var(--f-titulo); font-weight: 600; font-size: var(--t-1); line-height: 1.15; letter-spacing: -.03em; max-width: 60rem; text-wrap: balance; }
.manifiesto .palabra { transition: color .3s; }
.js .manifiesto .palabra { color: #B5C4C1; }
.js .manifiesto .palabra.on { color: var(--texto); }
.manifiesto .palabra.acento.on { color: var(--petroleo); }

/* Método con pasos fijos */
.metodo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.metodo-pasos { display: grid; gap: 0; }
.metodo-paso { padding-block: clamp(2rem, 10vh, 6rem); border-top: 1px solid var(--linea-oscura); transition: opacity .4s; }
.metodo-paso:first-child { border-top: 0; padding-top: 0; }
.js .metodo-paso { opacity: .55; }
.js .metodo-paso.activo { opacity: 1; }
.metodo-paso h3 { font-size: var(--t-2); margin-bottom: .8rem; }
.metodo-paso h3 b { color: var(--agua); font-weight: 700; }
.metodo-paso p { color: var(--sobre-oscuro-suave); max-width: 30rem; font-size: 1.08rem; }
.metodo-visual { position: sticky; top: calc(120px + env(safe-area-inset-top, 0px)); aspect-ratio: 1; max-width: 100%; border-radius: var(--radio-g); background: radial-gradient(120% 120% at 30% 20%, rgba(127, 216, 194, .14), transparent 60%), var(--petroleo); border: 1px solid var(--linea-oscura); display: grid; place-items: center; overflow: hidden; }
.metodo-visual svg { width: 78%; }
/* La figura de fondo es una sola silueta: la opacidad va en el grupo, así los trazos y los nodos no se superponen */
.metodo-visual .fantasma { opacity: .16; }
.metodo-visual .fantasma path { stroke: var(--agua); stroke-width: 26; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.metodo-visual .fantasma circle { fill: var(--agua); }
/* Cada trazo se dibuja al llegar a su paso: arco superior, arco inferior y, al final, el centro. */
.metodo-visual .trazo { stroke: var(--agua); stroke-width: 26; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.metodo-visual .nodo:not(.on) { opacity: 0; transform: scale(.7); }
.metodo-visual .nodo { fill: var(--agua); stroke: var(--agua); stroke-width: 12; transition: opacity .5s var(--ease), transform .5s var(--ease); transform-box: fill-box; transform-origin: center; }
.metodo-visual .nodo.on { opacity: 1; transform: scale(1.08); }
.metodo-visual .trazo.on { stroke-dashoffset: 0; }
.metodo-visual .rotulo { position: absolute; left: 1.4rem; bottom: 1.2rem; right: 1.4rem; font: 600 .9rem var(--f-texto); color: var(--sobre-oscuro-suave); letter-spacing: .02em; }
.metodo-visual .rotulo b { color: var(--agua); }
/* Fotos y video */
.banda-foto { overflow: clip; background: var(--profundo); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.banda-foto .foto { box-shadow: 0 40px 100px rgba(4, 18, 20, .45), 0 0 0 1px var(--linea-oscura); }
.hero-pagina:has(+ .banda-foto) { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.foto { margin: 0; border-radius: var(--radio-g); overflow: hidden; box-shadow: 0 40px 90px rgba(4, 18, 20, .28); aspect-ratio: 16 / 9; max-width: 100%; background: var(--menta); }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* Servicios */
.servicios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.servicio {
  position: relative; display: flex; flex-direction: column; gap: 1rem; min-height: 340px;
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radio-g); text-decoration: none;
  background: var(--fondo); border: 1px solid var(--borde); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.servicio h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--profundo); }
.servicio p { color: var(--texto-suave); max-width: 30rem; }
.servicio ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.servicio li { font-size: .82rem; font-weight: 500; padding: .3rem .7rem; border-radius: 999px; background: var(--menta); color: var(--petroleo); }
.servicio .enlace-flecha { margin-top: auto; padding-top: .8rem; align-self: flex-start; }
.servicio .icono { flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--profundo); }
.servicio .icono svg { width: 28px; height: 28px; stroke: var(--agua); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.servicio.destacado { background: var(--profundo); border-color: transparent; }
.servicio.destacado h3 { color: var(--sobre-oscuro); }
.servicio.destacado p { color: var(--sobre-oscuro-suave); }
.servicio.destacado li { background: rgba(127, 216, 194, .14); color: var(--agua); }
.servicio.destacado .icono { background: var(--agua); }
.servicio.destacado .icono svg { stroke: var(--profundo); }
.servicio.destacado .enlace-flecha { color: var(--agua); }
.servicio-ancho { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; }
.servicio-ancho .enlace-flecha { margin: 0; align-self: center; }
@media (max-width: 760px) {
  .servicios { grid-template-columns: 1fr; }
  .servicio { min-height: 0; }
  .servicio-ancho { grid-template-columns: 1fr; }
}

/* Proceso numerado: el orden es real */
.proceso { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: paso; }
.proceso li { counter-increment: paso; display: grid; gap: .7rem; align-content: start; padding-top: 1.4rem; border-top: 2px solid var(--borde); position: relative; }
.proceso li::before { content: counter(paso, decimal-leading-zero); font: 700 .9rem var(--f-titulo); color: var(--petroleo); letter-spacing: .04em; }
.proceso li::after { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--petroleo); }
.proceso h3 { font-size: 1.3rem; letter-spacing: -.015em; }
.proceso p { color: var(--texto-suave); font-size: 1rem; }
.oscuro .proceso li, .petroleo .proceso li { border-top-color: var(--linea-oscura); }
.oscuro .proceso li::before, .petroleo .proceso li::before { color: var(--agua); }
.oscuro .proceso li::after, .petroleo .proceso li::after { background: var(--agua); }
.oscuro .proceso p, .petroleo .proceso p { color: var(--sobre-oscuro-suave); }
@media (max-width: 960px) { .proceso { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 560px) { .proceso { grid-template-columns: 1fr; } }

/* Medición */
.medicion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.planilla { margin: 0; border-radius: var(--radio-g); background: var(--blanco); border: 1px solid var(--borde); box-shadow: 0 30px 80px rgba(15, 76, 74, .1); overflow: hidden; }
.planilla-cab { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.3rem; background: var(--profundo); color: var(--sobre-oscuro); font: 600 .9rem var(--f-texto); }
.planilla-cab span:last-child { font-weight: 500; font-size: .78rem; color: var(--agua); letter-spacing: .08em; text-transform: uppercase; }
.tabla-scroll { overflow-x: auto; }
.planilla table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; min-width: 420px; }
.planilla th, .planilla td { padding: .85rem 1.3rem; text-align: left; border-bottom: 1px solid var(--borde); }
.planilla th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-suave); font-weight: 600; background: var(--fondo); }
.planilla td.num, .planilla th.num { text-align: right; }
.planilla td.despues { color: var(--petroleo); font-weight: 600; }
.planilla tr:last-child td { border-bottom: 0; }
.planilla .barra { display: block; height: 6px; border-radius: 6px; background: var(--menta); margin-top: .45rem; position: relative; overflow: hidden; }
.planilla .barra i { position: absolute; inset: 0 auto 0 0; background: var(--petroleo); border-radius: 6px; }
.planilla .b-33 { width: 33%; } .planilla .b-40 { width: 40%; } .planilla .b-38 { width: 38%; } .planilla .b-17 { width: 17%; }
.planilla .unidad::before { content: " · "; }
@media (max-width: 560px) { .planilla table { min-width: 0; font-size: .85rem; } .planilla th, .planilla td { padding: .75rem .5rem; } .planilla th:first-child, .planilla td:first-child { padding-left: 1rem; } .planilla th:last-child, .planilla td:last-child { padding-right: 1rem; } .planilla .unidad { display: block; font-size: .65rem; } .planilla .unidad::before { content: none; } .planilla th { font-size: .68rem; letter-spacing: .06em; } }
.planilla-pie { padding: .8rem 1.3rem; font-size: .78rem; color: var(--texto-suave); background: var(--fondo); border-top: 1px solid var(--borde); }
.medicion > * { min-width: 0; }
@media (max-width: 860px) { .medicion { grid-template-columns: 1fr; } }

/* Bloques de texto y listas */
.dos-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .dos-col { grid-template-columns: 1fr; } }
.lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lista-check li { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; padding-block: 1.1rem; border-bottom: 1px solid var(--borde); }
.lista-check li:first-child { padding-top: 0; }
.lista-check li::before { content: ""; width: 24px; height: 24px; margin-top: .1rem; border-radius: 50%; background: var(--menta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%230F4C4A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.lista-check strong { display: block; font-family: var(--f-titulo); font-weight: 600; letter-spacing: -.01em; font-size: 1.08rem; margin-bottom: .2rem; }
.lista-check span { color: var(--texto-suave); }
.oscuro .lista-check li, .petroleo .lista-check li { border-bottom-color: var(--linea-oscura); }
.oscuro .lista-check li::before, .petroleo .lista-check li::before { background-color: rgba(127, 216, 194, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%237FD8C2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.oscuro .lista-check span, .petroleo .lista-check span { color: var(--sobre-oscuro-suave); }

.tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tarjeta { padding: 1.8rem; border-radius: var(--radio-g); background: var(--blanco); border: 1px solid var(--borde); display: grid; gap: .7rem; align-content: start; }
.tarjeta h3 { font-size: 1.3rem; color: var(--profundo); letter-spacing: -.015em; }
.tarjeta p { color: var(--texto-suave); font-size: 1rem; }
.menta .tarjeta { border-color: transparent; }
@media (max-width: 900px) { .tarjetas { grid-template-columns: 1fr; } }

.cifra { display: grid; gap: .5rem; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radio-g); background: var(--petroleo); color: var(--sobre-oscuro); }
.cifra strong { font: 700 clamp(3rem, 7vw, 5.5rem)/1 var(--f-titulo); letter-spacing: -.04em; color: var(--agua); }
.cifra p { color: var(--sobre-oscuro-suave); }
.cifra small { font-size: .8rem; color: var(--sobre-oscuro-suave); opacity: .85; }

/* Equipo */
.equipo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .equipo { grid-template-columns: 1fr; } }

/* Preguntas frecuentes */
.faq { display: grid; gap: 0; max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--borde); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.4rem; font: 600 clamp(1.05rem, 1.8vw, 1.25rem)/1.35 var(--f-titulo); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--menta); color: var(--petroleo); font: 400 1.4rem/1 var(--f-texto); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; color: var(--texto-suave); max-width: 46rem; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contacto-datos { display: grid; gap: 1.5rem; }
.dato { display: grid; gap: .2rem; }
.dato small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--agua); font-weight: 600; }
.dato a, .dato span { font-size: 1.15rem; color: var(--sobre-oscuro); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.dato a:hover { color: var(--agua); }
.redes { display: flex; gap: .6rem; }
.red { display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1rem; border-radius: 999px; border: 1px solid var(--linea-oscura); text-decoration: none; font-weight: 500; transition: border-color .2s, background-color .2s; }
.red:hover { border-color: var(--agua); background: rgba(127, 216, 194, .08); }
.red svg { width: 20px; height: 20px; }
.formulario { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3.5vw, 2.6rem); border-radius: var(--radio-g); background: var(--blanco); color: var(--texto); box-shadow: 0 40px 100px rgba(4, 18, 20, .35); }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .fila { grid-template-columns: 1fr; } }
.campo { display: grid; gap: .4rem; min-width: 0; }
.campo label { font-size: .9rem; font-weight: 600; }
.campo label .opc { font-weight: 400; color: var(--texto-suave); }
.campo input, .campo textarea, .campo select {
  width: 100%; font: 400 1rem/1.4 var(--f-texto); color: var(--texto); background: var(--fondo);
  border: 1px solid var(--borde); border-radius: 12px; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.campo select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230F4C4A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.6rem; }
.campo textarea { min-height: 140px; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--petroleo); background: var(--blanco); box-shadow: 0 0 0 4px rgba(127, 216, 194, .35); }
.campo .error { font-size: .84rem; color: #A3312A; min-height: 0; }
.campo [aria-invalid="true"] { border-color: #A3312A; }
.trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consentimiento { display: grid; grid-template-columns: 18px 1fr; gap: .9rem; cursor: pointer; align-items: start; font-size: .92rem; color: var(--texto-suave); }
.consentimiento input { width: 18px; height: 18px; margin: .2rem 0 0; }
.consentimiento a { color: var(--petroleo); font-weight: 600; }
.formulario .boton { justify-content: center; width: 100%; background: var(--petroleo); color: var(--blanco); font-size: 1.05rem; min-height: 54px; }
.formulario .boton:hover { background: var(--profundo); }
.formulario .boton[disabled] { opacity: .6; cursor: progress; transform: none; }
.estado { font-size: .95rem; padding: .9rem 1rem; border-radius: 12px; }
.estado.ok { background: var(--menta); color: var(--petroleo); font-weight: 500; }
.estado.mal { background: #FBEDEB; color: #8A2A24; }
.turnstile-caja { min-height: 65px; }
.nota-form { font-size: .8rem; color: var(--texto-suave); }
@media (max-width: 900px) { .contacto-grid { grid-template-columns: 1fr; } }

/* Llamado final */
.cierre { text-align: center; display: grid; gap: 1.5rem; justify-items: center; }
.cierre h2 { font-size: var(--t-1); max-width: 50rem; }

/* Pie */
.pie { background: var(--profundo); color: var(--sobre-oscuro-suave); padding-block: 4rem 2.5rem; border-top: 1px solid var(--linea-oscura); font-size: .95rem; }
.pie-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; }
.pie .pie-titulo { font: 600 .78rem var(--f-texto); letter-spacing: .12em; text-transform: uppercase; color: var(--agua); margin-bottom: 1rem; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.pie li a { display: inline-block; padding-block: .25rem; }
.pie a { text-decoration: none; color: var(--sobre-oscuro-suave); overflow-wrap: anywhere; }
.pie a:hover { color: var(--sobre-oscuro); }
.pie .marca img { width: 190px; margin-bottom: 1rem; }
.pie-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linea-oscura); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.pie-legal button { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
@media (max-width: 860px) { .pie-grid { grid-template-columns: 1fr 1fr; } .pie-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .pie-grid > div:last-child { grid-column: 1 / -1; } .pie a[href^="mailto:"] { overflow-wrap: normal; } }
/* Con el menú abierto se frena el scroll de la página sin tocar el body (si no, el encabezado se iba de pantalla y el menú quedaba inalcanzable) */
@supports (overflow: clip) { html.menu-abierto { overflow: hidden; } }

/* Aviso de cookies */
.cookies {
  position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; max-width: 640px;
  padding: 1.2rem 1.3rem; border-radius: 20px; background: rgba(18, 63, 68, .96); color: var(--sobre-oscuro);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--linea-oscura);
  box-shadow: 0 24px 60px rgba(4, 18, 20, .4); display: grid; gap: .9rem; font-size: .92rem;
}
.cookies p { color: var(--sobre-oscuro-suave); }
.cookies a { color: var(--agua); }
.cookies .botones { flex-wrap: nowrap; }
.cookies .botones .boton { min-height: 42px; padding: .6rem 1rem; font-size: .9rem; white-space: nowrap; }
@media (max-width: 480px) { .cookies { padding: 1rem; font-size: .85rem; gap: .7rem; } .cookies .botones .boton { padding: .55rem .8rem; font-size: .84rem; } }

/* WhatsApp (se activa al cargar un número) */
.whatsapp { position: fixed; z-index: 55; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--agua); color: var(--profundo); box-shadow: 0 14px 34px rgba(4, 18, 20, .3); transition: transform .3s var(--ease); }
.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 28px; height: 28px; }

/* Movimiento ligado al scroll (solo donde el navegador lo soporta) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .aparece { animation: aparecer linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .ventana { animation: abrir-ventana linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  }
  .hero-texto > * { animation: subir .9s var(--ease) both; }
  .hero-texto > *:nth-child(2) { animation-delay: .08s; }
  .hero-texto > *:nth-child(3) { animation-delay: .16s; }
  .hero-texto > *:nth-child(4) { animation-delay: .24s; }
}
@keyframes aparecer { from { opacity: .001; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes abrir-ventana { from { transform: rotateX(18deg) scale(.92); } to { transform: none; } }
@keyframes subir { from { opacity: .001; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Texto legal */
.legal-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.legal-indice { position: sticky; top: 96px; display: grid; gap: .9rem; }
.legal-indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; border-left: 2px solid var(--borde); }
.legal-indice a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--texto-suave); text-decoration: none; font-size: .95rem; transition: color .2s, border-color .2s; }
.legal-indice a:hover { color: var(--petroleo); border-left-color: var(--agua); }
.legal { display: grid; gap: 0; }
.legal-resumen { background: var(--menta); border-radius: var(--radio-g); padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.legal-resumen ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; color: var(--profundo); }
.legal-bloque { display: grid; gap: 1rem; padding-block: clamp(1.6rem, 3vw, 2.2rem); border-top: 1px solid var(--borde); scroll-margin-top: 80px; }
.legal-bloque:last-child { padding-bottom: 0; }
.legal-bloque h2 { display: flex; align-items: baseline; gap: .9rem; font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -.015em; color: var(--profundo); margin: 0; }
.legal-num { font: 600 .85rem var(--f-texto); color: var(--petroleo); background: var(--menta); border-radius: 999px; padding: .2rem .6rem; letter-spacing: .04em; flex-shrink: 0; }
.legal-texto { display: grid; gap: .9rem; }
.legal p, .legal li { color: var(--texto-suave); }
.legal-texto ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-indice { display: none; } }

/* Aviso de vista previa */
.aviso-previa { background: var(--agua); color: var(--profundo); font-size: .85rem; text-align: center; padding: .5rem 1rem; font-weight: 500; }

/* Auditoría: casilla de privacidad con área de toque cómoda */
input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; min-height: 0; padding: 0; margin: .2rem 0 0; box-sizing: border-box; flex-shrink: 0; border: 2px solid var(--petroleo); border-radius: 4px; background: var(--blanco); cursor: pointer; display: inline-grid; place-content: center; transition: background-color .2s, border-color .2s, box-shadow .2s; }
input[type="checkbox"]::before { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--blanco); border-bottom: 2px solid var(--blanco); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s var(--ease); }
input[type="checkbox"]:checked { background: var(--petroleo); }
input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
input[type="checkbox"]:hover { border-color: var(--profundo); box-shadow: 0 0 0 3px var(--menta); }
input[type="checkbox"]:focus-visible { outline: 3px solid var(--agua); outline-offset: 2px; }
.tabla-scroll:focus-visible { outline: 2px solid var(--agua); outline-offset: 2px; }

/* ===== v1.2.0 ===== */

/* Esquema del inicio: flujo de trabajo rediseñado */
.flujo-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.f-pasos { list-style: none; margin: 0; padding: 1.2rem 1.4rem; display: grid; gap: .55rem; counter-reset: none; }
.f-paso { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--borde); background: var(--blanco); }
.f-paso strong { display: block; font: 600 .95rem/1.3 var(--f-titulo); letter-spacing: -.01em; color: var(--profundo); }
.f-paso div span { display: block; font-size: .84rem; color: var(--texto-suave); line-height: 1.45; }
.f-num { font: 700 .8rem var(--f-titulo); color: var(--texto-suave); }
.f-paso em { font: 600 .72rem/1 var(--f-texto); font-style: normal; letter-spacing: .04em; padding: .4rem .65rem; border-radius: 999px; white-space: nowrap; }
.f-pro { background: var(--menta); border-color: transparent; }
.f-paso.f-pro em, .f-leyenda .f-pro::before { background: var(--petroleo); color: var(--blanco); }
.f-paso.f-ia em, .f-leyenda .f-ia::before { background: var(--agua); color: var(--profundo); }
.f-paso.f-agente em, .f-leyenda .f-agente::before { background: var(--profundo); color: var(--agua); }
.f-paso.f-auto em, .f-leyenda .f-auto::before { background: var(--borde); color: var(--texto); }
.f-panel { border-left: 1px solid var(--borde); padding: 1.1rem 1rem; display: grid; align-content: start; gap: .8rem; background: #FBFDFC; }
.f-panel .v-rotulo { margin: 0; font-family: var(--f-texto); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-suave); font-weight: 600; }
.f-leyenda { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .85rem; }
.f-leyenda li { display: flex; align-items: center; gap: .55rem; }
.f-leyenda li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.f-leyenda li.f-pro { background: none; }
@media (max-width: 900px) { .flujo-cuerpo { grid-template-columns: 1fr; } .f-panel { display: none; } }
@media (max-width: 520px) { .f-pasos { padding: .9rem; } .f-paso { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; padding: .65rem .75rem; } .f-num { display: none; } .f-paso div span { display: none; } }

/* Organización híbrida */
.hibrida { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.hibrida-col { padding: clamp(1.6rem, 3.5vw, 2.6rem); border-radius: var(--radio-g); display: grid; gap: 1.2rem; align-content: start; }
.hibrida-col.pro { background: var(--profundo); color: var(--sobre-oscuro); }
.hibrida-col.pro .etiqueta { color: var(--agua); }
.hibrida-col.ia { background: var(--blanco); border: 1px solid var(--borde); }
.hibrida-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hibrida-col li { font: 600 clamp(1rem, 1.6vw, 1.15rem)/1.2 var(--f-titulo); letter-spacing: -.01em; padding: .6rem 1rem; border-radius: 999px; }
.hibrida-col.pro li { background: rgba(127, 216, 194, .14); color: var(--sobre-oscuro); }
.hibrida-col.ia li { background: var(--menta); color: var(--petroleo); }
.hibrida-cierre { margin-top: clamp(2rem, 5vw, 3.5rem); font: 600 var(--t-2)/1.2 var(--f-titulo); letter-spacing: -.025em; text-align: center; text-wrap: balance; color: var(--texto-suave); }
.hibrida-cierre b { color: var(--petroleo); }
@media (max-width: 760px) { .hibrida { grid-template-columns: 1fr; } }

/* Por qué ahora */
.cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.petroleo .cifra { background: rgba(18, 63, 68, .65); border: 1px solid var(--linea-oscura); }
.cifra strong { font-size: clamp(3.6rem, 8.2vw, 6.5rem); font-variant-numeric: tabular-nums; }
.fuente { margin-top: 1.5rem; font-size: .82rem; color: var(--sobre-oscuro-suave); max-width: 52rem; }
.fuente a { color: var(--sobre-oscuro-suave); }
@media (max-width: 560px) { .cifras { grid-template-columns: 1fr; gap: .9rem; } .cifra strong { font-size: 4rem; } }

.empezar-pie { margin-top: 2rem; }
.destacado-texto { font: 600 1.2rem/1.4 var(--f-titulo); letter-spacing: -.01em; color: var(--petroleo); max-width: var(--ancho-texto); }

/* Servicio recomendado */
.sello { position: absolute; top: clamp(1.4rem, 3vw, 2rem); right: clamp(1.4rem, 3vw, 2rem); font: 600 .74rem/1 var(--f-texto); letter-spacing: .1em; text-transform: uppercase; padding: .5rem .8rem; border-radius: 999px; background: var(--agua); color: var(--profundo); }

/* Reglas de uso dentro de Confidencialidad */
.gobierno { margin-top: clamp(3rem, 7vw, 5rem); padding-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--linea-oscura); }
.gobierno .titulo-2 { color: var(--sobre-oscuro); }

/* Procesos de cinco pasos */
.proceso.cinco { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .proceso.cinco { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 760px) { .proceso.cinco { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .proceso.cinco { grid-template-columns: 1fr; } }

/* Tarjetas sobre fondo oscuro, a todo el ancho */
.tarjetas.oscuras .tarjeta { background: rgba(127, 216, 194, .07); border-color: var(--linea-oscura); }
.tarjetas.oscuras .tarjeta h3 { color: var(--sobre-oscuro); }
.tarjetas.oscuras .tarjeta p { color: var(--sobre-oscuro-suave); }

/* Invitación al diagnóstico */
.diag-teaser { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.diag-teaser .cabeza { margin-bottom: 0; }
.diag-dimensiones { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; counter-reset: dim; }
.diag-dimensiones li { counter-increment: dim; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: rgba(18, 63, 68, .6); border: 1px solid var(--linea-oscura); font: 600 1.1rem var(--f-titulo); letter-spacing: -.01em; }
.diag-dimensiones li::before { content: counter(dim, decimal-leading-zero); color: var(--agua); font-size: .85rem; }
@media (max-width: 820px) { .diag-teaser { grid-template-columns: 1fr; } }

/* Diagnóstico */
.diag-nota { font-size: .9rem; color: var(--sobre-oscuro-suave); }
.diag-seccion { padding-top: clamp(3rem, 7vw, 5rem); }
.diag-app, .diag-form { max-width: 52rem; margin: 0 auto; }
.diag-caja { display: grid; gap: 1.4rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radio-g); background: var(--fondo); border: 1px solid var(--borde); }
.diag-progreso { display: grid; gap: .6rem; }
.diag-paso { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--petroleo); }
.diag-barra { height: 8px; border-radius: 8px; background: var(--menta); overflow: hidden; }
.diag-barra i { display: block; height: 100%; border-radius: 8px; background: var(--petroleo); transition: width .5s var(--ease); }
.diag-pregunta { font-size: var(--t-2); letter-spacing: -.025em; outline: none; }
.diag-ayuda, .diag-sub { color: var(--texto-suave); }
.diag-sub { font-weight: 600; color: var(--texto); }
.diag-opciones { display: grid; gap: .6rem; }
.diag-opcion { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; align-items: center; text-align: left; width: 100%; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--borde); background: var(--blanco); font: 500 1.02rem/1.45 var(--f-texto); color: var(--texto); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.diag-opcion:hover { border-color: var(--agua); transform: translateY(-1px); }
.diag-letra { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--menta); color: var(--petroleo); font: 700 .9rem var(--f-titulo); text-transform: uppercase; }
.diag-opcion[aria-pressed="true"] { border-color: var(--petroleo); background: var(--menta); box-shadow: 0 0 0 2px var(--petroleo) inset; }
.diag-opcion[aria-pressed="true"] .diag-letra { background: var(--petroleo); color: var(--blanco); }
.diag-rubro { max-width: 26rem; }
.diag-nav { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.diag-nav .boton.secundario { color: var(--petroleo); }
.diag-nav .boton[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.diag-resultado .etiqueta { margin: 0; }
.diag-total { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 4vw, 2.5rem); align-items: center; }
.diag-cifra { display: flex; align-items: baseline; gap: .2rem; }
.diag-cifra strong { font: 700 clamp(4rem, 10vw, 6.5rem)/1 var(--f-titulo); letter-spacing: -.05em; color: var(--petroleo); }
.diag-de { font: 600 1.2rem var(--f-titulo); color: var(--texto-suave); }
.diag-total h2 { outline: none; margin-bottom: .4rem; }
.diag-total p { color: var(--texto-suave); font-size: 1.1rem; }
.diag-barras { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.diag-barra-fila { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; margin-bottom: .4rem; }
.diag-barra-fila b { color: var(--petroleo); font-variant-numeric: tabular-nums; }
.diag-sub-titulo { font-size: 1.35rem; margin-top: .6rem; }
.diag-recos { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; counter-reset: reco; }
.diag-recos li { counter-increment: reco; display: grid; grid-template-columns: 34px 1fr; column-gap: .9rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--blanco); border: 1px solid var(--borde); }
.diag-recos li::before { content: counter(reco); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--petroleo); color: var(--blanco); font: 700 .9rem var(--f-titulo); }
.diag-recos strong { font-family: var(--f-titulo); }
.diag-recos p { color: var(--texto-suave); }
.diag-servicio { display: grid; gap: .6rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 20px; background: var(--profundo); color: var(--sobre-oscuro); }
.diag-servicio .etiqueta { color: var(--agua); }
.diag-servicio h3 { font-size: 1.6rem; }
.diag-servicio p { color: var(--sobre-oscuro-suave); }
.diag-servicio .enlace-flecha { color: var(--agua); }
.diag-cierre { font-size: .95rem; color: var(--texto-suave); }
.diag-cierre a { color: var(--petroleo); }
.diag-acciones .boton.secundario { color: var(--petroleo); }
.diag-form { margin-top: 1.5rem; box-shadow: 0 30px 80px rgba(15, 76, 74, .14); border: 1px solid var(--borde); }
.diag-form-cab { display: grid; gap: .6rem; }
.diag-form-cab p:last-child { color: var(--texto-suave); }
.diag-sin-js { padding: 1.5rem; border-radius: 16px; background: var(--menta); }
@media (max-width: 520px) { .diag-total { grid-template-columns: 1fr; } .diag-nav .boton { flex: 1; justify-content: center; } }

/* Impresión del resultado del diagnóstico */
@media print {
  .cabecera, .pie, .cookies, .whatsapp, .aviso-previa, .diag-hero, .diag-form, .diag-acciones, .saltar { display: none !important; }
  body { background: #fff; }
  .diag-seccion { padding: 0; }
  .diag-caja { border: 0; padding: 0; background: #fff; }
  .diag-servicio { background: #fff; color: var(--texto); border: 1px solid var(--borde); }
  .diag-servicio p, .diag-servicio h3 { color: var(--texto); }
  .diag-barra, .diag-barra i, .diag-recos li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 520px) {
  .diag-caja { padding: 1.25rem 1rem; gap: 1.1rem; }
  .diag-recos li { grid-template-columns: 1fr; row-gap: .5rem; padding: 1rem; }
  .diag-recos li::before { grid-row: auto; }
  .diag-opcion { padding: .85rem .9rem; grid-template-columns: 30px 1fr; gap: .7rem; }
  .diag-letra { width: 30px; height: 30px; }
}

/* ===== v1.2.0 · segunda revisión ===== */
/* Etapas: títulos y descripciones alineados en la misma línea aunque ocupen distinta cantidad de renglones */
@supports (grid-template-rows: subgrid) {
  .proceso { grid-auto-rows: auto; }
  .proceso li { grid-row: span 3; grid-template-rows: subgrid; row-gap: .7rem; }
}
.sello.suave { background: var(--menta); color: var(--petroleo); }
.tarjeta .modalidad { justify-self: start; font: 600 .74rem/1 var(--f-texto); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 999px; background: var(--menta); color: var(--petroleo); }
.tarjeta .modalidad.online { background: var(--profundo); color: var(--agua); }
.diag-siguiente { font-size: .95rem; padding-top: .8rem; border-top: 1px solid var(--linea-oscura); }
.diag-siguiente a { color: var(--agua); font-weight: 600; }
.avatar-nota { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--menta); color: var(--petroleo); font-weight: 500; max-width: 52rem; }

/* Guías (v1.2.0) */
.guia-datos { font-size: var(--t-chico); color: var(--sobre-oscuro-suave); }
.guia-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 17rem); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.guia { display: grid; gap: 1.2rem; min-width: 0; }
.guia-lateral { position: sticky; top: 96px; display: grid; gap: 1.5rem; }
.guia-lateral-diag { background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio-g); padding: 1.4rem; display: grid; gap: .7rem; justify-items: start; }
.guia-lateral-diag p:not(.etiqueta) { color: var(--texto-suave); font-size: .95rem; }
.guia-otras ul { display: grid; gap: .6rem; }
@media (max-width: 900px) { .guia-layout { grid-template-columns: 1fr; } .guia-lateral { position: static; } }
.guia h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 1.6rem; letter-spacing: -.015em; color: var(--profundo); }
.guia p, .guia li { color: var(--texto-suave); }
.guia ul, .guia ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .6rem; }
.guia li strong { color: var(--texto); }
.guia a:not(.boton):not(.enlace-flecha) { color: var(--petroleo); font-weight: 500; }
.guia-resumen { background: var(--menta); border-radius: var(--radio-g); padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: .6rem; }
.guia-resumen p:last-child { color: var(--profundo); font-size: var(--t-3); line-height: 1.5; }
.nota-guia, .guia-fuente { font-size: var(--t-chico); }
.guia-fuente { border-top: 1px solid var(--borde); padding-top: 1.2rem; margin-top: 1rem; }
.guia-cta { background: var(--profundo); border-radius: var(--radio-g); padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; gap: 1rem; margin-top: 1rem; }
.guia .guia-cta h2 { color: var(--sobre-oscuro); margin-top: 0; }
.guia .guia-cta p { color: var(--sobre-oscuro-suave); }
.guia-otras ul { list-style: none; padding: 0; }
.claro .guia-cta .boton.secundario { color: var(--sobre-oscuro); }
@media print { .guia-cta, .guia-otras { display: none; } }

/* ===== v1.3.0 · mejoras estéticas ===== */

/* 1 · Portada: dos renglones en computadora; en celular la frase verde va entera en su renglón */
.hero-inicio .hero-texto { max-width: none; }
.hero-inicio h1 { font-size: clamp(2rem, 9.4vw, 2.75rem); }
.hero-inicio h1 .renglon { display: block; }
.hero-inicio h1 em { display: block; white-space: nowrap; }
.hero-inicio .lead { max-width: 54rem; }
@media (min-width: 561px) {
  .hero-inicio h1 { font-size: clamp(2.75rem, 5.6vw, 4.5rem); }
  .hero-inicio h1 em { display: inline; }
}
@media (min-width: 760px) { .hero-inicio h1 .renglon { white-space: nowrap; } }

/* 2 · Videos de borde a borde, con la frase encima */
.video-ancho { position: relative; overflow: hidden; display: grid; align-items: end; height: min(84svh, 56.25vw); min-height: 320px; background: var(--profundo); color: var(--blanco); }
/* El encuadre se ancla arriba: si la pantalla es más ancha que el video, se recorta por abajo y nunca las cabezas */
.video-ancho video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.video-portada video { object-position: 50% 50%; }
.video-ancho::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(4, 18, 20, .74), rgba(4, 18, 20, .2) 40%, rgba(4, 18, 20, 0) 62%); }
.video-ancho .envoltura { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(1.6rem, 5vw, 4rem); }
.video-frase { font: 700 clamp(1.5rem, 3.6vw, 3rem)/1.08 var(--f-titulo); letter-spacing: -.03em; max-width: 36rem; text-wrap: balance; text-shadow: 0 2px 24px rgba(4, 18, 20, .5); }
.video-frase span { color: var(--agua); }
.video-inicio { height: min(calc(100svh - 64px - env(safe-area-inset-top, 0px)), 56.25vw); }
.video-inicio .video-frase { font-size: clamp(1.9rem, 5vw, 4.4rem); max-width: 54rem; }
/* Tableta y celular: el video se ve entero, sin recortar a nadie. En los servicios la frase va debajo. */
@media (max-width: 900px) {
  .video-ancho { display: block; height: auto; min-height: 0; }
  .video-ancho video { position: static; height: auto; aspect-ratio: 16 / 9; }
  .video-ancho::after { content: none; }
  .video-ancho .envoltura { padding-block: 1.3rem 1.5rem; }
  .video-frase { text-shadow: none; }
  .video-inicio { display: grid; aspect-ratio: 16 / 9; }
  .video-inicio video { position: absolute; height: 100%; aspect-ratio: auto; }
  .video-inicio::after { content: ""; }
  .video-inicio .envoltura { padding-block: 0 clamp(1.2rem, 4vw, 2rem); }
  .video-inicio .video-frase { text-shadow: 0 2px 24px rgba(4, 18, 20, .5); }
}
/* Celular: el video del inicio usa una versión vertical que sigue a las personas */
@media (max-width: 560px) {
  .video-inicio { aspect-ratio: 8 / 9; }
  .video-inicio video { object-position: 14% 0; } /* la imagen de espera coincide con el primer cuadro */
}

/* 3 · Inicio más corto: Equipo dentro de Organización híbrida, y Reglas de uso junto a Confidencialidad */
.equipo { margin-top: clamp(4rem, 9vw, 7rem); padding-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--borde); scroll-margin-top: 80px; }
.equipo > * { min-width: 0; }
.equipo-texto { display: grid; gap: 1.1rem; }
.equipo-texto p:not(.etiqueta) { color: var(--texto-suave); font-size: 1.1rem; }
.confianza { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.confianza-col { display: grid; gap: 1.5rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radio-g); background: rgba(127, 216, 194, .06); border: 1px solid var(--linea-oscura); scroll-margin-top: 96px; }
.confianza-col h3 { font-size: var(--t-2); }
.confianza-col .lista-check li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 820px) { .confianza { grid-template-columns: 1fr; } }

/* 4 · Fundido corto entre páginas */
@keyframes entrar { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  main { animation: entrar .45s ease-out; }
  html.saliendo main, html.saliendo .pie { opacity: 0; transition: opacity .16s ease-in; }
}

/* 6 · Método en celular: el isotipo queda fijo arriba mientras pasan los cuatro pasos */
@media (max-width: 820px) {
  .metodo-grid { grid-template-columns: 1fr; gap: 0; }
  .metodo-visual {
    position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); order: -1; z-index: 2;
    aspect-ratio: auto; max-width: none; display: flex; align-items: center; justify-content: flex-start; gap: 1.1rem;
    margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: .8rem var(--gutter-r) .8rem var(--gutter-l);
    border: 0; border-bottom: 1px solid var(--linea-oscura); border-radius: 0; background: var(--profundo);
    box-shadow: 0 18px 28px -18px rgba(4, 18, 20, .55);
  }
  .metodo-visual svg { width: clamp(92px, 27vw, 128px); flex-shrink: 0; }
  .metodo-visual .rotulo { position: static; font-size: 1.1rem; line-height: 1.3; }
  .js .metodo-paso { opacity: .38; }
  .js .metodo-paso.activo { opacity: 1; }
  .metodo-paso, .metodo-paso:first-child { padding-block: 2.6rem; }
}

/* 7 · Botones y menú más grandes en computadora */
@media (min-width: 1100px) {
  html { scroll-padding-top: 76px; }
  .cabecera .envoltura { min-height: 76px; }
  .cabecera .marca img { width: 190px; }
  .menu { gap: .35rem; }
  .menu > a, .submenu > button { font-size: 1.05rem; padding: .65rem 1rem; }
  .boton { min-height: 56px; padding: 1rem 1.8rem; font-size: 1.08rem; }
  .menu > .boton { min-height: 48px; padding: .75rem 1.4rem; font-size: 1.02rem; margin-left: .7rem; }
  .formulario .boton { min-height: 58px; font-size: 1.1rem; }
  .video-inicio { height: min(calc(100svh - 76px), 56.25vw); }
}

/* 8 · Tarjetas: enlace al pie y realce leve al pasar el mouse */
.servicio .icono { transition: transform .45s var(--ease); }
@media (hover: hover) {
  .servicio:hover { transform: translateY(-3px); background: var(--blanco); border-color: var(--agua); box-shadow: 0 22px 48px rgba(15, 76, 74, .1); }
  .servicio:hover .icono { transform: scale(1.05); }
  .servicio:hover .enlace-flecha::after { transform: translateX(4px); }
  .guia-tarjeta:hover { transform: translateY(-3px); border-color: var(--agua); box-shadow: 0 22px 48px rgba(15, 76, 74, .1); }
  .guia-tarjeta:hover .guia-tarjeta-foto img { transform: scale(1.04); }
  .guia-tarjeta:hover .enlace-flecha::after { transform: translateX(4px); }
}
.guia-tarjeta { padding: 0; gap: 0; overflow: hidden; grid-template-rows: auto auto 1fr auto; align-content: stretch; text-decoration: none; color: inherit; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.guia-tarjeta-foto { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--menta); }
.guia-tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.guia-tarjeta h2 { padding: 1.5rem 1.7rem 0; font-size: 1.35rem; color: var(--profundo); letter-spacing: -.015em; }
.guia-tarjeta p { padding: .7rem 1.7rem 0; }
.guia-tarjeta .enlace-flecha { padding: 1.2rem 1.7rem 1.7rem; align-self: end; }

/* ===== v1.3.2 · revisión en celular ===== */
/* Enlaces con flecha: si el texto ocupa dos renglones, la flecha queda pegada a la última palabra */
.enlace-flecha { display: inline; }
.enlace-flecha::after { display: inline-block; margin-left: .4rem; }

/* ===== v1.3.3 · pruebas de Leo ===== */
/* Método, paso cuatro: el trazo nace del círculo de la izquierda, llega al central y de ahí se abre hacia las dos puntas */
.metodo-visual .trazo-centro { transition-duration: .45s; }
.metodo-visual .trazo-punta.on { transition-delay: .5s; transition-duration: .7s; }
.metodo-visual .nodo[data-paso="3"].on { transition-delay: .35s; }
/* Dos columnas con el texto de la derecha centrado respecto del título */
.dos-col-centrado { align-items: center; }
.dos-col-centrado .cabeza { margin-bottom: 0; }
/* "Ver qué incluye": en notebooks (pantallas bajas) el bloque se compacta para que entre completo en pantalla */
@media (min-width: 901px) and (max-height: 840px) {
  #detalle .cabeza { gap: .8rem; margin-bottom: 1.8rem; max-width: 62rem; }
  #detalle .titulo-1 { font-size: clamp(1.9rem, 3.1vw, 2.6rem); }
  #detalle .tarjeta { padding: 1.25rem 1.5rem; gap: .5rem; }
  #detalle .tarjeta p, #detalle .proceso p { font-size: .95rem; line-height: 1.5; }
}
