/* Basic Reset & Body Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Cambiado para priorizar Roboto */
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    /* Opcional: Define un peso de fuente base si lo deseas */
    /* font-weight: 400; */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600; /* Slightly bolder headings */
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4rem); /* Responsive font size */
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}
h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 600;
}
h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
}
h4 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #555;
    margin-top: 1.5rem;
    font-weight: 500;
}


p {
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 0px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    margin: 5px;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #fff; /* Blue */
    color: #436CE6; 
}
.btn-primary:hover {
    background-color: #3658b8;
	color: #fff; 
    box-shadow: 0 6px 12px rgba(67, 108, 230, 0.4);
}

.date-block .btn-primary2 {
    background-color: #fff; /* Blue */
    color: #436CE6; 
}
.date-block .btn-primary2:hover {
    background-color: #3658b8;
	color: #fff; 
    box-shadow: 0 6px 12px rgba(67, 108, 230, 0.4);
}

.btn-secondary { /* Used for Fecha button in Hero */
    background-color: #DA7373; /* Reddish */
    color: #fff;
}
.btn-secondary:hover {
    background-color: #c86363;
     box-shadow: 0 6px 12px rgba(218, 115, 115, 0.4);
}

.btn-text { /* Used for "¿Qué verás..?" and "Fechas" in Hero */
    background: none;
    color: #fff;
    padding: 8px 15px;
    font-weight: 500;
    text-decoration: underline;
    margin: 5px 10px;
}
.btn-text:hover {
    color: #eee;
    transform: none;
    box-shadow: none;
}


/* Header */
.main-header {
    background-color: #000;
    padding: 15px 0;
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    height: clamp(25px, 5vw, 35px); /* Responsive logo height */
    filter: brightness(0) invert(1); /* Ensure logo is white */
}

.main-nav {
    display: flex; /* Keep nav visible on desktop */
}

.main-nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: clamp(15px, 3vw, 30px); /* Responsive gap */
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.main-nav a:hover {
    color: #ccc;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above header content */
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* Hero Section */
.hero-section {
    background-image: url('https://centro.edu.mx/wp-content/uploads/2025/06/ecosistemas-ia-llama2-scaled.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 80vh; /* Give it some height */
    display: flex;
    align-items: center; /* Vertically center content */
    padding: 100px 0 60px 0; /* Adjust padding */
    position: relative;
    text-align: left; /* Align text left */
}

.hero-content-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    gap: 30px;
    flex-wrap: wrap; /* Allow wrapping */
}

.hero-text {
    flex: 2;  /*Take more space */
    max-width: 650px; /* Limit text width */
	
}

.hero-label {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-divider {
    border: 0;
    height: 3px;
    background-color: #fff;
    width: 80px; /* Short line */
    margin: 2rem 0; /* Space around divider */
}

.hero-section .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 300;
}
.hero-section .subtitle strong {
    font-weight: 600;
}

.hero-section .cta-question {
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-cta-primary {
   flex: 1;
   text-align: center;
   margin-top: 180px; /* Align button roughly with text */
   min-width: 200px; /* Ensure button area has width */
}

.hero-buttons-secondary {
    margin-top: 1rem;
}


/* Intro Section */
.intro-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background */
}

.intro-section h2 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333;
    text-align: center; /* Center the main heading */
    margin-bottom: 3rem;
}

.intro-columns {
    display: flex;
    gap: 50px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping */
}

.intro-left {
    flex: 1;
    min-width: 300px; /* Prevent excessive shrinking */
}
.intro-left h3, .intro-right h3 {
    margin-bottom: 1.5rem;
}

.intro-left ul li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}
.intro-left ul {
    list-style: none;
    padding-left: 0;
}
.intro-left ul li::before {
    content: "✓"; /* Checkmark */
    color: #436CE6; /* Blue */
    margin-right: 10px;
    font-weight: bold;
}


.intro-right {
    flex: 1;
    max-width: 480px;
    min-width: 300px;
}

.date-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 18px 25px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.date-block p {
    margin: 0;
    font-weight: 500;
    color: #333;
}

