/* Variables de color */
:root {
    --cesba-dark: #0d1b3e;
    --cesba-green: #58FFBE;
    --whatsapp-green: #25d366;
    --text-white: #ffffff;
    --gray-separator: #374151;
    --cesba-blue: #4076f6;        /* Azul Botón Acceso PIEEL */
    --cesba-purple: #853093;      /* Púrpura Botón Saber Más */
    --search-bg: #2e3d5e;         /* Gris/Azul del buscador */
    --font-semibold: 600;
    --font-bold: 700;
}

/* Estilos del Footer */
.footer-main {
    background-color: var(--cesba-dark);
    color: var(--text-white);
    position: relative;
}

/* 1. Patrón superior */
.footer-pattern {
    width: 100%;
    height: 80px;
    background-image: url('../images/textura-fondo.webp'); /* REEMPLAZAR CON TU IMAGEN image_782c4d.png */
    background-size: cover;
    background-position: center;
    background-color: #60a5fa; /* Color de respaldo */
}

/* Contenedor principal */
.footer-content {
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Grid de contenido */
.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

/* Enlaces (Columna Izquierda) */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 4px;
}

.footer-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--cesba-green);
    transition: text-decoration 0.2s;
}

.footer-links a.text-white {
    color: var(--text-white);
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Logo (Columna Central) */
.footer-logo img {
    width: 100px;
    height: auto;
}

/* Redes y Políticas (Columna Derecha) */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 24px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--text-white);
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--cesba-green);
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-links a {
    color: var(--cesba-green);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.legal-links a:hover {
    text-decoration: underline;
}
.footer-links ul{
    list-style: none;
    padding: 0;
}

/* Dirección (Parte inferior) */
.footer-bottom {
    margin-top: 0;
    padding-top: 25px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cesba-green);
    font-size: 12px;
    font-weight: 500;
}
.text-white{
    color: white;
}
.font19{
    font-size: 19px;
}
#content-lp-virtual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 24px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--neutral-100);
}
#content-lp-virtual table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, .05);
}
#content-lp-virtual table{
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}
#content-lp-virtual table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}
#content-lp-virtual table td, #content-lp-virtual table th {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.lp-faq {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  
  /* El h3 ahora es el que reacciona al clic */
  .lp-faq h3 {
    cursor: pointer;
    padding: 18px 24px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--cesba-navy);
    user-select: none;
    margin: 0; /* Asegura que no tenga márgenes raros */
  }
  
  /* Icono + por defecto */
  .lp-faq h3::after {
    content: "+";
    font-size: 28px;
    font-weight: 300;
    color: var(--cesba-green-700);
    transition: transform .2s var(--ease-out);
    line-height: 1;
  }
  
  /* Estado CERRADO: El contenido se oculta */
  .lp-faq p {
    display: none; 
    padding: 18px 24px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--neutral-700);
    margin: 0;
  }
  
  /* ==========================================
     ESTADOS CUANDO ESTÁ ABIERTO (.is-open)
  ============================================= */
  
  /* Muestra el párrafo */
  .lp-faq.is-open p {
    display: block;
  }
  
  /* Cambia el "+" por "−" */
  .lp-faq.is-open h3::after { 
    content: "−"; 
  }
  
  /* Añade la línea divisoria al h3 */
  .lp-faq.is-open h3 { 
    border-bottom: 1px solid var(--neutral-200); 
  }


/* Media Queries para Escritorio */
@media (min-width: 768px) {
    .footer-pattern {
        height: 150px;
    }

    .footer-content {
        padding: 20px;
    }

    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-logo img {
        width: 100px;
    }

    .footer-right {
        align-items: flex-end;
    }

    .legal-links {
        text-align: right;
        font-size: 13px;
    }

    .location-info {
        font-size: 13px;
    }

    .whatsapp-btn {
        width: 64px;
        height: 64px;
    }

    /* Ajuste de orden en desktop para que el logo esté al centro */
    .footer-links { order: 1; }
    .footer-logo { order: 2; }
    .footer-right { order: 3; }
}


/* ---- header ----- */
.site-header {
    background-color: var(--cesba-dark);
    color: var(--text-white);
    width: 100%;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.header-container {
    margin: 0 auto;
    padding: 15px 30px;
    width: 100%;
}

/* Enlaces */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Logo CESBA */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: auto;
    width: 360px;
    /* display: block; */
}
.col-logo{
    width: 360px;
    text-align: left;
    margin-left: -20px;
    margin-top: -10px;
}
/* Buscador General */
.search-bar {
    position: relative;
    width: 100%;
    max-width: 750px;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border-radius: 50px;
    border: none;
    background-color: #EDEDED5C;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.search-input::placeholder {
    color: #8b9bb4;
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
}

/* Botones de acción */
.actions-container {
    display: flex;
    gap: 80px;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 22px;
}

.btn-header {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: var(--font-bold);
    text-align: center;
    white-space: nowrap;
}

.btn-green {
    background-color: var(--cesba-green);
    color: #0d1b3e;
}

.btn-green:hover {
    filter: brightness(1.1);
}

.btn-blue {
    background-color: var(--cesba-blue);
    color: var(--text-white);
}

.btn-blue:hover {
    filter: brightness(1.1);
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 20px;
    font-size: 25px;
    align-items: center;
    margin: 0 8px 0px 0px;
}

.social-links a:hover {
    color: var(--cesba-green);
}

/* Botón de Hamburguesa General */
.menu-toggle {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    outline: none;
}

