/* =============== VARIABLES =============== */
:root {
    --primary-color: #23fd53;
    --primary-dark: #1e9b5a;
    --dark-color: #222327;
    --darker-color: #1a1a1a;
    --light-color: #ffffff;
    --lighter-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --text-muted: rgba(255, 255, 255, 0.6);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 0 15px rgba(35, 253, 83, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --section-padding: 5rem 0;
    --header-height: 80px;
    --max-width: 1400px;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
}

/* =============== BASE STYLES =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Agrega esto al inicio de tu CSS */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}



body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-slow);
    padding-top: var(--header-height);
}

body.dark-theme {
    background-color: var(--dark-color);
    color: var(--text-light);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--section-padding);
}

/* =============== HEADER STYLES =============== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    height: var(--header-height);
}

.dark-theme .sticky-header {
    background-color: rgba(34, 35, 39, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    z-index: 1001;
    position: relative;
}

.dark-theme .logo {
    color: var(--text-light);
}

.logo i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 2rem;
}

.logo:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* =============== NAVBAR STYLES =============== */
.navbar {
    display: flex;
}

.navbar-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.navbar a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.dark-theme .navbar a {
    color: var(--text-light);
}

.navbar a.active,
.navbar a:hover {
    color: var(--primary-color);
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dark-theme .dropdown-menu {
    background-color: var(--darker-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--dark-color);
}

.dark-theme .dropdown-menu a {
    color: var(--text-light);
}

.dropdown-menu a:hover {
    background-color: rgba(35, 253, 83, 0.1);
    color: var(--primary-color);
    padding-left: 1.75rem;
}

.dropdown-icon {
    transition: var(--transition);
    margin-left: 0.25rem;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Header controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dark-theme .theme-toggle {
    color: var(--text-light);
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--primary-color);
    background-color: rgba(35, 253, 83, 0.1);
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.user-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Mobile menu button - Hidden by default */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dark-theme .mobile-menu-btn {
    color: var(--text-light);
}

.mobile-menu-btn:hover {
    background-color: rgba(35, 253, 83, 0.1);
}

.mobile-menu-btn .close-icon {
    display: none;
}

/* Active state for mobile menu */
.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: block;
}

/* =============== HERO SECTION =============== */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/img/principal1.jpg') center/cover no-repeat;
    color: var(--text-light);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.hero-scroll-indicator:hover {
    border-color: var(--primary-color);
}

.hero-scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 30px; }
}


/* =============== ABOUT SECTION =============== */
.about-section {
    padding: var(--section-padding);
    background-color: var(--light-color);
    overflow-x: hidden; /* Evita desbordamientos horizontales */
}

.dark-theme .about-section {
    background-color: var(--dark-color);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Ajuste de padding para evitar desbordamientos */
}

