/* =====================================================================
   Universidad La Salle · página de programa
   Capa de diseño 2026: encabezado, formulario de registro, sistema
   tipográfico y correcciones. Se carga DESPUÉS de style.css y main.css
   (estilos históricos de las secciones), a los que complementa.
===================================================================== */

:root {
    --ls-azul: #001d68;
    --ls-azul-oscuro: #001447;
    --ls-rojo: #d21034;
    --ls-rojo-oscuro: #b00d2b;
    --ls-tinta: #1a2440;
    --ls-gris: #5b6678;
    --ls-linea: #dde4e6;
    --ls-titulo: "indivisa_text_sansregular", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --ls-texto: "indivisa_text_sansregular", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------------------------------------------------------------------
   ENCABEZADO: nombre del programa a la izquierda, formulario a la derecha
--------------------------------------------------------------------- */
/* Fondo de papel de la campaña (textura_header.jpg): collage fotográfico y esquina de papel rasgado.
   El degradado solo oscurece el lado del texto para que se lea; a la derecha la textura queda a la vista. */
.ls-hero { position: relative; color: #fff; font-family: var(--ls-texto);
    background: linear-gradient(100deg, rgba(0, 24, 92, .0) 0%, rgba(0, 29, 104, .0) 50%, rgba(0, 29, 104, .0) 100%), url("../img/site/textura_header.jpg") right top / cover no-repeat var(--ls-azul); }
.ls-hero--prepa { background: linear-gradient(100deg, rgba(0, 24, 92, .88) 0%, rgba(0, 29, 104, .62) 50%, rgba(0, 29, 104, .12) 100%), url("../img/site/bg_header_prepa.jpg") right top / cover no-repeat var(--ls-azul); }
@media (max-width: 899px) {
    .ls-hero { background: linear-gradient(180deg, rgba(0, 24, 92, .0) 0%, rgba(0, 24, 92, .0) 30%, rgba(0, 20, 71, .0) 100%), url("../img/site/textura_header.jpg") right top / cover no-repeat var(--ls-azul); }
    .ls-hero--prepa { background: linear-gradient(180deg, rgba(0, 24, 92, .50) 0%, rgba(0, 24, 92, .84) 30%, rgba(0, 20, 71, .92) 100%), url("../img/site/bg_header_prepa.jpg") right top / cover no-repeat var(--ls-azul); }
}
.ls-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ls-rojo); }
.ls-hero-inner { max-width: 1180px; margin: 0 auto; padding: 22px 24px clamp(40px, 6vw, 72px); }
.ls-hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ls-hero-bar img { display: block; width: clamp(132px, 14vw, 172px); height: auto; }
.ls-hero-logo { display: block; line-height: 0; }
.ls-hero-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 10px 14px 10px 16px; border-radius: 16px; background: rgba(0, 20, 71, 0); }
/* Enlace de solo texto bajo «Conoce La Salle» → Oferta educativa */
/* Botón secundario bajo «Conoce La Salle» → Oferta educativa */
a.ls-hero-textlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background-color:rgba(0, 20, 71, 1); 
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
}
a.ls-hero-textlink:hover,
a.ls-hero-textlink:focus-visible {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
    text-decoration: none;
}
a.ls-hero-textlink i { display: none }
@media (max-width: 420px) { a.ls-hero-textlink {  text-align: center; width: auto;  font-size: 10px; } .ls-hero-links { padding: 8px 10px; } }
.ls-hero-link { padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; color: #fff; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background-color .16s ease, border-color .16s ease; background: var(--ls-rojo);  }
.ls-hero-link:hover, .ls-hero-link:focus-visible { background: var(--ls-rojo-oscuro);  border-color: #fff; color: #fff; text-decoration: none; }

/* Móvil: nombre y datos → formulario → «Otros programas» (el formulario queda lo más arriba posible).
   Escritorio: texto y selector a la izquierda, formulario a la derecha. */
.ls-hero-grid { display: grid; gap: 18px; align-items: center; margin-top: 18px; grid-template-areas: "copy" "form" "switch"; }
.ls-hero-copy { grid-area: copy; min-width: 0; }
.ls-hero-form { grid-area: form; }
.ls-hero-switch { grid-area: switch; }
@media (min-width: 900px) {
    .ls-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); grid-template-areas: "copy form" "switch form"; grid-template-rows: 1fr 1fr; column-gap: clamp(28px, 5vw, 64px); row-gap: clamp(20px, 2.6vw, 32px); margin-top: clamp(28px, 5vw, 60px); }
    .ls-hero-copy { align-self: end; }
    .ls-hero-switch { align-self: start; }
}
@media (max-width: 899px) {
    .ls-hero-inner { padding-top: 16px; }
    .ls-hero-faculty { margin-bottom: 8px; }
    .ls-hero-title { font-size: clamp(27px, 7.4vw, 40px); }
}

