/* =========================================================
   VARIABLES GLOBALES — editar aquí para cambiar todo el sitio
   ========================================================= */
:root {
    --negro: #101010;
    --negro-seccion: #141414;
    --rojo: #b3472a;
    --rojo-hover: #93381f;
    --oro: #b78b1e;
    --oro-claro: #d9a52c;
    --azul: #394d84;
    --azul-hover: #2c3d6b;
    --blanco: #fff;
    --verde: #25d366;

    --gris-fondo: #f7f6f3;
    --gris-texto: #52504c;
    --gris-borde: #e4e2dc;

    --tinte-rojo: #f9ebe6;
    --tinte-oro: #f8f1de;
    --tinte-azul: #ecf0f8;
    --tinte-gris: #eeece7;

    --sombra: 0 18px 50px rgba(16, 16, 16, .1);
    --sombra-suave: 0 8px 24px rgba(16, 16, 16, .04);

    --fuente: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --fs-h1: clamp(28px, 4.6vw, 33px);
    --fs-h2: clamp(20px, 4vw, 36px);
    --fs-h3: 20px;
    --fs-h3-sm: 18px;
    --fs-h4: 16px;

    --fs-body-lg: 18px;
    --fs-body: 17px;
    --fs-body-sm: 15px;
    --fs-small: 14px;
    --fs-xs: 13px;
    --fs-xxs: 12px;

    --fw-regular: 400;
    --fw-bold: 700;
    --fw-black: 800;
}

/* ===== Reset y tipografía base ===== */
* { box-sizing: border-box }
html { scroll-behavior: smooth }

body {
    margin: 0;
    color: var(--negro);
    background: var(--blanco);
    font-family: var(--fuente);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased
}

button, input, select, textarea { font: inherit }
button { color: inherit }
img { display: block; max-width: 100%; height: auto }
a { color: var(--rojo); text-decoration: none }
a:hover { color: var(--rojo-hover) }
p { margin: 0 }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em }
section { scroll-margin-top: 78px }
[hidden] { display: none !important }

/* ===== Layout general ===== */
.contenedor { width: min(1200px, calc(100% - 48px)); margin-inline: auto }
.seccion { padding: 40px 0 }
.fondo-suave { background: var(--gris-fondo) }

.seccion-cabecera { display: grid; gap: 15px; margin-bottom: 44px }
.seccion-cabecera h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: var(--fw-black); text-wrap: balance }
.seccion-cabecera p { color: var(--gris-texto); font-size: var(--fs-body) }

.barra-amarilla { width: 52px; height: 5px; border-radius: 999px; background: var(--oro) }

.faq-inner { max-width: 980px }
.lp-estrecho { max-width: 900px }

.lp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px }
.lp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px }
.lp-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px }

.lp-oscura { color: var(--blanco); background: var(--negro-seccion) }
.lp-oscura .seccion-cabecera p { color: rgba(255, 255, 255, .72) }
.lp-oscura .barra-amarilla { background: var(--oro-claro) }

/* Estilos que antes estaban en línea en el HTML */
.lp-perfil-full { margin-top: 22px }
.lp-lista-cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .5rem 1rem }
.footer-email { font-size: 11px !important }

/* =========================================================
   RENDIMIENTO: las secciones bajo el primer pantallazo no se
   renderizan hasta acercarse al viewport (reduce trabajo del
   hilo principal en la carga inicial → mejor FCP/LCP/TBT).
   ========================================================= */
#perfiles, #plan-estudios, #testimonios, #docentes,
#uninorte, #modalidad, #admision, #faq, .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px
}

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-weight: var(--fw-bold);
    transition: .2s ease
}
.btn:hover { transform: translateY(-2px) }
.btn-primario { color: var(--blanco); background: var(--rojo) }
.btn-primario:hover { color: var(--blanco); background: var(--rojo-hover) }
.btn-secundario { color: var(--negro); background: var(--blanco); border-color: var(--gris-borde) }
.btn-secundario:hover { color: var(--rojo); border-color: var(--rojo) }
.btn-linea { color: var(--blanco); background: transparent; border-color: rgba(255, 255, 255, .6) }
.btn-linea:hover { color: var(--blanco); background: rgba(255, 255, 255, .14); border-color: var(--blanco) }

