/* TDF Connect — landing v2 (claro, aireado, mobile-first) */

.contenedor { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.contenedor--angosto { max-width: 820px; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.015em; }
h3 { font-size: 1.3rem; }
section[id] { scroll-margin-top: 84px; }

/* Aparición al scroll (solo si hay JS) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js [data-reveal].visible { opacity: 1; transform: none; }

/* ===== Header ===== */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.cabecera.scrolled { border-color: var(--borde); box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .3); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.cabecera__logo img { height: 38px; width: auto; }
.menu { display: none; }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 0 12px; background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
.burger span { display: block; height: 2.5px; background: var(--negro); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu.abierto { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--borde); box-shadow: 0 24px 30px -20px rgba(0, 0, 0, .25); animation: bajar .25s var(--ease); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu li a { display: block; padding: 14px 4px; color: var(--negro); font-weight: 400; font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--borde); }
.menu li a:hover { color: var(--verde-texto); }
.menu__cta { margin-top: 16px; }
@keyframes bajar { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .burger { display: none; }
  .menu, .menu.abierto { display: flex; flex-direction: row; align-items: center; gap: 1.4rem; position: static; padding: 0; background: none; border: 0; box-shadow: none; animation: none; }
  .menu ul { flex-direction: row; gap: 1.5rem; }
  .menu li a { padding: 8px 2px; border: 0; font-size: 1rem; position: relative; }
  .menu li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--verde); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .menu li a:hover::after, .menu li a:focus-visible::after { transform: scaleX(1); }
  .menu__cta { margin: 0; min-height: 44px; padding: .5rem 1.25rem; }
}