.ls-hero-faculty { margin: 0 0 14px; padding: 0 0 0 14px; border-left: 3px solid var(--ls-rojo); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.3; color: rgba(255, 255, 255, .86); }
.ls-hero-title { margin: 0; font-family: var(--ls-titulo); font-weight: 900; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.015em; color: #fff; text-wrap: balance; }

/* Datos clave del programa: fichas compactas en una sola franja (antes ocupaban varias filas y empujaban el formulario) */
.ls-hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(16px, 2.4vw, 26px) 0 0; padding: 0; }
.ls-hero-facts div { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; padding: 7px 13px; border-radius: 10px; background: rgba(0, 20, 71, .62); border: 1px solid rgba(255, 255, 255, .16); }
.ls-hero-facts dt { font-weight: 400; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.ls-hero-facts dt::after { content: ":"; }
.ls-hero-facts dd { margin: 0; padding: 0; font-size: 14.5px; line-height: 1.25; color: #fff; }
.ls-hero-facts dd::before, .ls-hero-facts dt::before { content: none; }
@media (max-width: 899px) {
    .ls-hero-facts { gap: 6px; margin-top: 14px; }
    .ls-hero-facts div { padding: 6px 9px; gap: 2px 5px; }
    .ls-hero-facts dt { font-size: 12px; }
    .ls-hero-facts dd { font-size: 13.5px; }
}

.ls-hero-switch { margin-top: 0; max-width: 440px; }
.ls-hero-switch label { display: block; margin: 0 0 6px; font-size: 13px; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .7); }
.ls-select { display: block; width: 100%; height: 46px; padding: 0 40px 0 14px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 6px; color: #fff; font: inherit; font-size: 15px; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m3 6 5 5 5-5'/%3E%3C/svg%3E") right 14px center / 14px no-repeat; }
.ls-select:hover { border-color: #fff; }
.ls-select option { color: var(--ls-tinta); background: #fff; }

/* ---------- Tarjeta del formulario ---------- */
.ls-hero-form { background: #fff; color: var(--ls-tinta); border-radius: 14px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 24px 60px rgba(0, 10, 40, .35); scroll-margin-top: 16px; }
.ls-hero-form h2 { margin: 0; font-family: var(--ls-titulo); font-weight: 900; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.15; color: var(--ls-azul); }
.ls-hero-form-lead { margin: 6px 0 18px; font-size: 15px; line-height: 1.4; color: var(--ls-gris); }

.ls-lead-form { text-align: left; }
.ls-lead-form .form-group { margin: 0 0 14px; }
.ls-lead-form label { display: block; margin: 0 0 5px; font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ls-tinta); }
.ls-lead-row { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .ls-lead-row { grid-template-columns: 1fr 1fr; } }
.ls-lead-form select { -webkit-appearance: none; appearance: none; padding-right: 38px !important; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23001d68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m3 6 5 5 5-5'/%3E%3C/svg%3E") right 14px center / 14px no-repeat !important; }
.ls-lead-form input[type="text"], .ls-lead-form input[type="email"], .ls-lead-form input[type="tel"], .ls-lead-form select {
    display: block; width: 100% !important; max-width: none; height: 46px; margin: 0; padding: 0 14px; border: 1px solid #c3ccd8; border-radius: 6px; background: #fff; color: var(--ls-tinta); font: inherit; font-size: 16px; box-shadow: none; transition: border-color .16s ease, box-shadow .16s ease; }
.ls-lead-form input:focus { outline: none; border-color: var(--ls-azul); box-shadow: 0 0 0 3px rgba(0, 29, 104, .16); }
.ls-lead-form input.is-invalid { border-color: var(--ls-rojo); box-shadow: 0 0 0 3px rgba(210, 16, 52, .12); }
.ls-lead-error { display: block; margin-top: 4px; font-size: 13px; color: var(--ls-rojo-oscuro); }
.ls-lead-error:empty { display: none; }
.ls-lead-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ls-lead-privacy { margin: 2px 0 14px; padding: 0; background: none; font-style: normal; font-size: 12.5px; line-height: 1.45; color: var(--ls-gris); }
.ls-lead-privacy a { color: var(--ls-azul); text-decoration: underline; }
.ls-lead-form .btnForm { display: block; width: 100%; height: 50px; margin: 0; padding: 0 16px; line-height: 50px; text-transform: none; letter-spacing: 0; border: 0; border-radius: 6px; background: var(--ls-rojo); color: #fff; font: inherit; font-size: 17px; cursor: pointer; transition: background-color .16s ease; }
.ls-lead-form .btnForm:hover { background: var(--ls-rojo-oscuro); }
.ls-lead-form .btnForm:focus-visible { outline: 3px solid rgba(0, 29, 104, .45); outline-offset: 2px; }
.ls-lead-form .btnForm:disabled { opacity: .7; cursor: progress; }
.ls-lead-status { margin-top: 10px; font-size: 14px; text-align: center; color: var(--ls-gris); }
.ls-lead-status:empty { display: none; }
.ls-lead-status.is-error { color: var(--ls-rojo-oscuro); }
.ls-lead-success { padding: 26px 8px 14px; text-align: center; color: var(--ls-tinta); }
.ls-lead-success i { display: block; margin-bottom: 10px; font-size: 40px; color: #17794a; }
.ls-lead-success strong { display: block; font-family: var(--ls-titulo); font-weight: 900; font-size: 21px; color: var(--ls-azul); }
.ls-lead-success span { display: block; margin-top: 4px; color: var(--ls-gris); }
.ls-lead-success:focus { outline: none; }

/* ---------------------------------------------------------------------
   CUERPO: un solo sistema tipográfico
--------------------------------------------------------------------- */
/* El nombre del programa ya es el título principal del encabezado */
#programaContenido .ls-intro-heading { display: none; }
#programaContenido .ls-intro-section { padding-top: clamp(28px, 4vw, 52px); }

#programaContenido .section-title { font-family: var(--ls-titulo); font-weight: 900; letter-spacing: -.01em; color: var(--ls-azul); }
#programaContenido > section > .container > .section-title,
#programaContenido .text-center > .section-title,
#programaContenido .section-title.center { font-size: clamp(27px, 3vw, 36px); line-height: 1.12; }

/* Encabezados de acordeones: usaban Lato/Arial en mayúsculas (tipografía que el sitio no carga) */
#programaContenido .accordion-button,
#programaContenido .costo-header-text strong,
#programaContenido .costo-header-text small,
#programaContenido .admisiones-card-title h3,
#programaContenido .admisiones-label { font-family: var(--ls-texto); letter-spacing: 0; }
#programaContenido .costo-header-text strong,
#programaContenido .admisiones-card-title h3,
#programaContenido #top5Accordion .accordion-button { text-transform: none; font-size: 18px; }
#programaContenido .costo-header-text small { text-transform: none; font-size: 13px; }

/* ---------- Botón flotante de WhatsApp ----------
   main.css (histórico) fijaba html y body a height:100% + position:relative. En varios navegadores móviles
   (Safari de iOS, navegadores dentro de Instagram/Facebook) eso hace que los elementos «fixed» se anclen al
   alto inicial de la página y queden fuera de la pantalla al hacer scroll. Se libera la altura y el botón
   se ancla con !important al borde visible, respetando la zona segura del teléfono. */
html, body { height: auto !important; min-height: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
.ls-whatsapp { position: fixed !important; z-index: 1045; top: auto !important; left: auto !important;
    right: calc(18px + env(safe-area-inset-right, 0px)) !important; bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    width: 58px; height: 58px; margin: 0 !important; border-radius: 50%;
    display: flex !important; align-items: center; justify-content: center; background: #25d366; color: #fff !important;
    font-size: 32px; text-decoration: none !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); transition: box-shadow .2s ease, transform .2s ease, bottom .2s ease !important; }
.ls-whatsapp:hover, .ls-whatsapp:focus-visible { box-shadow: 0 0 0 6px rgba(37, 211, 102, .3); transform: translateY(-2px); }

/* ---------- Página 404 ---------- */
.ls-404-head { background: var(--ls-azul); padding: 20px 24px; border-bottom: 5px solid var(--ls-rojo); }
.ls-404 a { color: var(--ls-azul); }
.ls-404 li { padding: 3px 0; }

/* ---------- Correcciones ---------- */
/* Una fila de "Descubre" rebasaba 12 px el ancho en móvil (scroll horizontal) */
#programaContenido > section { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
    .ls-whatsapp, .ls-hero-link, .ls-lead-form input, .ls-lead-form .btnForm { transition: none; }
    .ls-whatsapp:hover { transform: none; }
}

/* ---------------------------------------------------------------------
   VERSIÓN 2026.11
--------------------------------------------------------------------- */
/* Enlace para saltar al contenido (teclado y lectores de pantalla) */
.ls-skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; padding: 10px 16px; border-radius: 6px; background: #fff; color: var(--ls-azul) !important; }
.ls-skip:focus { left: 8px; }

/* Preguntas frecuentes: al abrir, la barra se pinta de azul y el título debe pasar a blanco.
   (Una regla general de títulos lo dejaba azul sobre azul: «desaparecía» al dar clic.) */
#programaContenido .faq-section-toggle .section-title { transition: color .2s ease; }
#programaContenido .faq-section-toggle[aria-expanded="true"] .section-title,
#programaContenido .faq-section-toggle[aria-expanded="true"]:hover .section-title { color: #fff; }
#programaContenido .faq-section-toggle[aria-expanded="true"]:hover { background: var(--ls-azul-oscuro); border-color: var(--ls-azul-oscuro); transform: none; }
/* Cada pregunta: abierta = azul con texto blanco TAMBIÉN con el cursor encima o con foco.
   (Con el cursor encima el fondo quedaba transparente y el texto blanco: la pregunta «desaparecía» al dar clic.) */
#programaContenido #faqAccordion .accordion-button:not(.collapsed),
#programaContenido #faqAccordion .accordion-button:not(.collapsed):hover,
#programaContenido #faqAccordion .accordion-button:not(.collapsed):focus,
#programaContenido #faqAccordion .accordion-button:not(.collapsed):active { color: #fff !important; background: var(--ls-azul) !important; }
#programaContenido #faqAccordion .accordion-button:not(.collapsed):hover { background: var(--ls-azul-oscuro) !important; }
#programaContenido #faqAccordion .accordion-button.collapsed:hover,
#programaContenido #faqAccordion .accordion-button.collapsed:focus { color: var(--ls-azul) !important; background: #eef2fb !important; }
#programaContenido .faq-section-toggle:focus-visible { outline: 3px solid rgba(210, 16, 52, .55); outline-offset: 3px; }
#programaContenido #faqAccordion .accordion-button:focus-visible { outline: 3px solid rgba(0, 29, 104, .35); outline-offset: -3px; }

/* Video único (Preparatoria): formato destacado en lugar de carrusel */
.ls-video-single { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 25px; }
@media (min-width: 860px) { .ls-video-single { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.ls-video-single-copy .section-title { margin: 0 0 12px; font-size: clamp(27px, 3vw, 36px); line-height: 1.12; text-align: left; }
.ls-video-single-copy .ls-videos-intro { margin: 0 0 14px; max-width: none; text-align: left; font-size: 17px; line-height: 1.5; color: var(--ls-gris); }
.ls-video-single-title { margin: 0 0 20px; padding-left: 14px; border-left: 3px solid var(--ls-rojo); font-size: 16px; color: var(--ls-tinta); }
a.ls-video-single-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 6px; background: var(--ls-rojo); color: #fff !important; font-size: 16px; text-decoration: none; transition: background-color .16s ease !important; }
a.ls-video-single-btn:hover { background: var(--ls-rojo-oscuro); }
a.ls-video-single-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ls-azul); box-shadow: 0 18px 44px rgba(0, 29, 104, .22); }
.ls-video-single-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ls-video-single-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 20, 71, .05), rgba(0, 20, 71, .45)); }
.ls-video-single-media:hover img { transform: scale(1.04); }
.ls-video-single-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--ls-rojo); color: #fff; font-size: 28px; padding-left: 5px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .22); transition: transform .2s ease, box-shadow .2s ease; }
.ls-video-single-media:hover .ls-video-single-play, .ls-video-single-media:focus-visible .ls-video-single-play { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255, 255, 255, .22); }


/* Enlaces: la hoja histórica les daba una transición de 1 s a todos; se acorta para que respondan al instante */
body.ls-programa a { transition: color .18s ease, background-color .18s ease, border-color .18s ease !important; }

/* Área táctil mínima y foco visible en controles del contenido */
#programaContenido a:focus-visible, #programaContenido button:focus-visible, .ls-hero a:focus-visible, .ls-select:focus-visible { outline: 3px solid rgba(255, 184, 28, .9); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ls-video-single-media img, .ls-video-single-play { transition: none; }
}
@media print { .ls-whatsapp, .ls-hero-form, .ls-hero-links, .ls-hero-switch { display: none !important; } }

/* La barra móvil «Solicita información» se retiró. Por si el servidor aún tiene la plantilla anterior, no se muestra. */
a.ls-cta-movil, #ctaMovil { display: none !important; }
/* La sección a la que baja «Conoce La Salle» deja aire arriba al llegar */
#conoce { scroll-margin-top: 12px; }

/* Texto seleccionado: azul institucional con letra blanca (la regla antigua lo dejaba blanco sobre amarillo) */
::selection { color: #fff; background: #001d68; text-shadow: none; }
::-moz-selection { color: #fff; background: #001d68; text-shadow: none; }

/* ---------------------------------------------------------------------
   Texto con formato escrito en el CMS (v2026.14): párrafos, saltos de línea,
   negritas, cursivas, listas y enlaces. «.ls-rico» va en el contenedor de
   cada texto (objetivo, RVOE, preguntas frecuentes, Top 5, prestigio, videos)
   y hereda de él tipografía, tamaño y color.
--------------------------------------------------------------------- */
#programaContenido .ls-rico p, #programaContenido .ls-rico li { max-width: none; margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }
#programaContenido .ls-rico p + p, #programaContenido .ls-rico p + ul, #programaContenido .ls-rico p + ol,
#programaContenido .ls-rico ul + p, #programaContenido .ls-rico ol + p, #programaContenido .ls-rico ul + ul { margin-top: .8em; }
#programaContenido .ls-rico strong, #programaContenido .ls-rico b { font-weight: 700; }
#programaContenido .ls-rico em { font-style: italic; }
#programaContenido .ls-rico u { text-decoration: underline; text-underline-offset: 2px; }
#programaContenido .ls-rico ul, #programaContenido .ls-rico ol { margin: 0; padding: 0 0 0 1.3em; list-style-position: outside; text-align: left; }
#programaContenido .ls-rico ul { list-style-type: disc; }
#programaContenido .ls-rico ol { list-style-type: decimal; }
#programaContenido .ls-rico li + li { margin-top: .3em; }
#programaContenido .ls-rico li::before { content: none; }
#programaContenido .ls-rico li::marker { color: var(--ls-rojo); }
#programaContenido .ls-rico h3, #programaContenido .ls-rico h4 { margin: 1em 0 .35em; font-family: var(--ls-titulo); font-weight: 700; font-size: 1.12em; line-height: 1.3; color: inherit; text-transform: none; letter-spacing: 0; }
#programaContenido .ls-rico > :first-child { margin-top: 0; }
#programaContenido .ls-rico a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#programaContenido .ls-rico a:hover { color: var(--ls-rojo); }

/* Contenedores que antes eran un <p> y conservan su aspecto */
.ls-rico-texto { max-width: 900px; color: #596273; font-size: 15px; line-height: 1.75; }
#programaContenido .ls-rico-texto strong { color: var(--ls-tinta); }
#programaContenido .ls-rico-texto h3, #programaContenido .ls-rico-texto h4 { color: var(--ls-azul); }
#programaContenido .ls-rico-texto a { color: var(--ls-azul); }
#proyectosPrestigio .prestigio-card .prestigio-texto { margin: 0; color: #555; font-size: 14px; line-height: 1.75; }