/* ===== Animación de entrada (solo bajo el pliegue) ===== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease
}
.reveal.visible { opacity: 1; transform: translateY(0) }
.reveal.d1 { transition-delay: .08s }
.reveal.d2 { transition-delay: .16s }
.reveal.d3 { transition-delay: .24s }

/* Seguridad: el hero nunca debe quedar oculto esperando al JS */
.lp-hero .reveal, .lp-cinta-beneficio.reveal { opacity: 1; transform: none; transition: none }

/* ===== Header ===== */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(228, 226, 220, .9);
    background: #fff
}

.header-inner {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.logo { display: flex; align-items: center; gap: 11px; color: var(--negro) }
.logo:hover { color: var(--negro) }
.logo img { width: 129px; height: 50px; object-fit: contain; object-position: left center }

.menu { position: relative; display: flex; align-items: center; gap: 22px }
.menu a { color: var(--negro); font-size: var(--fs-xs); font-weight: var(--fw-bold) }
.menu a:hover { color: var(--rojo) }
.menu a:not(.btn-nav) { position: relative }
.menu a:not(.btn-nav)::after {
    content: "";
    position: absolute;
    right: 0; bottom: -4px; left: 0;
    height: 2px;
    background: var(--rojo);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease
}
.menu a:not(.btn-nav):hover::after,
.menu a:not(.btn-nav):focus-visible::after { transform: scaleX(1); transform-origin: left }

.btn-nav {
    padding: 11px 17px;
    border: 0;
    border-radius: 8px;
    color: var(--blanco) !important;
    background: var(--rojo);
    cursor: pointer;
    font-weight: var(--fw-bold)
}
.btn-nav:hover { color: var(--blanco) !important; background: var(--rojo-hover) }

.hamburger { display: none; padding: 8px; border: 0; background: transparent; cursor: pointer }
.hamburger span { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--negro) }

/* ===== Piezas compartidas ===== */
.badge {
    display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 7px 13px;
    border: 1px solid #e6d3a2; border-radius: 999px; background: var(--tinte-oro);
    font-size: var(--fs-xs); font-weight: var(--fw-bold)
}
.badge .punto { width: 8px; height: 8px; border-radius: 50%; background: var(--rojo) }
.microcopy { padding-left: 14px; border-left: 4px solid var(--oro); color: var(--gris-texto) }
.eyebrow { color: var(--rojo); font-size: var(--fs-xxs); font-weight: var(--fw-black); letter-spacing: .08em; text-transform: uppercase }
.legal-check { display: flex; align-items: flex-start; gap: 9px; color: var(--gris-texto); font-size: var(--fs-xs) }
.legal-check input { margin-top: 4px; accent-color: var(--rojo) }
.lp-fuente { color: var(--gris-texto); font-size: var(--fs-xxs); word-break: break-word }

.play-placeholder {
    display: grid; width: 72px; height: 72px; place-items: center; padding-left: 4px;
    border-radius: 50%; color: var(--blanco); background: var(--rojo);
    font-family: Arial, sans-serif; font-size: 25px
}

/* ===== Formulario (widget inyectado) ===== */
#formulario { text-align: left; min-height: 380px }
.ic-default-7.ic-class-form-row.col-12.mt-4.mb-2 { text-align: center !important }
#submit-btn { background-color: var(--rojo) !important; border-color: var(--rojo) !important; color: var(--blanco) !important }
#plantilla-formulario label { margin-bottom: 0 !important }
label.ic-default-7.ic-class-form-label.label-tag.dhx-label.mb-1 { font-size: var(--fs-small) }

