/* Landing «Asistente de IA para centros comerciales» · Optimiza con IA
   Mismo lenguaje visual que optimizaconia.es: Inter, azul #0094D6, tarjetas blancas con esquinas grandes y fondo gris claro. */
:root {
    --azul: #0094D6;
    --azul-hover: #0077B5;
    --azul-suave: #E6F4FB;
    --gris-texto: #4A5568;
    --gris-claro: #E2E8F0;
    --negro: #1A202C;
    --blanco: #FFFFFF;
    --fondo: #F5F7FA;
    --verde: #48BB78;
    --sombra: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
    --sombra-grande: 0 25px 50px -12px rgba(0, 0, 0, .15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; color: var(--gris-texto); background: var(--fondo); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.contenedor { width: min(1200px, 100% - 2.4rem); margin: 0 auto; }
.estrecho { width: min(820px, 100% - 2.4rem); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

/* ---------- barra ---------- */
.barra { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gris-claro); }
.barra-in { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.barra-logo img { height: 40px; width: auto; }
.barra-nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: .95rem; font-weight: 500; }
.barra-nav a { text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
.barra-nav a:hover { color: var(--azul); border-color: var(--azul); }

/* ---------- botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .7rem 1.6rem; border-radius: 8px; border: 2px solid var(--azul); font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.boton-solido { background: var(--azul); color: #fff; box-shadow: 0 6px 16px rgba(0, 148, 214, .3); }
.boton-solido:hover { background: var(--azul-hover); border-color: var(--azul-hover); transform: translateY(-1px); }
.boton-borde { background: #fff; color: var(--azul); }
.boton-borde:hover { background: var(--azul-suave); }
.boton-barra { min-height: 44px; padding: .45rem 1.2rem; font-size: .95rem; }
.boton-ancho { width: 100%; }
.boton:disabled { opacity: .65; cursor: default; transform: none; }

/* ---------- portada ---------- */
.portada { padding: 3.2rem 0 4.5rem; background: radial-gradient(900px 420px at 85% 10%, rgba(0, 148, 214, .1), transparent 70%), #fff; border-bottom: 1px solid var(--gris-claro); }
.portada-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.etiqueta { display: inline-block; padding: .3rem .85rem; border-radius: 999px; background: var(--azul-suave); color: var(--azul-hover); font-size: .85rem; font-weight: 600; margin-bottom: 1.1rem; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--negro); margin-bottom: 1.2rem; text-wrap: balance; }
.resalte { color: var(--azul); }
.entradilla { font-size: 1.15rem; color: #64748B; max-width: 38em; margin-bottom: 1.8rem; }
.botones { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.puntos { list-style: none; display: grid; gap: .55rem; }
.puntos li { position: relative; padding-left: 1.8rem; }
.puntos li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--azul-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.6' fill='none' stroke='%230094D6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.puntos strong { color: var(--negro); }

/* ---------- el móvil con la demo ---------- */
.portada-demo { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.movil { width: min(100%, 392px); padding: 12px; border-radius: 48px; background: #11181c; box-shadow: var(--sombra-grande), 0 0 0 2px #2a3338 inset; }
.movil-pantalla { position: relative; width: 100%; aspect-ratio: 9 / 19; max-height: 760px; border-radius: 38px; overflow: hidden; background: #fff; }
.movil-pantalla::before { content: ""; position: absolute; top: 10px; left: 50%; width: 92px; height: 6px; margin-left: -46px; border-radius: 4px; background: rgba(0, 0, 0, .35); z-index: 2; pointer-events: none; }
.movil-pantalla iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.demo-nota { max-width: 30em; text-align: center; font-size: .95rem; color: #64748B; }
.demo-nota strong { color: var(--negro); }

/* ---------- secciones ---------- */
.seccion { padding: 5rem 0; }
.seccion-gris { background: #EEF2F7; }
.titulo { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; color: var(--negro); text-align: center; margin-bottom: .8rem; text-wrap: balance; }
.subtitulo { text-align: center; color: #64748B; font-size: 1.1rem; max-width: 40em; margin: 0 auto 2.6rem; }
.titulo.izq, .subtitulo.izq { text-align: left; margin-left: 0; }

.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tarjeta { background: #fff; border: 1px solid var(--gris-claro); border-radius: 16px; padding: 1.6rem; box-shadow: var(--sombra); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tarjeta:hover { transform: translateY(-3px); border-color: var(--azul); box-shadow: 0 12px 24px rgba(0, 148, 214, .12); }
.icono { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--azul-suave); color: var(--azul); margin-bottom: 1rem; }
.icono svg { width: 26px; height: 26px; }
.tarjeta h3 { font-size: 1.12rem; font-weight: 700; color: var(--negro); margin-bottom: .45rem; line-height: 1.3; }
.tarjeta p { font-size: .97rem; }

/* ---------- galería de capturas ---------- */
.galeria { display: flex; gap: 1.6rem; overflow-x: auto; padding: .5rem .3rem 1.6rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
.captura { flex: 0 0 240px; scroll-snap-align: center; text-align: center; }
.captura-movil { padding: 8px; border-radius: 32px; background: #11181c; box-shadow: var(--sombra-grande); }
.captura-movil img { border-radius: 25px; width: 100%; }
.captura figcaption { margin-top: .9rem; font-size: .93rem; color: #64748B; font-weight: 500; }
@media (min-width: 1100px) { .galeria { justify-content: center; } }

/* ---------- ventajas ---------- */
.dos-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.lista-ventajas { list-style: none; display: grid; gap: 1rem; }
.lista-ventajas li { background: #fff; border: 1px solid var(--gris-claro); border-left: 4px solid var(--azul); border-radius: 12px; padding: 1.05rem 1.3rem; box-shadow: var(--sombra); }
.lista-ventajas strong { display: block; color: var(--negro); font-size: 1.05rem; margin-bottom: .15rem; }
.lista-ventajas span { font-size: .96rem; }

/* ---------- pasos ---------- */
.pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: p; }
.pasos li { background: #fff; border-radius: 16px; padding: 1.6rem; border: 1px solid var(--gris-claro); box-shadow: var(--sombra); }
.paso-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 700; margin-bottom: .9rem; }
.pasos h3 { font-size: 1.08rem; color: var(--negro); margin-bottom: .4rem; line-height: 1.3; }
.pasos p { font-size: .95rem; }

/* ---------- preguntas ---------- */
.faq { background: #fff; border: 1px solid var(--gris-claro); border-radius: 12px; margin-bottom: .8rem; box-shadow: var(--sombra); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--negro); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--azul); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.3rem 1.2rem; }

/* ---------- contacto ---------- */
.contacto { background: linear-gradient(135deg, #0078AD 0%, #0094D6 100%); color: #fff; padding: 5rem 0; }
.contacto-in { align-items: center; }
.contacto h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: .8rem; }
.contacto-texto p { font-size: 1.1rem; opacity: .95; margin-bottom: 1.4rem; }
.contacto-texto ul { list-style: none; display: grid; gap: .7rem; }
.contacto-texto li { position: relative; padding-left: 1.8rem; }
.contacto-texto li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.formulario-caja { background: #fff; color: var(--gris-texto); border-radius: 20px; padding: 2rem; box-shadow: var(--sombra-grande); }
.formulario { display: grid; gap: 1rem; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.campo { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; color: var(--negro); }
.campo em { font-weight: 400; color: #94A3B8; font-style: normal; }
.campo input, .campo textarea { font: inherit; font-weight: 400; color: var(--negro); padding: .8rem .9rem; border: 1.5px solid #CBD5E1; border-radius: 8px; background: #fff; width: 100%; }
.campo textarea { resize: vertical; min-height: 84px; }
.campo input:focus, .campo textarea:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0, 148, 214, .18); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consentimiento { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; }
.consentimiento input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--azul); }
.mensaje-form { min-height: 1.4em; font-size: .93rem; font-weight: 600; }
.mensaje-form.ok { color: #1F8A4C; }
.mensaje-form.error { color: #C53030; }

/* ---------- pie ---------- */
.pie { background: #fff; border-top: 1px solid var(--gris-claro); padding: 2.4rem 0; text-align: center; font-size: .92rem; }
.pie-in { display: grid; gap: .35rem; justify-items: center; }
.pie-logo { height: 44px; width: auto; margin-bottom: .6rem; }
.pie-credito { color: #94A3B8; }
.pie a { text-decoration: underline; }

/* ---------- móvil ---------- */
@media (max-width: 960px) {
    .portada-in, .dos-col { grid-template-columns: 1fr; }
    .portada { padding-top: 2.2rem; }
    .rejilla { grid-template-columns: 1fr 1fr; }
    .pasos { grid-template-columns: 1fr 1fr; }
    .barra-nav { display: none; }
    .boton-barra { margin-left: auto; }
}
@media (max-width: 620px) {
    .rejilla, .pasos, .fila { grid-template-columns: 1fr; }
    .seccion, .contacto { padding: 3.4rem 0; }
    .formulario-caja { padding: 1.4rem; }
    .movil { padding: 8px; border-radius: 40px; }
    .movil-pantalla { border-radius: 32px; aspect-ratio: 9 / 18; }
    .botones .boton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }


/* ======== Rediseño ======== */
.oscura { background: #0E1A2B; color: #fff; padding: 5.5rem 0 4rem; }
.esc-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 5rem; align-items: start; }
.esc-titulo { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: #fff; margin-bottom: 4rem; }
.esc { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 0; opacity: .35; transition: opacity .35s; }
.esc.activa { opacity: 1; }
.esc-q { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: #fff; margin-bottom: 1rem; }
.esc.activa .esc-q { color: #4CC3FF; }
.esc-r { font-size: 1.12rem; line-height: 1.65; color: #B7C4D6; max-width: 32em; }
.esc-movil { display: none; }
.esc-fijo { position: sticky; top: 6vh; height: 88vh; display: grid; place-items: center; }
.marco { position: relative; padding: 9px; border-radius: 38px; background: #05090f; box-shadow: 0 0 0 1px #2A3B52, 0 40px 80px -20px rgba(0, 148, 214, .35); }
.esc-fijo .marco { width: min(320px, 100%); aspect-ratio: 390 / 780; }
.esc-fijo .marco img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); border-radius: 30px; object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s; }
.esc-fijo .marco img.on { opacity: 1; }

.gran { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: var(--negro); max-width: 18em; margin-bottom: 3.5rem; text-wrap: balance; }
.gran-s { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 2.6rem; }

.ventajas { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 3rem; row-gap: 2.6rem; margin: 0; }
.ventajas dt { font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--negro); margin-bottom: .5rem; }
.ventajas dd { margin: 0; font-size: 1rem; line-height: 1.6; max-width: 22em; }

/* pasos como línea de tiempo */
#marcha .pasos { gap: 0; position: relative; }
#marcha .pasos::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: #CBD5E1; }
#marcha .pasos li { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 2rem 0 0; position: relative; }
#marcha .paso-n { width: 24px; height: 24px; font-size: .72rem; margin-bottom: 1.4rem; box-shadow: 0 0 0 6px #fff; position: relative; }

.faq { background: none; border: 0; border-top: 1px solid var(--gris-claro); border-radius: 0; box-shadow: none; margin: 0; }
.faq:last-of-type { border-bottom: 1px solid var(--gris-claro); }
.faq summary { padding: 1.3rem 0; font-size: 1.1rem; }
.faq p { padding: 0 0 1.4rem; max-width: 40em; }

@media (max-width: 900px) {
    .oscura { padding: 3.6rem 0 2rem; }
    .esc-grid { grid-template-columns: 1fr; gap: 0; }
    .esc-fijo { display: none; }
    .esc { min-height: 0; opacity: 1; padding: 2.4rem 0; border-top: 1px solid #22344B; }
    .esc.activa .esc-q { color: #fff; }
    .esc-titulo { margin-bottom: 2rem; }
    .esc-movil { display: block; margin-top: 1.6rem; }
    .esc-movil .marco { width: min(260px, 78%); }
    .esc-movil .marco img { width: 100%; border-radius: 30px; display: block; }
    .ventajas { grid-template-columns: 1fr 1fr; gap: 2rem 1.6rem; }
    #marcha .pasos { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
    #marcha .pasos::before { display: none; }
}
@media (max-width: 560px) {
    .ventajas { grid-template-columns: 1fr; }
    #marcha .pasos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .esc, .esc-fijo .marco img { transition: none; } }