/* Learn Section */
.learn-section {
    background-image: url('https://centro.edu.mx/wp-content/uploads/2025/04/cambio-de-fondo-meta_bootcamp1-scaled.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.learn-section::before { /* Optional overlay */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /*background-color: rgba(0, 0, 0, 0.3);  Darken background slightly */
    z-index: 1;
}
.learn-section .container {
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
}


.learn-section h2 {
    color: #fff;
}

.learn-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -1.5rem auto 3.5rem auto;
    opacity: 0.9;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.learn-card {
    /* Slightly transparent dark background */
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(8px); /* Glass effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.learn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.learn-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.learn-card p, .learn-card ul {
    font-size: 0.95rem;
    opacity: 0.9;
    color: #eee; /* Lighter text color */
}

.faq-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.faq-card li {
    margin-bottom: 0.8rem;
}
.faq-card a {
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.7);
    color: #fff; /* Ensure links are white */
}
.faq-card a:hover {
    color: #eee;
    border-bottom-style: solid;
}
/* FAQ Button style adjustment */
.faq-card .btn-primary {
    background-color: #fff;
    color: #436CE6;
}
.faq-card .btn-primary:hover {
    background-color: #eee;
    color: #3658b8;
}

/* Mentors Section */
.mentors-section {
    background-color: #fff; /* Changed to white background */
    color: #333; /* Default text color */
    padding: 80px 0;
}
.mentors-section h2 {
    color: #333; /* Dark heading */
    margin-bottom: 3rem;
}






/* --- Mentors Section Carousel (Swiper) --- */
.mentors-section {
    background-color: #fff;
    color: #333;
    padding: 80px 0;
    position: relative; /* Necesario para posicionar botones de navegación */
}

.mentors-section h2 {
    color: #333;
    text-align: center; /* Centrar título */
    margin-bottom: 3rem;
}

/* Contenedor de Swiper */
.mentor-swiper {
    width: 100%;
    padding-bottom: 50px; /* Espacio para la paginación */
    position: static; /* Asegura que los botones absolutos se refieran a mentors-section o container */
}

/* Estilo para cada slide */
.swiper-slide {
    /* Swiper maneja el ancho basado en slidesPerView,
       pero podemos añadir otros estilos si es necesario */
    height: auto; /* Permitir que la altura se ajuste al contenido */
    display: flex; /* Asegurar que el item llene el slide si es necesario */
    justify-content: center;
    align-items: center;
}

/* Estilos existentes para el item del mentor (deben funcionar dentro del slide) */
.mentor-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Hacer que el item ocupe el slide */
    max-width: 300px; /* Limitar ancho máximo si se ven varios */
    margin: 0 auto; /* Centrar si el slide es más ancho */
}
.mentor-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.mentor-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Estilos para la Paginación (personalización opcional) */
.mentor-pagination .swiper-pagination-bullet {
    background-color: #8C66EB; /* Color morado */
    opacity: 0.6;
    width: 10px;
    height: 10px;
}

.mentor-pagination .swiper-pagination-bullet-active {
    background-color: #436CE6; /* Color azul */
    opacity: 1;
}

/* Estilos para los Botones de Navegación (personalización opcional) */
.mentor-button-prev,
.mentor-button-next {
    color: #436CE6; /* Color azul */
    /* Ajustar tamaño si es necesario */
    /* --swiper-navigation-size: 30px; */
    background-color: rgba(255, 255, 255, 0.7); /* Fondo semi-transparente */
    border-radius: 50%;
    width: 44px; /* Ancho fijo */
    height: 44px; /* Alto fijo */
    top: 50%; /* Centrar verticalmente respecto al slide */
    transform: translateY(-50%); /* Ajuste fino vertical */
}
.mentor-button-prev::after,
.mentor-button-next::after {
    font-size: 1.2rem; /* Tamaño del icono de flecha */
    font-weight: bold;
}

/* Posicionar botones fuera en pantallas grandes */
@media (min-width: 768px) {
	.hero-text {
    flex: none !important;  /*Take more space */
    max-width: 650px; /* Limit text width */
		margin-left: -15rem;
	
}

	
    .mentor-button-prev {
        left: -10px; /* Mover fuera del contenedor */
    }
    .mentor-button-next {
        right: -10px; /* Mover fuera del contenedor */
    }
}