form .form-control {
    display: block; width: 100%; height: 34px; padding: 6px 12px;
    border: 1px solid #ccc; border-radius: 4px; color: #555;
    background-color: #fff; background-image: none;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    font-size: var(--fs-small); line-height: 1.42857143;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s
}

input#terms-check, input#optin-check { margin-right: 5px; accent-color: var(--rojo) }
label.ic-default-7.ic-class-form-check-label-legal.form-check-label.dhx-terms,
label.ic-default-7.ic-class-form-check-label.form-check-label.dhx-terms { font-size: var(--fs-xxs) }

/* ===== Tarjeta genérica e iconos ===== */
.lp-card {
    position: relative; display: grid; gap: 12px; align-content: start; padding: 28px;
    border: 1px solid var(--gris-borde); border-radius: 16px;
    background: var(--blanco); box-shadow: var(--sombra-suave);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}
.lp-card:hover {
    transform: translateY(-4px); border-color: var(--oro);
    box-shadow: 0 18px 44px rgba(183, 139, 30, .24), 0 4px 14px rgba(16, 16, 16, .06)
}
.lp-card h3 { color: var(--negro); font-size: var(--fs-h3); line-height: 1.15 }
.lp-card p { color: var(--gris-texto); font-size: var(--fs-small) }
.lp-card-gris { background: var(--gris-fondo) }
.lp-numero { display: block; color: var(--rojo); font-size: var(--fs-body-sm); font-weight: var(--fw-black) }

.lp-icono {
    display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center;
    border-radius: 14px; color: var(--rojo); background: var(--tinte-rojo)
}
.lp-icono svg { width: 26px; height: 26px }
.lp-icono.oro, .lp-icono.amarillo { color: #8f6c13; background: var(--tinte-oro) }
.lp-icono.azul { color: var(--azul); background: var(--tinte-azul) }
.lp-icono.gris { color: var(--gris-texto); background: var(--tinte-gris) }

/* ===== Hero ===== */
.lp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--gris-borde);
    background:
        radial-gradient(900px 540px at 85% -15%, rgba(179, 71, 42, .14), transparent 62%),
        radial-gradient(760px 480px at -8% 110%, rgba(183, 139, 30, .16), transparent 62%),
        radial-gradient(620px 420px at 110% 95%, rgba(57, 77, 132, .12), transparent 66%),
        linear-gradient(180deg, #fff 0%, #fdfbf9 60%, var(--gris-fondo) 100%)
}

/* Antes: filter: blur(70px) → pintado muy costoso en móvil.
   Ahora: mismo halo con un degradado más amplio, sin filtro. */
.lp-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -260px;
    right: -220px;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(179, 71, 42, .22) 0%, rgba(179, 71, 42, .08) 40%, rgba(179, 71, 42, 0) 70%);
    pointer-events: none
}

.lp-hero::after {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 16, 16, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 16, 16, .05) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 100%);
    mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 100%);
    pointer-events: none
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, .95fr);
    align-items: center;
    gap: 64px;
    padding: 20px 0 56px
}

.lp-hero-texto { display: grid; gap: 22px }
.lp-hero h1 { font-size: var(--fs-h1); line-height: 1.04; font-weight: 800; text-wrap: balance }
.lp-hero h1 span { display: block; color: var(--rojo) }
.lp-hero .sub { max-width: 560px; color: var(--gris-texto); font-size: var(--fs-body-lg) }

.lp-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.lp-pill-full { grid-column: 1 / -1 }
.lp-pill {
    display: flex; align-items: center; gap: 11px; padding: 12px 16px;
    border: 1px solid var(--gris-borde); border-radius: 12px;
    background: var(--blanco); box-shadow: var(--sombra-suave)
}
.lp-pill svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--rojo) }
.lp-pill p { color: var(--gris-texto); font-size: var(--fs-small) }
.lp-pill strong { display: block; color: var(--negro); font-size: var(--fs-small); font-weight: var(--fw-black) }

