/* ===== Axentry · estilos =====
   Paleta: azul marino de marca + degradado morado/celeste (del logo) y UN acento naranja solo para los botones de acción.
   Tema claro por defecto; el oscuro se activa con el botón (html[data-tema="oscuro"]). Contrastes de texto ≥ 4.5:1. */
:root {
  --fondo: #f5f7ff;
  --superficie: #ffffff;
  --superficie-2: #eef1ff;
  --texto: #0f1740;
  --suave: #4a5280;
  --borde: rgba(15, 23, 64, .12);
  --sombra: 0 10px 30px rgba(20, 30, 100, .10);
  --marino: #0b1030;
  --morado: #7c5cf5;
  --celeste: #1fb8d3;
  --naranja: #ff7a1a;
  --verde: #1ea672;
  --degradado: linear-gradient(135deg, #7c5cf5 0%, #1fb8d3 100%);
  --radio: 20px;
  --alto-barra: 68px;
}
html[data-tema="oscuro"] {
  --fondo: #0b1030;
  --superficie: #141c4a;
  --superficie-2: #101842;
  --texto: #eef0ff;
  --suave: #b4bbe0;
  --borde: rgba(255, 255, 255, .12);
  --sombra: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.6; overflow-x: hidden; transition: background .3s, color .3s; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 3px; border-radius: 6px; }
.envoltorio { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-family: inherit; }
.boton:hover { transform: translateY(-2px); }
.boton.accion { background: var(--naranja); color: #1a0d00; box-shadow: 0 8px 22px rgba(255, 122, 26, .35); }
.boton.accion:hover { box-shadow: 0 12px 28px rgba(255, 122, 26, .5); }
.boton.contorno { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.boton.pequeno { padding: 9px 18px; font-size: 14px; }

/* ---------- Barra superior ---------- */
header.barra { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--alto-barra); color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
header.barra.fija { background: color-mix(in srgb, var(--superficie) 92%, transparent); backdrop-filter: blur(12px); color: var(--texto); box-shadow: 0 1px 0 var(--borde); }
.barra .envoltorio { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.marca img { width: 32px; height: 32px; border-radius: 9px; }
nav.menu { display: flex; align-items: center; gap: 6px; }
nav.menu a.enlace { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; opacity: .9; transition: background .2s; }
nav.menu a.enlace:hover { background: rgba(124, 92, 245, .18); opacity: 1; }
.herramientas { display: flex; align-items: center; gap: 8px; }
.ctl { height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: 700 13px/1 inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; opacity: .9; }
.ctl:hover { opacity: 1; background: rgba(124, 92, 245, .18); }
.ctl svg { width: 18px; height: 18px; }
.hamburguesa { display: none; }
@media (max-width: 900px) {
  .hamburguesa { display: inline-flex; }
  nav.menu { position: fixed; top: var(--alto-barra); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--superficie); color: var(--texto); padding: 14px 22px 22px; gap: 4px; box-shadow: var(--sombra); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  nav.menu.abierto { transform: none; }
  nav.menu a.enlace { padding: 13px 14px; font-size: 17px; }
  .barra .boton.accion.pequeno { display: none; }
}

/* ---------- Banner (hero con carrusel) ---------- */
.banner { position: relative; min-height: min(100svh, 860px); padding: calc(var(--alto-barra) + 30px) 0 70px; color: #fff; background: var(--marino); overflow: hidden; display: flex; align-items: center; }
.banner .fondo-animado { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.mancha { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: flotar 14s ease-in-out infinite; }
.mancha.a { width: 520px; height: 520px; background: #7c5cf5; top: -160px; left: -120px; }
.mancha.b { width: 460px; height: 460px; background: #1fb8d3; bottom: -180px; right: -100px; animation-delay: -5s; }
.mancha.c { width: 300px; height: 300px; background: #ff7a1a; top: 40%; left: 55%; opacity: .22; animation-delay: -9s; }
.cuadricula { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); animation: desplazar 20s linear infinite; }
@keyframes flotar { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.12); } }
@keyframes desplazar { to { background-position: 46px 46px, 46px 46px; } }

.carrusel { position: relative; z-index: 1; width: 100%; }
.diapositiva { display: none; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; animation: entrar .7s both; }
.diapositiva.activa { display: grid; }
@keyframes entrar { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.etiqueta { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.etiqueta i { width: 8px; height: 8px; border-radius: 50%; background: #3be28b; box-shadow: 0 0 0 0 rgba(59,226,139,.7); animation: pulso 2s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 10px rgba(59,226,139,0); } 100% { box-shadow: 0 0 0 0 rgba(59,226,139,0); } }
.diapositiva h1, .diapositiva h2.titulo { font-size: clamp(32px, 5.2vw, 58px); line-height: 1.07; margin: 0 0 18px; letter-spacing: -.025em; }
.degradado-texto { background: linear-gradient(90deg, #a893ff, #5ee0f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.diapositiva p.lead { font-size: clamp(16px, 2vw, 19px); color: #cfd5f5; max-width: 560px; margin: 0 0 28px; }
.acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.banner .contorno { color: #fff; }
.controles-carrusel { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; }
.puntos { display: flex; gap: 8px; }
.punto { width: 34px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.28); border: 0; cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.punto.activo::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: progreso 7s linear forwards; }
.carrusel.pausado .punto.activo::after { animation-play-state: paused; }
@keyframes progreso { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pausa { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.pausa:hover { background: rgba(255,255,255,.15); }
.pausa svg { width: 14px; height: 14px; }
.flecha { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: rgba(11, 16, 48, .45); backdrop-filter: blur(6px); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.flecha:hover { background: rgba(124, 92, 245, .75); transform: translateY(-50%) scale(1.08); }
.flecha svg { width: 22px; height: 22px; }
.flecha.izq { left: 18px; } .flecha.der { right: 18px; }
@media (max-width: 1260px) { .banner .envoltorio { padding-inline: 72px !important; } }
@media (max-width: 900px) { .banner .envoltorio { padding-inline: 22px !important; } .flecha { top: 63%; width: 38px; height: 38px; } .flecha.izq { left: 6px; } .flecha.der { right: 6px; } }
.visual { position: relative; display: grid; place-items: center; min-height: 440px; }
@media (max-width: 900px) {
  .banner { min-height: auto; padding-bottom: 50px; }
  .diapositiva.activa { grid-template-columns: 1fr; text-align: center; }
  .diapositiva p.lead { margin-left: auto; margin-right: auto; }
  .acciones { justify-content: center; }
  .visual { min-height: 380px; }
  .controles-carrusel { justify-content: center; }
}

/* ---------- Maquetas (teléfono, portal, tickets) ---------- */
.telefono { width: 250px; height: 500px; border-radius: 38px; background: #0b0f2a; padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.12); position: relative; animation: flota 6s ease-in-out infinite; }
.telefono .pantalla { width: 100%; height: 100%; border-radius: 29px; background: #f3f5fd; overflow: hidden; color: #121842; font-size: 12px; position: relative; display: flex; flex-direction: column; }
.telefono .muesca { position: absolute; top: 8px; left: 50%; width: 70px; height: 18px; margin-left: -35px; background: #0b0f2a; border-radius: 12px; z-index: 3; }
.tel-cab { background: linear-gradient(135deg, #7c5cf5, #1fb8d3); color: #fff; padding: 34px 14px 14px; border-radius: 0 0 22px 22px; }
.tel-cab b { font-size: 16px; display: block; }
.tel-cab small { opacity: .9; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.chip.ok { background: #d9f6e8; color: #0b6b43; }
.chip.proceso { background: #fff1d6; color: #8a4a00; }
.chip.nuevo { background: #e3e8ff; color: #2b3bb5; }
.tel-cuerpo { padding: 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tarjeta-mini { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(20,30,100,.08); }
.tarjeta-mini .fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.barra-prog { height: 6px; border-radius: 6px; background: #e3e7f8; overflow: hidden; margin-top: 7px; }
.barra-prog i { display: block; height: 100%; width: 0; background: var(--degradado); border-radius: 6px; animation: llenar 2.4s .5s ease-out forwards; }
@keyframes llenar { to { width: var(--ancho, 70%); } }
.tel-boton { margin: 0 12px 14px; text-align: center; padding: 10px; border-radius: 999px; background: #0b1030; color: #fff; font-weight: 700; }
.aviso-flotante { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--superficie); color: var(--texto); font-size: 12.5px; font-weight: 600; box-shadow: 0 14px 34px rgba(0,0,0,.28); animation: flota 5s ease-in-out infinite; white-space: nowrap; }
.aviso-flotante svg { width: 18px; height: 18px; flex: none; }
.aviso-flotante.uno { top: 26px; left: -6px; animation-delay: -1s; }
.aviso-flotante.dos { bottom: 70px; right: -4px; animation-delay: -3s; }
.aviso-flotante.tres { top: 52%; left: -30px; animation-delay: -2s; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.ventana { width: 100%; max-width: 520px; border-radius: 16px; background: var(--superficie); color: var(--texto); box-shadow: 0 30px 60px rgba(0,0,0,.4); overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.ventana .barra-ventana { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--superficie-2); }
.ventana .barra-ventana i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.ventana .barra-ventana i:nth-child(2) { background: #ffcf44; }
.ventana .barra-ventana i:nth-child(3) { background: #3ddc84; }
.ventana .barra-ventana span { margin-left: 10px; font-size: 11px; color: var(--suave); background: var(--superficie); padding: 3px 12px; border-radius: 999px; }
.panel { display: grid; grid-template-columns: 54px 1fr; min-height: 300px; }
.panel .lateral { background: var(--marino); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.panel .lateral i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.18); }
.panel .lateral i:first-child { background: var(--degradado); }
.panel .contenido { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--superficie-2); border-radius: 12px; padding: 9px 10px; }
.kpi small { color: var(--suave); font-size: 10.5px; display: block; }
.kpi b { font-size: 20px; }
.grafica { display: flex; align-items: flex-end; gap: 7px; height: 90px; padding: 8px 10px; background: var(--superficie-2); border-radius: 12px; }
.grafica i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--degradado); height: 0; animation: crecer 1.2s .4s ease-out forwards; }
@keyframes crecer { to { height: var(--alto); } }
.tabla-mini { font-size: 11px; display: flex; flex-direction: column; gap: 6px; }
.tabla-mini .reg { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--borde); }

.chat { width: 100%; max-width: 440px; border-radius: 22px; background: var(--superficie); color: var(--texto); box-shadow: 0 30px 60px rgba(0,0,0,.4); overflow: hidden; }
.chat .cab { padding: 14px 16px; background: var(--degradado); color: #fff; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.chat .cuerpo { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.burbuja { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 13px; opacity: 0; animation: aparecer .5s forwards; }
.burbuja.cliente { background: var(--superficie-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.burbuja.agente { background: #7c5cf5; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.burbuja:nth-child(1) { animation-delay: .3s; } .burbuja:nth-child(2) { animation-delay: 1.3s; } .burbuja:nth-child(3) { animation-delay: 2.4s; } .burbuja:nth-child(4) { animation-delay: 3.4s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.escribiendo { display: inline-flex; gap: 4px; padding: 10px 14px; background: var(--superficie-2); border-radius: 16px; align-self: flex-start; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--suave); animation: salto 1s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; } .escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes salto { 50% { transform: translateY(-5px); opacity: .5; } }

/* ---------- Secciones ---------- */
section { padding: 84px 0; position: relative; }
.titulo-seccion { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.titulo-seccion .sobre { color: var(--morado); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
html[data-tema="oscuro"] .titulo-seccion .sobre { color: #a893ff; }
.titulo-seccion h2 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; margin: 8px 0 12px; letter-spacing: -.02em; }
.titulo-seccion p { color: var(--suave); font-size: 18px; margin: 0; }

/* Cinta de capacidades */
.cinta { background: var(--superficie); border-block: 1px solid var(--borde); overflow: hidden; padding: 18px 0; }
.cinta .pista { display: flex; gap: 38px; width: max-content; animation: cinta 36s linear infinite; }
.cinta span { font-weight: 700; color: var(--suave); white-space: nowrap; display: inline-flex; align-items: center; gap: 38px; }
.cinta span::after { content: "◆"; color: var(--morado); font-size: 10px; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* Productos */
.rejilla-productos { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1050px) { .rejilla-productos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rejilla-productos { grid-template-columns: 1fr; } }
.producto { position: relative; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px 24px; box-shadow: var(--sombra); transition: transform .25s, border-color .25s; transform-style: preserve-3d; overflow: hidden; }
.producto::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 245, .16), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.producto:hover { transform: translateY(-6px); border-color: var(--morado); }
.producto:hover::before { opacity: 1; }
.icono-producto { width: 54px; height: 54px; border-radius: 16px; background: var(--degradado); display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.icono-producto svg { width: 28px; height: 28px; }
.producto h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.01em; }
.producto p { margin: 0 0 12px; color: var(--suave); }
.producto ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; color: var(--suave); }
.producto li { display: flex; gap: 9px; align-items: flex-start; }
.producto li::before { content: "✓"; color: var(--verde); font-weight: 900; }
.nota { display: inline-block; margin-top: 12px; font-size: 12px; color: #b45309; background: #fff3d6; padding: 3px 10px; border-radius: 999px; }

/* Cómo funciona */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; position: relative; }
@media (max-width: 900px) { .pasos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pasos { grid-template-columns: 1fr; } }
.paso { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 26px 22px; counter-increment: paso; position: relative; }
.paso::before { content: counter(paso); width: 42px; height: 42px; border-radius: 50%; background: var(--degradado); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(124, 92, 245, .4); }
.paso h3 { margin: 0 0 6px; font-size: 18px; }
.paso p { margin: 0; color: var(--suave); font-size: 15px; }

/* Ventajas + cifras */
.fondo-alt { background: var(--superficie-2); }
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 44px; }
@media (max-width: 760px) { .cifras { grid-template-columns: 1fr 1fr; } }
.cifra { text-align: center; padding: 22px 10px; border-radius: var(--radio); background: var(--superficie); border: 1px solid var(--borde); }
.cifra b { display: block; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cifra span { color: var(--suave); font-size: 14px; }
.ventajas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .ventajas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ventajas { grid-template-columns: 1fr; } }
.ventaja { padding: 6px 4px; }
.ventaja .ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(124, 92, 245, .14); color: var(--morado); display: grid; place-items: center; margin-bottom: 12px; }
html[data-tema="oscuro"] .ventaja .ico { color: #a893ff; }
.ventaja .ico svg { width: 24px; height: 24px; }
.ventaja h3 { margin: 0 0 4px; font-size: 18px; }
.ventaja p { margin: 0; color: var(--suave); font-size: 15px; }

/* Pestañas de vistas */
.pestanas { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.pestana { padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--borde); background: var(--superficie); color: var(--texto); font: 700 15px/1 inherit; cursor: pointer; transition: all .2s; }
.pestana[aria-selected="true"] { background: var(--marino); color: #fff; border-color: var(--marino); }
html[data-tema="oscuro"] .pestana[aria-selected="true"] { background: var(--degradado); border-color: transparent; }
.vista { display: none; justify-content: center; padding: 40px 20px; border-radius: 28px; background: var(--marino); background-image: radial-gradient(600px 300px at 80% 0%, rgba(124, 92, 245, .5), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(31, 184, 211, .35), transparent 70%); position: relative; }
.vista.activa { display: flex; animation: entrar .5s both; }
.vista .telefono { animation: none; }

/* Contacto */
.contacto-caja { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; padding: 44px; border-radius: 32px; background: var(--marino); background-image: radial-gradient(600px 260px at 10% 0%, rgba(124, 92, 245, .5), transparent 70%), radial-gradient(520px 260px at 95% 100%, rgba(31, 184, 211, .35), transparent 70%); color: #fff; }
@media (max-width: 900px) { .contacto-caja { grid-template-columns: 1fr; padding: 28px 20px; } }
.contacto-texto .sobre { color: #a893ff; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.contacto-texto h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 8px 0 12px; letter-spacing: -.02em; }
.contacto-texto p { color: #cfd5f5; font-size: 18px; margin: 0 0 24px; }
.lista-contacto { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lista-contacto li { display: flex; align-items: center; gap: 12px; }
.lista-contacto svg { width: 22px; height: 22px; color: #5ee0f5; flex: none; }
.lista-contacto a { text-decoration: none; font-weight: 600; }
.lista-contacto a:hover { text-decoration: underline; }
.formulario { background: var(--superficie); color: var(--texto); border-radius: 22px; padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
@media (max-width: 560px) { .formulario { grid-template-columns: 1fr; padding: 20px; } }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo.ancho, .aviso-datos, .enviar, .estado-form { grid-column: 1 / -1; }
.campo label { font-size: 13px; font-weight: 700; color: var(--suave); }
.campo input, .campo select, .campo textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--borde); background: var(--fondo); color: var(--texto); font: 16px/1.4 inherit; font-family: inherit; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--morado); box-shadow: 0 0 0 4px rgba(124, 92, 245, .18); }
.campo textarea { resize: vertical; }
.campo .invalido { border-color: #e5484d; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aviso-datos { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--suave); }
.aviso-datos input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--morado); flex: none; }
.enviar { width: 100%; }
.enviar[disabled] { opacity: .7; cursor: wait; }
.estado-form { margin: 0; min-height: 22px; font-weight: 600; font-size: 15px; }
.estado-form.ok { color: var(--verde); } .estado-form.error { color: #e5484d; }

/* ---------- Pie de página ---------- */
footer.pie { background: var(--marino); color: #cfd5f5; padding: 64px 0 0; }
.pie-rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
@media (max-width: 900px) { .pie-rejilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pie-rejilla { grid-template-columns: 1fr; } }
.pie h4 { color: #fff; margin: 0 0 14px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.pie a { text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie .marca { color: #fff; margin-bottom: 12px; }
.pie .contacto-linea { display: flex; gap: 10px; align-items: flex-start; }
.pie .contacto-linea svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: #5ee0f5; }
.redes { display: flex; gap: 10px; margin-top: 16px; }
.redes a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: all .2s; }
.redes a:hover { background: var(--degradado); border-color: transparent; transform: translateY(-3px); text-decoration: none; }
.redes svg { width: 18px; height: 18px; }
.pie-fin { margin-top: 44px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.pie-fin nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; border-radius: 999px; background: #25d366; color: #04361b; font-weight: 800; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.3); transition: transform .2s; }
.whatsapp-flotante:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp-flotante .icono-wa { width: 46px; height: 46px; border-radius: 50%; background: #128c7e; color: #fff; display: grid; place-items: center; }
.whatsapp-flotante .icono-wa svg { width: 26px; height: 26px; }
.whatsapp-flotante::before { content: ""; position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); animation: pulso-wa 2.4s infinite; pointer-events: none; }
@keyframes pulso-wa { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 520px) { .whatsapp-flotante { padding: 6px; } .whatsapp-flotante .texto-wa { display: none; } }

/* ---------- Aparición al desplazarse ---------- */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visible { opacity: 1; transform: none; }
.revelar.d1 { transition-delay: .08s; } .revelar.d2 { transition-delay: .16s; } .revelar.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .revelar { opacity: 1; transform: none; }
  .barra-prog i { width: var(--ancho, 70%); } .grafica i { height: var(--alto); } .burbuja { opacity: 1; }
}

/* Preguntas frecuentes */
.envoltorio.estrecho { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--superficie); border: 1px solid var(--borde); border-radius: 16px; padding: 4px 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--morado); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--morado); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--suave); }

/* ---------- Asistente (chatbot) ---------- */
.as-boton { position: fixed; right: 22px; bottom: 92px; z-index: 61; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: var(--degradado); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(124, 92, 245, .5); transition: transform .2s; }
.as-boton:hover { transform: scale(1.08); }
.as-boton.abierto { background: var(--marino); }
.as-tip { position: fixed; right: 88px; bottom: 104px; z-index: 61; background: var(--superficie); color: var(--texto); padding: 9px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: var(--sombra); opacity: 0; transform: translateX(10px); pointer-events: none; transition: all .35s; }
.as-tip.ver { opacity: 1; transform: none; }
.as-panel { padding: 0; position: fixed; right: 18px; bottom: 160px; z-index: 62; width: min(370px, calc(100vw - 36px)); height: min(540px, calc(100vh - 190px)); background: var(--superficie); color: var(--texto); border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); border: 1px solid var(--borde); display: flex; flex-direction: column; overflow: hidden; animation: entrar .3s both; }
.as-panel[hidden] { display: none; }
.as-cab { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--degradado); color: #fff; }
.as-cab b { display: block; font-size: 16px; } .as-cab small { opacity: .92; }
.as-av { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 20px; }
.as-x { margin-left: auto; border: 0; background: rgba(255, 255, 255, .2); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.as-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--fondo); }
.as-b { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; animation: aparecer .3s both; white-space: pre-line; }
.as-bot { background: var(--superficie); border: 1px solid var(--borde); align-self: flex-start; border-bottom-left-radius: 4px; }
.as-yo { background: #7c5cf5; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.as-esc { display: inline-flex; gap: 4px; padding: 12px 14px; }
.as-esc i { width: 7px; height: 7px; border-radius: 50%; background: var(--suave); animation: salto 1s infinite; }
.as-esc i:nth-child(2) { animation-delay: .15s; } .as-esc i:nth-child(3) { animation-delay: .3s; }
.as-acciones { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.as-accion { display: block; text-align: center; padding: 9px 12px; border-radius: 12px; background: var(--naranja); color: #1a0d00; font-weight: 700; font-size: 14px; text-decoration: none; }
.as-accion:hover { filter: brightness(1.06); }
.as-chips { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--fondo); border-top: 1px solid var(--borde); scrollbar-width: thin; }
.as-chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--morado); background: transparent; color: var(--texto); font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.as-chip:hover { background: var(--morado); color: #fff; }
.as-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--borde); }
.as-in { flex: 1; padding: 11px 14px; border-radius: 999px; border: 1.5px solid var(--borde); background: var(--fondo); color: var(--texto); font: 15px inherit; font-family: inherit; min-width: 0; }
.as-in:focus { outline: none; border-color: var(--morado); }
.as-env { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--naranja); color: #1a0d00; cursor: pointer; display: grid; place-items: center; flex: none; }
@media (max-width: 520px) {
  .as-boton { right: 14px; bottom: 84px; }
  .as-panel { right: 10px; left: 10px; width: auto; bottom: 150px; height: min(520px, calc(100vh - 170px)); }
  .as-tip { display: none; }
}