/* ===== Hero ===== */
.hero { position: relative; padding: 36px 0 64px; overflow: hidden; isolation: isolate; }
.hero__fondo { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(520px 420px at 92% 12%, rgba(168, 230, 207, .55), transparent 70%),
  radial-gradient(420px 360px at -5% 90%, rgba(234, 249, 241, .9), transparent 70%);
}
.hero__fondo::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(44, 62, 80, .09) 1.2px, transparent 1.4px); background-size: 26px 26px; mask-image: linear-gradient(115deg, transparent 40%, #000 100%); -webkit-mask-image: linear-gradient(115deg, transparent 40%, #000 100%); }
.hero__grilla { display: grid; gap: 40px; align-items: center; }
.sello { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .95rem; background: var(--verde-tinte); color: var(--verde-texto); border-radius: 999px; font-weight: 500; font-size: 1rem; margin-bottom: 1.25rem; }
.sello__punto { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: pulso 2.4s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
.hero h1 { font-size: clamp(2.2rem, 7.4vw, 3.9rem); line-height: 1.08; letter-spacing: -.02em; max-width: 16ch; }
.hero__bajada { margin-top: 1.25rem; font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--texto-suave); max-width: 34em; font-weight: 400; }
.hero__botones { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero__puntos { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding: 0; margin: 1.75rem 0 0; color: var(--texto-suave); font-weight: 400; font-size: 1rem; }
.hero__puntos li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__puntos svg { width: 20px; height: 20px; color: var(--verde-texto); }

.hero__texto > * { animation: entra .8s 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; }
.hero__texto > :nth-child(5) { animation-delay: .32s; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Escena decorativa */
.escena { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / .95; margin-inline: auto; font-size: 14px; animation: entra 1s var(--ease) .2s both; }
.escena__ventana { position: absolute; left: 0; top: 4%; width: 86%; background: #fff; border: 1px solid var(--borde); border-radius: 20px; box-shadow: var(--sombra-m); overflow: hidden; }
.ventana__barra { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--gris-claro); border-bottom: 1px solid var(--borde); }
.ventana__barra i { width: 10px; height: 10px; border-radius: 50%; background: #D5DADA; }
.ventana__barra i:first-child { background: var(--verde); }
.ventana__barra span { margin-left: 10px; flex: 1; background: #fff; border-radius: 999px; padding: 3px 12px; color: var(--texto-suave); font-weight: 400; }
.ventana__cuerpo { padding: 18px; display: grid; gap: 10px; }
.sk { border-radius: 8px; background: #EDF0F0; }
.sk--titulo { height: 22px; width: 60%; background: var(--negro); opacity: .85; }
.sk--linea { height: 10px; width: 90%; }
.sk--corta { width: 55%; }
.ventana__fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0; }
.sk--foto { aspect-ratio: 1 / .8; background: var(--verde-suave); }
.sk--foto2 { background: #D8F3E6; }
.sk--foto3 { background: var(--verde-tinte); }
.sk--boton { height: 34px; width: 38%; background: var(--verde); border-radius: 999px; }

.escena__celu { position: absolute; right: 0; bottom: 0; width: 52%; background: #fff; border: 1px solid var(--borde); border-radius: 26px; box-shadow: var(--sombra-m); padding: 14px 14px 18px; display: grid; gap: 10px; animation: flota 7s ease-in-out infinite; }
.celu__cab { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--borde); font-weight: 500; }
.celu__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--verde-tinte); color: var(--verde-texto); }
.celu__avatar svg { width: 18px; height: 18px; }
.burbuja { padding: 9px 12px; border-radius: 14px; line-height: 1.35; font-weight: 400; max-width: 92%; }
.burbuja--cli { background: var(--gris-claro); border-bottom-left-radius: 4px; }
.burbuja--bot { background: var(--verde); color: var(--negro); border-bottom-right-radius: 4px; margin-left: auto; }
.escena__chip { position: absolute; right: 4%; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: #fff; border: 1px solid var(--borde); border-radius: 999px; box-shadow: var(--sombra-s); font-weight: 500; color: var(--negro); animation: flota 6s ease-in-out -2s infinite; }
.escena__chip svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--verde); color: var(--negro); }
.escena__hilo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.escena__hilo path { animation: hilo 2.4s linear infinite; }
@keyframes flota { 50% { transform: translateY(-7px); } }
@keyframes hilo { to { stroke-dashoffset: -24; } }

@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero__grilla { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .escena { font-size: 15px; }
}

/* ===== Secciones ===== */
.seccion { padding: 72px 0; }
.seccion--gris { background: var(--gris-claro); }
.seccion__cab { max-width: 640px; margin-bottom: 40px; }
.seccion__cab p { margin-top: .9rem; color: var(--texto-suave); font-size: 1.15rem; }
@media (min-width: 900px) { .seccion { padding: 104px 0; } .seccion__cab { margin-bottom: 56px; } }

/* Qué hacemos */
.tarjetas { display: grid; gap: 20px; }
.tarjeta { position: relative; padding: 32px 28px; background: #fff; border: 1px solid var(--borde); border-radius: 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden; }
.tarjeta::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--verde); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.tarjeta:hover { transform: translateY(-6px); box-shadow: var(--sombra-m); border-color: var(--verde-suave); }
.tarjeta:hover::before { transform: scaleX(1); }
.tarjeta__icono { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--verde-tinte); color: var(--verde-texto); margin-bottom: 22px; transition: background .3s, color .3s, transform .3s var(--ease); }
.tarjeta:hover .tarjeta__icono { background: var(--verde); color: var(--negro); transform: rotate(-4deg) scale(1.04); }
.tarjeta__icono svg { width: 32px; height: 32px; }
.tarjeta h3 { margin-bottom: .6rem; font-size: 1.45rem; }
.tarjeta p { color: var(--texto-suave); }
.cierre { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 40px; padding: 28px; background: var(--gris-claro); border-radius: 22px; font-size: 1.2rem; font-weight: 400; }
@media (min-width: 760px) { .tarjetas { grid-template-columns: repeat(3, 1fr); gap: 24px; } .cierre { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 36px; } }

/* Quiénes somos */
.quienes__texto { margin-top: 1.1rem; font-size: 1.2rem; line-height: 1.65; color: var(--texto-suave); max-width: 38em; }

/* Cómo trabajamos */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.paso { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding-bottom: 36px; }
.paso:last-child { padding-bottom: 0; }
.paso::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; border-left: 3px dotted var(--verde-suave); }
.paso:last-child::before { display: none; }
.paso__num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--verde); color: var(--negro); font-weight: 600; font-size: 1.35rem; box-shadow: 0 0 0 7px var(--verde-tinte); }
.paso__tiempo { display: inline-block; margin-bottom: .45rem; padding: .2rem .75rem; border-radius: 999px; background: var(--verde-tinte); color: var(--verde-texto); font-weight: 500; font-size: 1rem; }
.paso h3 { margin-bottom: .45rem; font-size: 1.35rem; }
.paso p { color: var(--texto-suave); max-width: 40em; }
@media (min-width: 900px) {
  .pasos { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .paso { grid-template-columns: 1fr; gap: 20px; padding-bottom: 0; align-content: start; }
  .paso::before { left: 64px; right: -28px; top: 25px; bottom: auto; border-left: 0; border-top: 3px dotted var(--verde-suave); height: 0; }
  .paso h3 { font-size: 1.25rem; }
}

/* ===== Clientes: carrusel infinito ===== */
.clientes { background: #F1F2F3; padding: 72px 0 56px; }
.clientes__cab { text-align: center; max-width: 700px; margin-bottom: 44px; }
.clientes__cab p { margin-top: .9rem; color: var(--texto-suave); font-size: 1.15rem; }
.carrusel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.carrusel__pista { display: flex; width: max-content; animation: marquesina 48s linear infinite; }
.carrusel:hover .carrusel__pista, .carrusel:focus-within .carrusel__pista { animation-play-state: paused; }
.carrusel__grupo { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex: none; }
@keyframes marquesina { to { transform: translateX(-50%); } }
.logo { padding: 0 40px 44px; display: flex; justify-content: center; }
.logo a, .logo__fijo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; min-height: 96px; text-decoration: none; border-radius: 12px; }
.logo a { cursor: pointer; }
.logo__fijo { cursor: default; }
/* Área pareja: mismo alto para todos, ancho máximo; object-fit evita deformar los apaisados */
/* Respaldo sin JS: caja común de 176x72 con object-fit; con JS (landing.js) se afina por área para que pesen parecido */
.logo img { width: 176px; height: 72px; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.logo a:hover img, .logo a:focus-visible img, .logo__fijo:hover img { filter: none; opacity: 1; transform: scale(1.06); }
/* Logo en caja de alto fijo (los logos quedan centrados ahí) y debajo, siempre visible: "Gracias" + nombre */
.logo__img { display: flex; align-items: center; justify-content: center; height: 96px; }
.logo a, .logo__fijo { justify-content: flex-start; }
.logo__gracias { display: flex; flex-direction: column; align-items: center; margin-top: 10px; text-align: center; max-width: 200px; color: var(--texto-suave); }
.logo__g { font-weight: 500; font-size: .9rem; color: var(--verde-oscuro, #1e8449); }
.logo__n { font-weight: 500; font-size: 1rem; color: var(--texto, #1A1A1A); line-height: 1.25; }
.logo { padding-bottom: 20px; }
@media (max-width: 640px) {
  .carrusel { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
  .logo { padding: 0 24px 20px; }
  .logo__img { height: 72px; }
  .logo img { width: 132px; height: 56px; }
  .logo a, .logo__fijo { min-width: 90px; min-height: 90px; }
}
/* Sin movimiento: lista estática centrada, sin duplicados */
@media (prefers-reduced-motion: reduce) {
  .carrusel { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .carrusel__pista { animation: none; width: auto; justify-content: center; }
  .carrusel__grupo { flex-wrap: wrap; justify-content: center; }
  .carrusel__grupo--clon { display: none; }
  .carrusel__grupo .logo:nth-child(n+4) { display: none; }
}

/* ===== Instagram ===== */
.ig { display: grid; gap: 36px; align-items: center; padding: 36px 24px; background: var(--slate); color: #fff; border-radius: 28px; position: relative; overflow: hidden; }
.ig::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 204, 113, .35), transparent); }
.ig h2 { color: #fff; }
.ig p { margin: 1rem 0 1.75rem; color: #E6ECEF; font-size: 1.15rem; max-width: 32em; }
.ig__tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; max-width: 280px; position: relative; }
.tile { aspect-ratio: 1; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: var(--verde-suave); transition: transform .35s var(--ease); }
.tile svg { width: 44%; height: 44%; }
.tile--b { background: var(--verde); color: var(--negro); transform: translateY(14px); }
.tile--c { transform: translateY(-14px); }
.tile--d { background: #fff; color: var(--negro); font-weight: 600; transform: translateY(0); }
.tile--d span { font-size: .9rem; padding: 0 6px; }
.ig:hover .tile--a { transform: translateY(-6px) rotate(-3deg); }
.ig:hover .tile--d { transform: translateY(6px) rotate(3deg); }
@media (min-width: 900px) { .ig { grid-template-columns: 1.2fr .8fr; padding: 64px 64px; gap: 48px; } .ig__tiles { justify-self: end; } }

/* ===== Formulario ===== */
.contacto__grilla { display: grid; gap: 36px; align-items: start; }
.contacto__texto p { margin-top: 1rem; color: var(--texto-suave); font-size: 1.15rem; max-width: 30em; }
.formulario { background: #fff; border: 1px solid var(--borde); border-radius: 24px; padding: 24px 20px; box-shadow: var(--sombra-s); }
.formulario form { display: grid; gap: 20px; }
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario__error { padding: .9rem 1rem; border-radius: 12px; background: var(--rojo-tinte); color: var(--rojo); font-weight: 400; }
.formulario__error[hidden] { display: none; }
.formulario__exito { text-align: center; padding: 32px 8px; }
.formulario__exito:focus { outline: none; }
.formulario__exito[hidden], .formulario form[hidden] { display: none; }
.exito__icono { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--verde); color: var(--negro); margin-bottom: 1.25rem; animation: pop .5s var(--ease); }
.exito__icono svg { width: 36px; height: 36px; }
.exito__salidas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.privacidad { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--borde); color: var(--texto-suave); font-size: .875rem; line-height: 1.5; }
.privacidad p { margin: 0; }
.privacidad summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--verde-texto); font-weight: 500; }
.privacidad details p { padding-bottom: 6px; }
.formulario__exito p { margin-top: .75rem; color: var(--texto-suave); font-size: 1.1rem; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.btn.enviando .btn__txt::after { content: "…"; }
@media (min-width: 640px) { .formulario { padding: 36px; } }
@media (min-width: 960px) { .contacto__grilla { grid-template-columns: .85fr 1.15fr; gap: 72px; } .contacto__texto { position: sticky; top: 110px; } }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--borde); border-radius: 18px; transition: border-color .25s, box-shadow .25s; }
.faq__item[open] { border-color: var(--verde-suave); box-shadow: var(--sombra-s); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 14px 22px; font-weight: 500; font-size: 1.15rem; cursor: pointer; list-style: none; border-radius: 18px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 24px; height: 24px; flex: none; color: var(--verde-texto); transition: transform .3s var(--ease); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__resp { padding: 0 22px 22px; color: var(--texto-suave); max-width: 44em; }
.faq__item[open] .faq__resp { animation: bajar .3s var(--ease); }

/* ===== Footer ===== */
.pie { background: var(--gris-claro); padding: 56px 0 28px; border-top: 1px solid var(--borde); }
.pie__grilla { display: grid; gap: 36px; }
.pie__marca img { height: 40px; width: auto; margin-bottom: 1rem; }
.pie__marca p { color: var(--texto-suave); max-width: 28em; }
.pie__col { display: grid; gap: .2rem; align-content: start; }
.pie__col h2 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.pie__col a { display: inline-block; padding: .35rem 0; color: var(--negro); text-decoration: none; font-weight: 400; }
.pie__col a:hover { color: var(--verde-texto); text-decoration: underline; }
.pie__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--borde); color: var(--texto-suave); font-size: 1rem; }
@media (min-width: 760px) { .pie__grilla { grid-template-columns: 1.6fr 1fr 1fr; } }

/* Ronda 3: objetivos táctiles de 44 px */
.pie__col a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
@media (min-width: 900px) { .menu li a { display: inline-flex; align-items: center; min-height: 44px; } }
.cabecera__logo { display: inline-flex; align-items: center; min-height: 44px; }

/* ===== Solución digital: bloque que agrupa las tres tarjetas ===== */
.solucion { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem; max-width: 720px; margin: 0 auto 8px; padding: 28px 24px 8px; }
.solucion__etiqueta { display: inline-block; padding: .35rem 1rem; border-radius: 999px; background: var(--verde); color: var(--negro); font-weight: 600; font-size: 1.05rem; }
.solucion__texto { margin: 0; color: var(--texto-suave); font-size: 1.15rem; line-height: 1.55; }
.solucion__flecha { width: 28px; height: 28px; color: var(--verde); }
.solucion__flecha svg { width: 100%; height: 100%; display: block; }