/* ===== Cinta de beneficio ===== */
.lp-cinta-beneficio { background: var(--negro) }
.lp-cinta-beneficio-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 18px; padding: 22px 0
}
.lp-cinta-beneficio p { color: var(--blanco); font-size: var(--fs-body-sm); text-align: center }
.lp-cinta-beneficio strong { color: var(--oro-claro) }
.lp-cinta-beneficio .btn { min-height: 40px; padding: 9px 18px }

/* ===== Tarjeta de formulario ===== */
.lp-form-wrap { position: relative }
.lp-form-card {
    position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; align-content: start;
    min-height: 520px;
    border: 1px solid var(--gris-borde); border-radius: 22px; background: var(--blanco);
    box-shadow: 0 34px 80px rgba(179, 71, 42, .16), 0 6px 18px rgba(16, 16, 16, .06)
}
.lp-form-body {
    display: grid; align-content: start; justify-items: stretch; gap: 6px;
    padding: 36px 32px; text-align: center
}
.lp-form-body h3, .lp-form-titulo { font-size: 26px; line-height: 1.2; font-weight: var(--fw-black); letter-spacing: -.025em }
.lp-form-body>p { margin-bottom: 16px; color: var(--gris-texto); font-size: var(--fs-small) }

.lp-form { display: grid; gap: 13px }
.lp-form input[type=text], .lp-form input[type=email], .lp-form input[type=tel] {
    width: 100%; min-height: 48px; padding: 11px 13px;
    border: 1px solid #ccc; border-radius: 8px; color: var(--negro); background: var(--blanco)
}
.lp-form input[type=text]:focus, .lp-form input[type=email]:focus, .lp-form input[type=tel]:focus {
    outline: 3px solid rgba(179, 71, 42, .16); border-color: var(--rojo)
}
.lp-form input::placeholder { color: #8a8a8a }
.lp-form .legal-check { font-size: var(--fs-xxs) }

/* ===== Adornos de esquina ===== */
.deco-amarilla, .deco-roja { position: absolute; z-index: 0; pointer-events: none }
.deco-amarilla { bottom: -16px; left: -16px; width: 120px; height: 120px; border-radius: 16px; background: var(--oro) }
.deco-roja { top: -16px; right: -16px; width: 74px; height: 74px; border: 4px solid var(--rojo); border-radius: 14px }

/* ===== Tarjetas Uninorte ===== */
.lp-uninorte-card {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--gris-borde); border-radius: 16px;
    background: var(--blanco); box-shadow: var(--sombra-suave);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}
.lp-uninorte-card:hover {
    transform: translateY(-4px); border-color: var(--oro);
    box-shadow: 0 18px 44px rgba(183, 139, 30, .24), 0 4px 14px rgba(16, 16, 16, .06)
}
.lp-uninorte-media {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; border-bottom: 1px solid var(--gris-borde);
    background: var(--blanco); min-height: 180px
}
.lp-uninorte-media img { max-height: 80px; width: auto }
.lp-uninorte-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 28px; text-align: left }
.lp-uninorte-body h3 { font-size: var(--fs-h3-sm); line-height: 1.2; font-weight: var(--fw-black) }
.lp-uninorte-body p { color: var(--gris-texto); font-size: var(--fs-small) }
.lp-uninorte-body .lp-fuente { margin-top: auto }
.lp-uninorte-body .lp-fuente a {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--rojo); font-weight: var(--fw-black); transition: color .2s ease
}
.lp-uninorte-body .lp-fuente a:hover { color: var(--rojo-hover) }