/* Ajustes responsivos para botones en pantallas pequeñas */
@media (max-width: 767px) {
    .mentor-button-prev,
    .mentor-button-next {
         /* Ocultar botones en móvil si se prefiere solo swipe/paginación */
         /* display: none; */
         top: auto; /* Resetear top */
         bottom: 5px; /* Posicionar cerca de la paginación */
         transform: none; /* Quitar transform */
         width: 36px;
         height: 36px;
    }
     .mentor-button-prev::after,
    .mentor-button-next::after {
         font-size: 1rem;
    }

    .mentor-button-prev {
        left: 10px;
    }
     .mentor-button-next {
        right: 10px;
    }

     .mentor-swiper {
         padding-bottom: 60px; /* Más espacio para paginación y botones */
     }
}
/*.mentor-grid-container {
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

.mentor-row {
    display: grid;
    gap: 30px;
}

.mentor-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mentor-row-4 {
    grid-template-columns: repeat(4, 1fr);
}*/


.mentor-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px; /* Optional rounded corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mentor-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}


.mentor-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* --- Partners Section --- */
.partners-section {
    background-color: #F3F3F3;
    padding: 40px 0; /* Ajusta el padding si necesitas */
}

.partners-flex {
    display: flex;
    justify-content: center; /* Centra los elementos horizontalmente */
    align-items: center;    /* Centra los elementos verticalmente */
    gap: 25px;             /* Espacio entre los elementos (logos y texto) */
    flex-wrap: wrap;       /* Permite que los elementos se muevan a la siguiente línea en pantallas pequeñas */
}

/* Estilo para la imagen combinada (Centro, Meta) */
.partner-logos-combined {
    max-width: 280px; /* Ajusta el tamaño máximo según necesites */
    height: auto;     /* Mantiene la proporción */
    
    /* Elimina cualquier estilo previo de .partner-logo si lo tenías */
}

/* Estilo para el texto "con el apoyo de" */
.support-text {
    color: black; /* Color gris claro */
    font-size: 1rem;
    text-transform: lowercase; /* Todo en minúsculas como en la imagen */
    white-space: nowrap; /* Evita que el texto se divida en dos líneas */
    padding: 0 10px; /* Añade un poco de espacio horizontal si el gap no es suficiente */
}

/* Estilo específico para el logo de Infotec */
.partner-logo-infotec {
    height: 55px; /* Ajusta la altura deseada */
    width: auto;  /* Mantiene la proporción */
}


/* --- Responsive Adjustments for Partners --- */

/* En pantallas medianas/tabletas, quizás reducir un poco los tamaños/gap */
@media (max-width: 768px) {
    .partners-flex {
        gap: 20px;
    }
    .partner-logos-combined {
        max-width: 240px;
    }
    .partner-logo-infotec {
        height: 50px !important;
    }
}

/* En pantallas pequeñas/móviles, hacerlos más pequeños y quizás apilarlos */
@media (max-width: 480px) {
    .partners-flex {
        /* Opcional: Descomenta la siguiente línea para apilarlos verticalmente */
        /* flex-direction: column; */
        gap: 15px;
    }
    .partner-logos-combined {
        max-width: 200px; /* Logos combinados más pequeños */
    }
    .partner-logo-infotec {
        height: 28px; /* Logo Infotec más pequeño */
    }
    .support-text {
        padding: 0 5px; /* Menos padding en texto */
    }
}

/* Concrete Data Section */
.concrete-data-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

/* Doubts Section */
.doubts-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    background-color: #fff; /* Example background */
}

.doubts-section h2 {
    margin-bottom: 1.5rem;
}

.doubts-section p {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    color: #555;
}
.doubts-section .btn-primary {
    padding: 15px 40px; /* Larger button */
}

/* Footer */
.main-footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items top */
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444; /* Darker border */
    gap: 30px;
    flex-wrap: wrap; /* Allow wrapping */
}

.footer-col {
    flex: 1; /* Allow columns to grow/shrink */
    min-width: 200px; /* Minimum width before wrapping */
}

.footer-address {
    line-height: 1.8;
}
.footer-address strong {
    font-weight: 600;
}

.footer-logo-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center vertically */
}

.footer-logo {
    height: 110px; /* Adjust as needed */
    
    margin-bottom: 10px;
}
.veinte-anos-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #aaa;
    text-transform: uppercase;
}