/* ----------------------------------
   DISEÑO DE ESCRITORIO (>= 1025px)
------------------------------------- */
@media (min-width: 1025px) {
    .header-grid-desktop {
        display: grid;
        /* Tres columnas perfectas: Logo (izq), Buscador y menú (centro), Botones y redes (der) */
        grid-template-columns: 250px 1fr 280px;
        align-items: center;
        gap: 20px;
    }

    /* Columna Central (Buscador arriba, Menú abajo) */
    .col-center {
        display: flex;
        flex-direction: column;
        align-items: center; /* Alineación perfecta al centro */
        gap: 32px;
    }

    /* Columna Derecha (Botones arriba, Redes abajo) */
    .col-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* Alineación a la derecha */
        gap: 12px;
    }

    .right-bottom-row {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    /* Navegación Escritorio */
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .nav-item {
        font-size: 14px;
        font-weight: var(--font-semibold);
        position: relative;
        padding: 5px 0;
    }

    .nav-item > a {
        color: var(--text-white);
    }

    .nav-item:hover > a, .nav-item.active > a {
        color: var(--cesba-green);
    }

    /* Dropdown "Licenciaturas en línea" */
    .dropdown-trigger {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        color: var(--text-white);
    }

    .nav-item:hover .dropdown-trigger {
        color: var(--cesba-green);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background-color: var(--cesba-dark);
        min-width: 240px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        border-radius: 4px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1100;
        padding: 0;
    }

    .dropdown-menu li {
        list-style: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu a {
        display: block;
        padding: 12px 18px;
        font-size: 13px;
        color: var(--text-white);
        font-weight: var(--font-semibold);
        text-align: left;
    }

    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--cesba-green);
    }

    /* Mostrar dropdown en hover */
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    /* Ocultar elementos móviles en Escritorio */
    .menu-toggle-center,
    .menu-toggle-right,
    .mobile-nav-drawer {
        display: none !important;
    }
}

/* ----------------------------------
   DISEÑO DE TABLET (577px a 1024px)
------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
    .header-grid-desktop {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    /* Columna central (Buscador + Hamburguesa debajo) */
    .col-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Botón de menú centrado debajo del buscador en Tablet */
    .menu-toggle-center {
        display: block;
    }

    .menu-toggle-right,
    .desktop-nav {
        display: none;
    }

    /* Columna derecha (Botones arriba, Redes abajo) */
    .col-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .right-bottom-row {
        display: flex;
        justify-content: flex-end;
    }
}

/* ----------------------------------
   DISEÑO DE MÓVIL (<= 576px)
------------------------------------- */
@media (max-width: 768px) {
    .header-grid-desktop {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .col-logo {
        order: 1;
    }

    .logo-img {
        height: 60px;
    }

    /* Buscador */
    .col-center {
        order: 2;
        width: 100%;
    }

    .search-bar {
        max-width: 100%;
    }

    .desktop-nav,
    .menu-toggle-center {
        display: none;
    }

    /* Botones y Fila Inferior */
    .col-right {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .actions-container {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .btn-header {
        flex: 1;
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Fila inferior de móvil: Redes a la izquierda, hamburguesa a la derecha */
    .right-bottom-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle-right {
        display: block;
    }
}

/* ----------------------------------
   MENÚ DESPLEGABLE RESPONSIVO (DRAWER)
------------------------------------- */
.mobile-nav-drawer {
    display: block;
    background-color: var(--cesba-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 0px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-drawer.open {
    max-height: 500px; /* Ajuste automático según el contenido */
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: var(--font-bold);
    color: var(--text-white);
}

.mobile-nav-item.active .mobile-nav-link,
.mobile-nav-link:hover {
    color: var(--cesba-green);
}

/* Submenú en móvil (Acordeón) */
.mobile-submenu {
    background-color: rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-submenu.show {
    max-height: 200px;
}

.mobile-submenu-link {
    display: block;
    padding: 12px 35px;
    font-size: 13px;
    font-weight: var(--font-semibold);
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-submenu-link:hover {
    color: var(--cesba-green);
    background-color: rgba(255, 255, 255, 0.02);
}

/* Rotación de flecha en acordeón */
.fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-nav-item.submenu-open .fa-chevron-down {
    transform: rotate(180deg);
}

/* ----------------------------------
   SECCIÓN HERO (BANNER PREVIEW)
------------------------------------- */
.hero {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    background-image: linear-gradient(rgba(13, 27, 62, 0.75), rgba(13, 27, 62, 0.75)), 
                      url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=1200&auto=format&fit=crop'); /* REEMPLAZAR CON TU FONDO */
    background-size: cover;
    background-position: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    line-height: 1.2;
}

.btn-purple {
    background-color: var(--cesba-purple);
    color: var(--text-white);
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: var(--font-bold);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(133, 48, 147, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-purple:hover {
    transform: translateY(-2px);
    background-color: #9c41ac;
}
@media screen and (max-width:1420px){
    .search-bar {
        max-width: 530px;
    }  
    .actions-container {
        gap: 20px;
    }
    .col-logo {
        width: auto;
    }
    .logo-img {
        width: auto;
    }
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    .btn-purple {
        padding: 12px 30px;
        font-size: 14px;
    }
}
@media screen and (max-width:578px){
    .col-center {
        display: none;
    }
    .logo-img {
        width: 260px;
        height: auto;
    }
    .lpinputsnames input {
        width: 32.5% !important;
    }
}