/* ===== Acordeón del plan de estudios ===== */
.lp-acc {
    overflow: hidden; border: 1px solid var(--gris-borde); border-radius: 14px;
    background: var(--blanco); box-shadow: var(--sombra-suave)
}
.lp-acc:hover {
    border-color: var(--oro);
    box-shadow: 0 18px 44px rgba(183, 139, 30, .24), 0 4px 14px rgba(16, 16, 16, .06)
}
.lp-acc+.lp-acc { margin-top: 14px }
.lp-acc>summary {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 20px 26px; cursor: pointer; list-style: none;
    font-size: var(--fs-h3); font-weight: var(--fw-black)
}
.lp-acc>summary::-webkit-details-marker { display: none }
.lp-acc>summary:hover { color: var(--rojo) }
.lp-acc-mas {
    flex: 0 0 auto; color: var(--rojo); font-size: 28px; line-height: 1;
    font-weight: var(--fw-regular); transition: transform .2s ease
}
.lp-acc[open] .lp-acc-mas { transform: rotate(45deg) }
.lp-acc-cuerpo { padding: 20px 26px 24px; border-top: 1px solid var(--gris-borde) }

.lp-asignaturas { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none }
.lp-asignaturas li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: 1.45 }
.lp-asignaturas li::before {
    content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 9px;
    border-radius: 50%; background: var(--rojo)
}

.lp-total-creditos { margin-top: 30px; color: var(--negro); font-size: var(--fs-h3); text-align: center }
.lp-total-creditos strong { color: var(--rojo); font-weight: var(--fw-black); font-size: var(--fs-h3) }

/* ===== Perfiles ===== */
.lp-perfil {
    display: grid; align-content: start; gap: 20px; padding: 34px 32px;
    border: 1px solid var(--gris-borde); border-radius: 16px;
    background: var(--blanco); box-shadow: var(--sombra-suave)
}
.lp-perfil-titulo { display: flex; align-items: center; gap: 14px }
.lp-perfil-titulo h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: var(--fw-black) }
.lp-perfil p { color: var(--gris-texto); font-size: var(--fs-body-sm) }
.lp-perfil h4 { color: var(--rojo); font-size: var(--fs-xxs); font-weight: var(--fw-black); letter-spacing: .08em; text-transform: uppercase }

.lp-lista { display: grid; margin: 0; padding: 0; list-style: none }
.lp-lista li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-body-sm) }
.lp-lista li::before {
    content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 9px;
    border-radius: 50%; background: var(--rojo)
}

/* ===== Testimonios en video (shorts) ===== */
.testimonios { background: var(--gris-fondo) }
.lp-shorts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px }
.lp-short {
    display: block; overflow: hidden; border: 1px solid var(--gris-borde); border-radius: 16px;
    background: var(--blanco); box-shadow: var(--sombra-suave);
    transition: transform .2s ease, box-shadow .2s ease
}
.lp-short:hover { transform: translateY(-4px); box-shadow: var(--sombra) }
.lp-short-media { position: relative; aspect-ratio: 7/8; background: var(--negro-seccion) }
.lp-short-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.lp-short-badge {
    position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px;
    color: var(--blanco); background: rgba(16, 16, 16, .55);
    font-size: var(--fs-xxs); font-weight: var(--fw-bold)
}
.lp-short-play {
    position: absolute; top: 50%; left: 50%; display: grid; width: 56px; height: 56px;
    place-items: center; padding-left: 3px; border-radius: 50%;
    color: var(--blanco); background: var(--rojo); font-size: 18px;
    transform: translate(-50%, -50%)
}
.lp-short-pie { display: flex; align-items: center; gap: 12px; padding: 14px 16px }
.lp-short-avatar {
    width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%;
    object-fit: cover; background: var(--tinte-gris)
}
.lp-short-pie strong { display: block; color: var(--negro); font-size: var(--fs-xs) }
.lp-short-pie small { color: var(--gris-texto); font-size: var(--fs-xxs) }