.footer-social {
    display: flex;
    justify-content: flex-end; /* Align icons to the right */
}

.social-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 icons per row */
    gap: 15px;
    max-width: 180px; /* Limit width of the grid */
}

.social-icons-grid a {
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem; /* Adjust if using icon fonts */
    font-weight: bold; /* For text placeholders */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

/* --- Footer Social Icons Specifics --- */
.social-icons-grid a i {
    font-size: 1.1rem; /* Ajusta el tamaño del icono si es necesario */
    color: #000;       /* Color del icono (negro sobre fondo blanco) */
    line-height: 1;   /* Asegura que no haya interlineado extra */
    /* No se necesita font-weight aquí */
}

/* --- REPLACE TEXT PLACEHOLDERS WITH ACTUAL ICONS (img or svg) --- */
/* Example using img:
.social-icons-grid a img { width: 18px; height: 18px; }
*/

.social-icons-grid a:hover {
    background-color: #ddd;
    color: #000;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    padding-top: 20px;
}
.footer-bottom p {
    margin: 0;
}
.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}
.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Mentor Popup Styles */
.mentor-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.mentor-popup.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.mentor-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.mentor-popup-content {
    position: relative;
    background-color: #fff;
    color: #333;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 2001;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}
.mentor-popup.active .mentor-popup-content {
     transform: scale(1);
}


.mentor-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}
.mentor-popup-close:hover {
    color: #333;
}

#popup-mentor-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto; /* Center image */
    display: block;
    border: 3px solid #eee;
}

#popup-mentor-name {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

#popup-mentor-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

#popup-mentor-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}


/* Responsive Adjustments */

@media (max-width: 992px) {
    .main-nav-left, .main-nav-right {
        display: none; /* Hide desktop nav links */
    }

    .menu-toggle {
        display: block; /* Show hamburger */
    }

    /* Mobile Menu Styles (Initially Hidden) */
    .main-nav {
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #111; /* Slightly different black */
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        max-height: 0; /* Hide it */
        overflow: hidden;
        transition: max-height 0.5s ease-out, padding 0.5s ease-out;
        display: flex; /* Needed for flex context */
    }
    .main-nav.active {
        max-height: 500px; /* Or enough height to show items */
        padding: 20px 0; /* Add padding back */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .main-nav li {
        margin-left: 0; /* Reset margin */
    }
    .main-nav a {
        font-size: 1.1rem;
    }

    /* Active Toggle Button */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    .hero-content-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
     .hero-divider {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta-primary {
        text-align: center;
        margin-top: 20px;
        width: 100%;
    }

    .intro-columns {
        flex-direction: column;
        gap: 40px;
    }
    .intro-right {
        max-width: 100%; /* Allow dates block to take full width */
    }

    .learn-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .mentor-row-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .mentor-row-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } /* Adjust minmax */

     .footer-top {
        flex-direction: column;
        align-items: center; /* Center items when stacked */
        text-align: center;
    }
     .footer-col {
         min-width: 100%; /* Full width when stacked */
         margin-bottom: 20px;
     }
     .footer-social {
         justify-content: center; /* Center icons */
     }
     .social-icons-grid {
         margin: 0 auto; /* Center grid itself */
     }

     .popup-mentor-content {
         max-width: 90%;
     }
}

@media (max-width: 768px) {
    .mentor-row-3, .mentor-row-4 {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller tablets */
        gap: 20px;
    }

    .learn-grid {
        grid-template-columns: 1fr; /* Stack learn cards */
        gap: 25px;
    }
     .learn-card { padding: 25px; }

    .date-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
    }
     .date-block .btn { width: 100%; text-align: center; } /* Full width button */

    .social-icons-grid {
        grid-template-columns: repeat(4, 1fr); /* Keep 4 wide or adjust if needed */
        max-width: 220px;
        gap: 10px;
    }
     .social-icons-grid a { width: 32px; height: 32px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .mentor-row-3, .mentor-row-4 {
        grid-template-columns: 1fr; /* Stack mentors */
    }

     .btn {
         padding: 10px 20px;
         width: 90%; /* Make most buttons wider */
         margin: 8px auto;
         display: block;
     }
     .hero-buttons-secondary .btn-text {
         display: inline-block; /* Keep text buttons inline */
         width: auto;
         margin: 5px;
     }
     .hero-cta-primary .btn-primary {
         width: 80%; /* Slightly less wide hero button */
     }
     .date-block .btn {
         width: 100%; /* Ensure full width */
     }
      .faq-card .btn {
         width: auto; /* Reset specific button widths if needed */
         display: inline-block;
     }
      .doubts-section .btn {
          width: 80%;
      }

     .popup-mentor-content {
         padding: 30px 20px;
     }
      #popup-mentor-img { width: 120px; height: 120px;}
      #popup-mentor-name { font-size: 1.5rem; }
      #popup-mentor-title { font-size: 1rem; }
      #popup-mentor-bio { font-size: 0.9rem; }

}



/* --- Concrete Data Section --- */
.concrete-data-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Un fondo gris muy claro */
}