.about-card {
    background: var(--light-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dark-theme .about-card {
    background: rgba(255, 255, 255, 0.05);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.card-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.card-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.card-content p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Grid para misión, visión y valores */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.values-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.values-list i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

/* =============== TIMELINE =============== */
.timeline-section {
    padding: var(--section-padding);
    background-color: #f8f9fa;
    overflow-x: hidden; /* Evita desbordamientos horizontales */
}

.dark-theme .timeline-section {
    background-color: #1a1a1a;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-event {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    justify-content: flex-end;
    padding-right: 3rem;
}

.timeline-event:nth-child(even) {
    justify-content: flex-start;
    padding-left: 3rem;
    padding-right: 0;
}

.event-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--light-color);
    z-index: 1;
}

.dark-theme .marker-circle {
    border-color: var(--dark-color);
}

.marker-year {
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.event-content {
    width: calc(50% - 4rem);
    background: var(--light-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.dark-theme .event-content {
    background: rgba(255, 255, 255, 0.05);
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* =============== RECOGNITION SECTION =============== */
.recognition-section {
    padding: var(--section-padding);
    background-color: var(--light-color);
    overflow-x: hidden; /* Evita desbordamientos horizontales */
}

.dark-theme .recognition-section {
    background-color: var(--dark-color);
}

.recognition-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.recognition-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dark-theme .partner-logo {
    background: rgba(255, 255, 255, 0.05);
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* =============== FOOTER =============== */
.footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    box-shadow: 0 0 15px var(--primary-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-section {
    text-align: left;
    margin-bottom: 1.5rem;
}

.footer h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
}

.footer h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer p,
.footer ul {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: var(--text-light);
    transition: var(--transition);
    display: inline-block;
    padding: 0.2rem 0;
}

.footer ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer .social-icons a {
    font-size: 1.3rem;
    color: var(--text-light);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.footer .social-icons a:hover {
    color: var(--primary-color);
    background-color: rgba(35, 253, 83, 0.1);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    grid-column: 1 / -1;
}

/* =============== MEDIA QUERIES =============== */

/* Tabletas (768px - 992px) */
@media (max-width: 992px) {
    :root {
        --section-padding: 4rem 0;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    /* Mostrar botón de menú móvil */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Ocultar navbar normal */
    .navbar {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        max-width: 400px;
        height: calc(100vh - var(--header-height));
        background-color: var(--light-color);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition-slow);
        z-index: 1000;
    }
    
    .dark-theme .navbar {
        background-color: var(--darker-color);
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 1rem;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .header-controls {
        gap: 1rem;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-event,
    .timeline-event:nth-child(even) {
        justify-content: flex-start;
        padding-left: 4rem;
        padding-right: 0;
    }
    
    .event-marker {
        left: 2rem;
    }
    
    .event-content {
        width: 100%;
    }
    
    /* About section adjustments */
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .partner-logo {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem; /* Reduce el tamaño del título */
    }

    .hero-subtitle {
        font-size: 1.2rem; /* Reduce el tamaño del subtítulo */
    }

    h1, h2, h3 {
        font-size: 1.5rem; /* Ajusta los encabezados */
    }

    p {
        font-size: 0.9rem; /* Reduce el tamaño del texto */
    }

    .footer-container {
        grid-template-columns: 1fr; /* Cambia el diseño del footer a una sola columna */
    }

    /* Ajustar el logo */
    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.5rem;
        margin-right: 0.3rem;
    }

    /* Ajustar el botón de registro */
    .user-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Ajustar la barra de navegación */
    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .navbar-list {
        gap: 1rem;
    }

    .navbar a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }

    /* Ajustar el botón del menú móvil */
    .mobile-menu-btn {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }

    /* Ajustar el contenedor del encabezado */
    .header-container {
        padding: 0 1rem;
    }

    .grid-container {
        grid-template-columns: 1fr; /* Cambia a una sola columna */
    }

    .timeline::before {
        left: 2rem; /* Ajusta la línea de tiempo */
    }

    .timeline-event,
    .timeline-event:nth-child(even) {
        justify-content: flex-start;
        padding-left: 4rem;
        padding-right: 0;
    }

    .event-marker {
        left: 2rem;
    }

    .event-content {
        width: 100%; /* Ocupa todo el ancho */
    }

    .partner-logo {
        padding: 1rem;
    }
}

/* Móviles (576px - 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem; /* Reduce aún más el tamaño del título */
    }

    .hero-subtitle {
        font-size: 1rem; /* Reduce el tamaño del subtítulo */
    }

    h1, h2, h3 {
        font-size: 1.2rem; /* Ajusta los encabezados */
    }

    p {
        font-size: 0.8rem; /* Reduce el tamaño del texto */
    }

    .footer h3 {
        font-size: 1rem; /* Reduce el tamaño de los títulos del footer */
    }

    .footer p,
    .footer ul li a {
        font-size: 0.85rem; /* Reduce el tamaño del texto del footer */
    }
    
    .user-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer .social-icons {
        justify-content: center;
    }
    
    .footer ul li a:hover {
        transform: none;
    }

    /* Ajustar el logo */
    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.5rem;
        margin-right: 0.3rem;
    }

    /* Ajustar el botón de registro */
    .user-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Ajustar la barra de navegación */
    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .navbar-list {
        gap: 1rem;
    }

    .navbar a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }

    /* Ajustar el botón del menú móvil */
    .mobile-menu-btn {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }

    /* Ajustar el contenedor del encabezado */
    .header-container {
        padding: 0 1rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon img {
        width: 40px;
        height: 40px;
    }

    .partner-logo img {
        max-height: 60px;
    }

    .timeline::before {
        left: 1rem;
    }

    .event-marker {
        left: 1rem;
    }
}

/* Ajustes generales para móviles (aplicará desde 992px hacia abajo) */
@media (max-width: 992px) {
    .header-container {
        padding: 0 0.8rem; /* Reducimos el padding lateral */
    }
    
    /* Logo más compacto */
    .logo {
        font-size: 1.3rem;
        margin-right: auto; /* Empuja los controles a la derecha */
    }
    
    .logo i {
        font-size: 1.5rem;
        margin-right: 0.3rem;
    }
    
    /* Contenedor de controles más compacto */
    .header-controls {
        gap: 0.6rem; /* Reducimos el espacio entre elementos */
        margin-left: 0.5rem; /* Acercamos al logo */
    }
    
    /* Botón de tema más pequeño */
    .theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    
    /* Botón de usuario más compacto */
    .user-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    /* Botón de menú más pequeño */
    .mobile-menu-btn {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }
}

/* Ajustes para móviles medianos (768px y menos) */
@media (max-width: 768px) {
    .header-controls {
        gap: 0.5rem;
    }
    
    .user-btn {
        padding: 0.4rem 0.7rem;
    }
    
    /* Ocultamos el texto "Sign In" en móviles */
    .user-btn span {
        display: none;
    }
    
    .user-btn i {
        margin-right: 0;
        font-size: 1rem;
    }
}

/* Ajustes para móviles pequeños (576px y menos) */
@media (max-width: 576px) {
    .header-container {
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo i {
        font-size: 1.3rem;
    }
    
    .header-controls {
        gap: 0.4rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .values-list li {
        flex-direction: column; /* Cambia a diseño vertical */
        text-align: center;
    }

    .partner-logo img {
        max-height: 50px;
    }

    .timeline::before {
        display: none; /* Oculta la línea de tiempo */
    }

    .event-marker {
        left: 0;
    }

    .event-content {
        width: 100%;
        padding: 1rem;
    }
}

/* Ajustes para móviles muy pequeños (menos de 400px) */
@media (max-width: 400px) {
    .logo span {
        display: none; /* Ocultamos el texto del logo */
    }
    
    .logo i {
        font-size: 1.5rem;
        margin-right: 0;
    }
    
    .header-controls {
        gap: 0.3rem;
    }
    
    .user-btn {
        padding: 0.3rem;
        width: 34px;
        justify-content: center;
    }
    
    .theme-toggle {
        width: 30px;
        height: 30px;
    }
    
    .mobile-menu-btn {
        width: 30px;
        height: 30px;
    }
}


/* Móviles pequeños (<576px) */
@media (max-width: 576px) {
    :root {
        --header-height: 60px;
        --section-padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem; /* Reduce aún más el tamaño del título */
    }

    .hero-subtitle {
        font-size: 0.9rem; /* Reduce el tamaño del subtítulo */
    }

    h1, h2, h3 {
        font-size: 1rem; /* Ajusta los encabezados */
    }

    p {
        font-size: 1rem; /* Reduce el tamaño del texto */
    }

    .footer h3 {
        font-size: 0.9rem; /* Reduce el tamaño de los títulos del footer */
    }

    .footer p,
    .footer ul li a {
        font-size: 1rem; /* Reduce el tamaño del texto del footer */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon img {
        width: 40px;
        height: 40px;
    }
    
    .partner-logo img {
        max-height: 60px;
    }

    /* Ajustar el logo */
    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.2rem;
    }

    /* Ajustar el botón de registro */
    .user-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Ajustar la barra de navegación */
    .navbar a {
        font-size: 0.8rem;
    }

    /* Ajustar el botón del menú móvil */
    .mobile-menu-btn {
        font-size: 1rem;
        width: 30px;
        height: 30px;
    }

    /* Ajustar el contenedor del encabezado */
    .header-container {
        padding: 0 0.5rem;
    }
}