/* ===== Carrusel genérico y Docentes ===== */
.lp-carrusel { --por-vista: 3; --hueco: 22px; --alto-controles: 74px; position: relative }
.lp-car-viewport { overflow: hidden; padding: 6px 4px 10px; margin: -6px -4px -10px }
.lp-car-track {
    display: flex; align-items: stretch; gap: var(--hueco);
    transition: transform .5s cubic-bezier(.22, .61, .36, 1)
}
.lp-car-item {
    flex: 0 0 calc((100% - (var(--por-vista) - 1) * var(--hueco)) / var(--por-vista));
    min-width: 0; display: flex; height: auto
}
.lp-docente {
    display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; flex: 1;
    width: 100%; padding: 26px 24px;
    border: 1px solid var(--gris-borde); border-radius: 16px;
    background: var(--blanco); box-shadow: var(--sombra-suave);
    transition: transform .2s ease, box-shadow .2s ease
}
.lp-docente:hover { transform: translateY(-4px); box-shadow: var(--sombra) }
.lp-docente h3 { font-size: var(--fs-h3-sm); line-height: 1.2; font-weight: var(--fw-black) }
.lp-docente p { color: var(--gris-texto); font-size: var(--fs-small) }

.lp-car-controles { display: flex; align-items: center; justify-content: center; gap: 18px; height: var(--alto-controles) }
.lp-car-flecha {
    display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; padding: 0;
    border: 1px solid var(--gris-borde); border-radius: 50%;
    color: var(--negro); background: var(--blanco); box-shadow: var(--sombra-suave); cursor: pointer;
    transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease
}
.lp-car-flecha svg { width: 20px; height: 20px }
.lp-car-flecha:hover { color: var(--rojo); border-color: var(--rojo); transform: scale(1.06); box-shadow: var(--sombra) }
.lp-car-flecha:focus-visible { outline: 3px solid rgba(179, 71, 42, .24); outline-offset: 2px }

.lp-car-puntos { display: flex; align-items: center; justify-content: center; gap: 9px }
.lp-car-punto {
    width: 11px; height: 11px; padding: 0; border: 0; border-radius: 999px;
    background: #c8c5be; cursor: pointer;
    transition: width .3s cubic-bezier(.22, .61, .36, 1), background .25s ease
}
.lp-car-punto:hover { background: #a8a59d }
.lp-car-punto[aria-current="true"] { width: 34px; background: var(--rojo) }
.lp-car-punto:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px }

/* ===== Banda CTA ===== */
.lp-cta { color: var(--blanco); background: var(--rojo-hover) }
.lp-cta .barra-amarilla { background: var(--oro-claro) }
.lp-cta-inner {
    display: grid; justify-items: center; gap: 16px; max-width: 820px;
    margin-inline: auto; text-align: center
}
.lp-cta h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: var(--fw-black); text-wrap: balance }
.lp-cta p { max-width: 620px; color: var(--blanco); font-size: var(--fs-body) }
.lp-cta-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px }
.lp-cta .btn { color: var(--rojo-hover); background: var(--blanco); border-color: var(--blanco) }
.lp-cta .btn:hover { color: var(--rojo-hover); background: var(--blanco) }
.lp-cta .btn-linea { color: var(--blanco); background: transparent; border-color: var(--blanco) }
.lp-cta .btn-linea:hover { color: var(--blanco); background: rgba(255, 255, 255, .14); border-color: var(--blanco) }

/* ===== FAQ ===== */
.lp-faq-lista { border-top: 1px solid var(--gris-borde) }
.lp-faq { border-bottom: 1px solid var(--gris-borde) }
.lp-faq>summary {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px 0; cursor: pointer; list-style: none; text-align: left;
    font-size: var(--fs-h3); font-weight: var(--fw-black)
}
.lp-faq>summary::-webkit-details-marker { display: none }
.lp-faq>summary:hover { color: var(--rojo) }
.lp-faq-icono { flex: 0 0 auto; color: var(--rojo); font-size: 28px; line-height: 1; transition: transform .2s ease }
.lp-faq[open] .lp-faq-icono { transform: rotate(45deg) }
.lp-faq-respuesta { padding: 0 44px 22px 0; color: var(--gris-texto) }