.concrete-data-section h2 {
    color: #333;
    margin-bottom: 3.5rem; /* Más espacio debajo del título */
}

.concrete-grid {
    display: grid;
    /* 4 columnas en escritorio */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Espacio entre las tarjetas */
}

.concrete-item {
    background-color: #ffffff; /* Fondo blanco para las tarjetas */
    padding: 35px 25px;        /* Relleno interno */
    border-radius: 12px;       /* Bordes redondeados */
    text-align: center;        /* Texto centrado */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición para hover */
    display: flex; /* Usar flexbox para alinear verticalmente si es necesario */
    flex-direction: column;
    justify-content: center; /* Centrar contenido verticalmente */
}

.concrete-item:hover {
    transform: translateY(-8px); /* Efecto de elevación al pasar el mouse */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Sombra más pronunciada */
}

.concrete-number {
    display: block; /* Para que ocupe su propia línea */
    font-size: clamp(3rem, 8vw, 4.5rem); /* Tamaño de fuente grande y responsive */
    font-weight: 700; /* Negrita */
    color: #436CE6; /* Color azul primario */
    margin-bottom: 15px;
    line-height: 1.1; /* Ajuste de interlineado */
}

.concrete-description {
    font-size: 0.95rem; /* Tamaño de fuente para la descripción */
    color: #555;       /* Color de texto gris oscuro */
    line-height: 1.6;   /* Interlineado */
    margin: 0;          /* Quitar margen por defecto del párrafo */
    flex-grow: 1; /* Permite que la descripción ocupe espacio si es necesario */
}

.concrete-description strong {
    font-weight: 600; /* Hacer 'online y gratuito' un poco más grueso */
    color: #333;
}

.concrete-source {
    display: block; /* En línea separada */
    font-size: 0.8rem;
    color: #888; /* Color gris más claro para la fuente */
    margin-top: 8px;
    font-style: italic;
}

/* --- Responsive Adjustments for Concrete Data --- */

/* Tablets */
@media (max-width: 992px) {
    .concrete-grid {
        /* 2 columnas en tablets */
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .concrete-number {
         font-size: clamp(2.8rem, 7vw, 4rem); /* Ligeramente más pequeño */
    }
     .concrete-item {
        padding: 30px 20px;
    }
}

/* Móviles */
@media (max-width: 576px) {
    .concrete-grid {
        /* 1 columna en móviles */
        grid-template-columns: 1fr;
        gap: 20px;
    }
     .concrete-number {
         font-size: clamp(2.5rem, 10vw, 3.5rem); /* Ajustar para móvil */
    }
    .concrete-item {
        padding: 25px 20px;
    }
    .concrete-description {
        font-size: 0.9rem;
    }
}


/* --- FAQ Card Specifics --- */
.faq-card ul.faq-list { /* Target the specific FAQ list */
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.faq-card ul.faq-list li {
    margin-bottom: 0.8rem;
}

.faq-card ul.faq-list li a { /* Style all links in the list */
    color: #fff; /* Mantener color blanco */
    text-decoration: none; /* Quitar subrayado por defecto */
    border-bottom: 1px dotted rgba(255, 255, 255, 0.7);
    transition: border-bottom-color 0.3s ease, color 0.3s ease;
}
.faq-card ul.faq-list li a:hover {
    color: #eee;
    border-bottom-color: rgba(255, 255, 255, 1);
    border-bottom-style: solid;
}

.faq-card ul.faq-list li a.faq-trigger { /* Specific style for triggers */
    cursor: pointer; /* Indica que es clickeable */
}

/* --- FAQ Popup Styles --- */
.faq-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000; /* Encima de otros elementos */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.faq-popup.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.faq-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo semitransparente */
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.faq-popup-content {
    position: relative;
    background-color: #fff;
    color: #333;
    padding: 30px 40px;
    border-radius: 10px;
    max-width: 700px; /* Ancho máximo del popup */
    width: 90%;
    max-height: 85vh; /* Altura máxima */
    overflow-y: auto; /* Scroll si el contenido es largo */
    z-index: 2001; /* Encima del overlay */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.faq-popup.active .faq-popup-content {
     transform: scale(1);
}

.faq-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.3s ease;
}
.faq-popup-close:hover {
    color: #333;
}

#popup-faq-question {
    font-size: 1.4rem; /* Tamaño para la pregunta en el popup */
    margin-bottom: 1rem;
    color: #436CE6; /* Azul como el número de Datos Concretos */
    font-weight: 600;
}

#popup-faq-answer {
    font-size: 1rem; /* Tamaño para la respuesta */
    line-height: 1.7;
    color: #444;
}
/* Estilo para listas dentro de la respuesta si es necesario */
#popup-faq-answer ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}
#popup-faq-answer li {
     margin-bottom: 5px;
}