/* ===== Footer ===== */
.site-footer { color: var(--blanco); background: var(--negro) }
.site-footer::before {
    content: ""; display: block; height: 4px;
    background: linear-gradient(90deg, var(--rojo) 0%, #b3542a 34%, var(--oro) 72%, var(--oro-claro) 100%)
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.05fr 1.3fr; gap: 40px; padding: 58px 0 36px }
.footer-marca { display: grid; gap: 20px; align-content: start; max-width: 340px }
.footer-marca img { width: 200px }
.footer-marca p { color: rgba(255, 255, 255, .64); font-size: var(--fs-body-sm) }
.footer-sello {
    display: inline-flex; width: fit-content; align-items: center; padding: 11px 19px;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
    color: rgba(255, 255, 255, .82); font-size: var(--fs-xxs); font-weight: var(--fw-bold)
}
.footer-col h3 { color: var(--blanco); font-size: 19px; font-weight: var(--fw-black) }
.footer-col h3::after {
    content: ""; display: block; width: 38px; height: 3px; margin-top: 11px;
    border-radius: 999px; background: var(--oro-claro)
}
.footer-links { display: grid; gap: 15px; margin: 24px 0 0; padding: 0; list-style: none }
.footer-links a { color: rgba(255, 255, 255, .72); font-size: var(--fs-body-sm); transition: color .2s ease }
.footer-links a:hover { color: var(--oro-claro) }
.footer-contactos { display: grid; gap: 18px; margin-top: 24px }
.footer-contacto { display: flex; align-items: center; gap: 14px }
.footer-contacto-icono {
    display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
    color: var(--oro-claro); background: rgba(255, 255, 255, .05)
}
.footer-contacto-icono svg { width: 21px; height: 21px }
.footer-contacto small {
    display: block; margin-bottom: 2px; color: rgba(255, 255, 255, .5);
    font-size: var(--fs-xxs); font-weight: var(--fw-black); letter-spacing: .08em; text-transform: uppercase
}
.footer-contacto a, .footer-contacto span { color: rgba(255, 255, 255, .86); font-size: var(--fs-small); word-break: break-word }
.footer-contacto a:hover { color: var(--oro-claro) }
.footer-legal {
    display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 34px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .46); font-size: var(--fs-xs)
}

/* ===== WhatsApp flotante ===== */
.whatsapp-flotante {
    position: fixed; z-index: 200; right: 22px; bottom: 22px;
    display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%;
    color: var(--blanco); background: var(--verde); box-shadow: 0 8px 24px rgba(0, 0, 0, .24)
}
.whatsapp-flotante:hover { color: var(--blanco); transform: translateY(-2px) }
.whatsapp-flotante svg { width: 32px; height: 32px; fill: currentColor }

/* =========================================================
   MEDIA QUERIES
   ========================================================= */
@media(min-width:1041px) {
    .lp-carrusel { --alto-controles: 46px }
    .lp-car-flecha {
        position: absolute; top: calc((100% - var(--alto-controles)) / 2);
        width: 52px; height: 52px; transform: translateY(-50%)
    }
    .lp-car-flecha:hover { transform: translateY(-50%) scale(1.06) }
    .lp-car-flecha[data-dir="-1"] { left: -26px }
    .lp-car-flecha[data-dir="1"] { right: -26px }
    .lp-car-controles { justify-content: center; margin-top: 12px }

    /* El efecto translúcido del header solo en escritorio */
    .site-header { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px) }
}

@media(max-width:1040px) {
    .hamburger { display: block }
    .menu {
        position: absolute; top: 100%; right: 0; left: 0; display: none;
        align-items: stretch; flex-direction: column; gap: 0; padding: 12px 16px 18px;
        border-bottom: 1px solid var(--gris-borde); background: var(--blanco)
    }
    .menu.abierto { display: flex }
    .menu a { display: block; padding: 12px 5px; font-size: var(--fs-body-sm) }
    .menu a:not(.btn-nav)::after { display: none }
    .btn-nav { margin-top: 8px; text-align: center }

    .lp-hero-grid { grid-template-columns: 1fr; gap: 44px }
    .lp-grid-3, .lp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .lp-shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px }
}