/* --- Cronograma Section --- */
.cronograma-section {
    padding: 60px 0 80px 0; /* Padding arriba y abajo */
    background-color: #f3f3f3; /* Fondo gris claro */
}

.cronograma-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Permitir que los tags bajen si no caben */
    gap: 15px;
}

.cronograma-header h3 {
    margin-bottom: 0; /* Quitar margen inferior del h3 */
    color: #333;
}

.cronograma-tags {
    display: flex;
    gap: 10px;
}

.tag {
    padding: 6px 15px;
    border-radius: 15px; /* Bordes redondeados */
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    cursor: default; /* O pointer si fueran filtros reales */
}

.tag-onlive {
    background-color: #8C66EB; /* Morado */
}

.tag-offline {
    background-color: #20C9E1; /* Azul */
	color: black;
}


.semana {
    margin-bottom: 2.5rem; /* Espacio entre semanas */
}

.semana h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #444;
}

.grid-scroll-wrapper {
    overflow-x: auto; /* Habilita scroll horizontal si el contenido es más ancho */
    padding-bottom: 10px; /* Espacio para la barra de scroll si aparece */
    margin-left: -10px; /* Compensar padding del contenedor si afecta bordes */
    margin-right: -10px;
}
/* Estilo para la barra de scroll (opcional, sutil) */
.grid-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}
.grid-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.grid-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.grid-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}


.dias-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnas iguales */
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    min-width: 800px; /* Ancho mínimo para forzar scroll en pantallas pequeñas */
}

.dia {
    padding: 10px;
    border-right: 1px solid #e9e9e9;
    min-height: 120px; /* Altura mínima para cada día */
    display: flex;
    flex-direction: column;
}
.dia:last-child {
    border-right: none; /* Quitar borde derecho del último día */
}

.dia.finde {
    background-color: #f8f9fa; /* Fondo ligeramente gris para fines de semana */
}

.dia-header {
    text-align: right;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.85rem;
}

.dia-header .dia-nombre {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
}

.dia-header .dia-fecha {
    display: block;
    font-weight: 300;
    font-size: 1.1rem;
    color: #888;
}

.dia-content {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Espacio entre eventos dentro de un día */
    flex-grow: 1; /* Para que ocupe el espacio restante */
}

.evento {
    padding: 8px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.3;
}

.evento span {
    display: block; /* Cada parte en su línea */
}

.evento .evento-hora {
    font-weight: 500;
    margin-bottom: 2px;
}