@media(max-width:760px) {
    .contenedor { width: min(100% - 32px, 1200px) }
    .seccion { padding: 66px 0 }
    .header-inner { min-height: 66px }

    .lp-grid-2, .lp-grid-3, .lp-grid-4 { grid-template-columns: 1fr }
    .lp-shorts-grid { grid-template-columns: 1fr }

    /* Hero móvil más ligero: sin cuadrícula enmascarada ni halo grande */
    .lp-hero::after { display: none }
    .lp-hero::before { width: 420px; height: 420px; top: -160px; right: -160px }

    .lp-hero-grid { padding: 32px 0 40px }
    .lp-hero h1 { font-size: clamp(34px, 10vw, 46px) }

    .lp-cinta-beneficio-inner { flex-direction: column; text-align: center }
    .lp-form-card { min-height: 0; grid-template-columns: 1fr }
    .lp-form-card, .lp-card, .lp-pill { box-shadow: 0 6px 18px rgba(16, 16, 16, .05) }

    .deco-amarilla { bottom: -12px; left: -12px; width: 88px; height: 88px }
    .deco-roja { top: -12px; right: -12px; width: 56px; height: 56px; border-width: 3px }

    .lp-perfil { padding: 28px 24px }
    .lp-acc>summary { padding: 18px 20px; font-size: var(--fs-body-sm) }
    .lp-acc-cuerpo { padding: 18px 20px 22px }

    .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 30px }
    .footer-marca { max-width: none }
    .footer-legal { flex-direction: column; gap: 8px; padding-bottom: 96px }
}

@media(max-width:520px) {
    .lp-pills { grid-template-columns: 1fr }
    .lp-pill { width: 100% }
    .lp-cta .btn, .lp-cta-botones, .lp-hero .btn { width: 100% }
    .lp-cinta-beneficio .btn { width: 100% }
    .lp-faq>summary { font-size: var(--fs-body-sm) }
}

@media(prefers-reduced-motion:reduce) {
    html { scroll-behavior: auto }
    .reveal { opacity: 1; transform: none; transition: none }
    * { transition-duration: .01ms !important }
}
/* ===== Formulario compacto: el botón Enviar se ve sin scroll en pantallas de laptop (igual en las 3 LP) ===== */
.lp-hero-grid { padding: 12px 0 36px; gap: 48px }
.lp-form-card { min-height: 0; border-radius: 18px }
.lp-form-body { gap: 4px; padding: 22px 26px 20px }
.lp-form-body h3, .lp-form-titulo { font-size: 22px }
.lp-form-body>p { margin-bottom: 8px; font-size: var(--fs-xs) }
#formulario { min-height: 0 }
#formulario .mt-2, #formulario .mt-3, #formulario .mt-4 { margin-top: 6px !important }
#formulario .mb-2, #formulario .mb-3 { margin-bottom: 4px !important }
#formulario .ic-class-form-row { margin-bottom: 4px }
label.ic-default-7.ic-class-form-label.label-tag.dhx-label.mb-1 { margin-bottom: 1px !important; font-size: var(--fs-xs) }
form .form-control { height: 30px; padding: 4px 10px; font-size: var(--fs-xs) }
label.ic-default-7.ic-class-form-check-label-legal.form-check-label.dhx-terms,
label.ic-default-7.ic-class-form-check-label.form-check-label.dhx-terms { font-size: 11px; line-height: 1.3 }
#submit-btn { padding: 8px 28px !important }
@media (max-height: 820px) and (min-width: 1041px) {
    .lp-form-body { padding: 18px 24px 16px }
    .lp-form-body h3, .lp-form-titulo { font-size: 20px }
    form .form-control { height: 28px }
    label.ic-default-7.ic-class-form-check-label-legal.form-check-label.dhx-terms,
    label.ic-default-7.ic-class-form-check-label.form-check-label.dhx-terms { font-size: 10.5px; line-height: 1.25 }
}
.tituloFooter{
    font-weight: bold;
}