/* Colores de eventos */
.evento-live { background-color: #8C66EB; } /* Morado más claro para diferenciar */
.evento-clase { background-color: #8C66EB; } /* Morado */
.evento-contenido { background-color: #8C66EB; } /* Morado */
.evento-asistencia { background-color: #20C9E1; color: black !important; } /* Azul */
.evento-prueba { background-color: #8C66EB; } /* Morado */

/* --- Responsive Adjustments for Cronograma --- */

@media (max-width: 992px) {
    .dias-grid {
        min-width: 750px; /* Ajustar ancho mínimo si es necesario */
    }
     .dia {
        padding: 8px;
    }
    .evento {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
     /* El scroll horizontal ya está activo por el wrapper */
     .cronograma-header {
         flex-direction: column; /* Apilar título y tags */
         align-items: flex-start; /* Alinear a la izquierda */
         margin-bottom: 1.5rem;
     }
      .dias-grid {
        min-width: 650px; /* Reducir más si cabe */
        border-radius: 6px;
    }
     .dia-header .dia-nombre {
         /* Opcional: Ocultar nombre del día para ahorrar espacio */
         /* display: none; */
     }
     .dia-header .dia-fecha {
         font-size: 1rem;
     }
     .evento {
         padding: 5px 7px;
     }
}

@media (max-width: 480px) {
     .tag {
         padding: 5px 12px;
         font-size: 0.75rem;
     }
     .dias-grid {
        min-width: 550px; /* Mínimo absoluto, ajustar según contenido */
    }
     .dia {
         padding: 6px;
     }
     .dia-header {
         font-size: 0.75rem;
     }
     .dia-header .dia-fecha {
         font-size: 0.9rem;
     }
     .evento {
         font-size: 0.65rem;
         padding: 4px 6px;
     }
     .evento .evento-hora {
         font-size: 0.7rem;
     }
}

































/* --- Cronograma Section --- */
/* --- General Styles --- */
/* --- General & Container --- (sin cambios) */
/* --- General & Container ---  */
body { font-family: sans-serif; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* --- Cronograma Section --- */
.cronograma-section { padding: 40px 0 60px 0; background-color: #f8f9fa; }

/* --- Tag Styling (General) --- */
.tag { padding: 5px 12px; border-radius: 15px; color: white; font-size: 0.8rem; font-weight: 500; cursor: default; text-align: center; display: inline-block; line-height: 1.2; box-sizing: border-box; border-radius: 8px !important } /* User styles preserved */
.tag-general { background-color: #8C66EB; } /* User color */
.tag-matutino { background-color: #3d84e2; } /* User color */
.tag-vespertino { background-color: #82DA73; color: #000; } /* User color */
.tag-offline { background-color: #72C2ED; color: #000; } /* User color */

/* --- Fila para Título y Tags --- */
.cronograma-tag-header-row {
    display: flex;
    align-items: center; /* Alinear verticalmente spacer y grid */
    margin-bottom: 15px; /* Espacio antes de la primera semana */
}

.semana-label-spacer {
    flex: 0 0 80px;      /* Ancho igual a .semana-label */
    margin-right: 15px; /* Gap igual que entre .semana-label y .grid-scroll-wrapper */
    align-self: stretch; /* Ocupar altura completa de la fila */
}

.tag-header-grid {
    flex-grow: 1; /* Ocupar espacio restante */
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnas iguales */
    gap: 10px;         /* Mismo gap que .dias-grid */
    align-items: center; /* Centrar verticalmente contenido de las celdas */
    padding: 0 15px; /* Padding interno para alinear con contenido de tabla */
    box-sizing: border-box; /* Incluir padding en el cálculo del ancho */
}

.tag-header-cell {
    display: flex;
    align-items: center;    /* Mantenemos centrado vertical */
    min-height: 35px; /* Altura mínima para la fila */
}

/* Estilo para la celda del título */
.tag-header-cell.cell-title {
    justify-content: flex-start; /* Alinear título a la izquierda */
}

.tag-header-cell.cell-title h3 {
    margin: 0; /* Quitar margen por defecto del h3 */
    font-size: 1.5rem; /* Tamaño del título */
    font-weight: bold;
    color: #333;
    white-space: nowrap; /* Evitar que el título se parta */
}

/* Estilo para las celdas que contienen tags */
.tag-header-cell.cell-tag {
    justify-content: center; /* Centrar los tags horizontalmente */
}

/* --- Weekly Grid --- */
.semana { margin-bottom: 2rem; display: flex; gap: 15px; align-items: flex-start; }
.semana-label { flex: 0 0 80px; padding-top: 15px; font-weight: bold; color: #555; text-align: right; font-size: 0.9rem; }
/* SE QUITA overflow-x: auto de aquí en desktop si no se quiere nunca */
.grid-scroll-wrapper { /* overflow-x: auto; */ flex-grow: 1; background-color: #ffffff; border-radius: 8px; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); box-sizing: border-box; }
/* SE QUITA min-width de aquí si no se quiere scroll en desktop */
.dias-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; /* min-width: 700px; */ }
.dia { border-radius: 6px; min-height: 100px; position: relative; }
.dia:not(:last-child) { border-right: 1px solid #eee; }
.dia-header { text-align: center; margin-bottom: 10px; padding: 5px 0; }
.dia-header .dia-nombre { display: block; font-weight: bold; font-size: 0.8rem; color: #777; text-transform: uppercase; }
.dia-header .dia-fecha { font-weight: bold; font-size: 1.1rem; color: #333; }
.dia-content { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; padding: 0 5px 5px 5px; }
.dia.finde { /* Estilos finde */ }

/* --- Event Styling --- */
.evento { padding: 8px 10px; border-radius: 6px; font-size: 0.8rem; color: white; line-height: 1.3; text-align: center; word-break: break-word; /* Ayuda a romper palabras si se necesita */ }
.evento-bienvenida { background-color: #8C66EB; }
.evento-contenido  { background-color: #8C66EB; }
.evento-matutino   { background-color: #3d84e2; }
.evento-vespertino { background-color: #82DA73; color: black !important;}
.evento-asistencia { background-color: #72C2ED; color: #000; }
.evento-prueba     { background-color: #8C66EB; }

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    /* Ajustes para apilar etiqueta de semana */
     .semana { flex-direction: column; align-items: flex-start; gap: 8px; }
     .semana-label { text-align: left; padding-top: 0; flex-basis: auto; margin-right: 0; }

     /* Ajustes para la fila de título/tags (CON SCROLL) */
     .cronograma-tag-header-row {
         padding: 0;
         overflow-x: auto; /* <<< MANTIENE SCROLL */
         /* -webkit-overflow-scrolling: touch; */
     }
     .semana-label-spacer {
          display: none;
     }
     .tag-header-grid {
         min-width: 650px; /* <<< MANTIENE min-width para forzar scroll */
         padding: 0 10px;
         width: auto;
     }
     .tag-header-cell.cell-title h3 {
         padding-left: 0;
     }

     /* Otros ajustes (GRID SIN SCROLL) */
     .dias-grid {
        /* min-width: 650px; <<< QUITADO: No forzar ancho mínimo */
        gap: 5px; /* <<< REDUCIDO: Menos espacio entre días */
     }
     .grid-scroll-wrapper {
         padding: 10px;
         /* overflow-x: auto; <<< QUITADO: Sin scroll horizontal */
         width: 100%; /* Asegurar que ocupe el ancho disponible */
         box-sizing: border-box; /* Para que el padding no lo haga más ancho */
     }
     /* Ajustar tamaño de fuente en días si es necesario */
     .dia-header .dia-nombre { font-size: 0.7rem; }
     .dia-header .dia-fecha { font-size: 1rem; }
     .evento { font-size: 0.7rem; padding: 5px; }
}

@media (max-width: 768px) {
     /* Ajustes para la fila de título/tags (CON SCROLL) */
      .tag-header-grid {
          min-width: 550px; /* <<< MANTIENE min-width (ajustado) */
          gap: 5px;
          padding: 0 5px;
      }
      .tag-header-cell.cell-title h3 {
          font-size: 1.3rem;
      }
      .tag { font-size: 0.7rem; padding: 5px 8px; }

     /* Otros ajustes (GRID SIN SCROLL) */
     .dias-grid {
          /* min-width: 550px; <<< QUITADO */
          gap: 3px; /* <<< REDUCIDO MÁS */
     }
     .grid-scroll-wrapper {
         padding: 5px;
        /* overflow-x: auto; <<< QUITADO */
     }
      /* Ajustar más si es necesario */
     .dia-header .dia-nombre { font-size: 0.6rem; }
     .dia-header .dia-fecha { font-size: 0.9rem; }
     .evento { font-size: 0.65rem; padding: 4px; line-height: 1.2; }
}