/* css/styles.css */

:root {
    --bg-color: #f8f9fa;
    --text-color: #495057;
    --header-footer-bg: #1a3a3a;
    --button-bg: #b6a67d;
    --button-hover-bg: #a49363;
    --feature-bg: #ffffff;
    --feature-hover-bg: #f1f3f5;
    --feature-text-color: #2c786c;
    --cta-button-bg: #ff6b35;
    --cta-button-hover-bg: #e85a2b;
    --gallery-shadow: rgba(0, 0, 0, 0.1);
    --gallery-hover-shadow: rgba(0, 0, 0, 0.2);
    --gallery-bg: #ffffff;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-mode {
    --bg-color: #212529;
    --text-color: #e9ecef;
    --header-footer-bg: #0d1b1b;
    --button-bg: #6c757d;
    --button-hover-bg: #5a6268;
    --feature-bg: #343a40;
    --feature-hover-bg: #495057;
    --feature-text-color: #4ecdc4;
    --cta-button-bg: #ff9f1c;
    --cta-button-hover-bg: #f39200;
    --gallery-shadow: rgba(255, 255, 255, 0.05);
    --gallery-hover-shadow: rgba(255, 255, 255, 0.1);
    --gallery-bg: #343a40;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    line-height: 1.6;
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

header {
    background-color: var(--header-footer-bg);
    padding: 20px 0;
    animation: fadeIn 1s ease;
}

header img {
    max-width: 180px;
    display: block;
    margin: 0 auto;
}

header nav {
    max-width: 1200px;
    margin: 20px auto 0;
}

.menu-button {
    background-color: var(--button-bg);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    margin: 10px auto;
}

.menu-button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.menu {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menu li {
    margin: 10px 15px;
}

.menu li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu li a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.hero {
    background-color: var(--header-footer-bg);
    background-image: linear-gradient(rgba(26, 58, 58, 0.8), rgba(26, 58, 58, 0.8)), url('/imgs/university-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 3.5em;
    margin: 0 0 20px;
    animation: slideIn 1s ease;
}

.hero p {
    font-size: 1.8em;
    margin: 0 0 30px;
    animation: slideIn 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    background-color: var(--cta-button-bg);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--cta-button-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background-color: var(--feature-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--feature-hover-bg);
}

.feature h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--feature-text-color);
}

.feature p {
    color: var(--text-color);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-block;
    background-color: var(--feature-text-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.feature-link:hover {
    background-color: var(--cta-button-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilos del Footer */
footer {
    background-color: var(--header-footer-bg);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-section h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--cta-button-bg);
}

.footer-section p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #e9ecef;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #e9ecef;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--cta-button-bg);
}

/* Estilos para la sección de patrocinadores */
.sponsors-section {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sponsors-section h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--cta-button-bg);
}

.sponsors-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sponsors-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sponsors-links a i {
    font-size: 1.2em;
    color: var(--cta-button-bg);
}

.sponsors-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sponsors-links a:hover i {
    transform: rotate(5deg);
}

.sponsor-divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 10px 0;
    color: #e9ecef;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: #e9ecef;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cta-button-bg);
}

.credits {
    font-size: 0.9em;
    color: #adb5bd;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .sponsors-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .sponsor-divider {
        display: none;
    }
}

.image-gallery {
    margin: 60px 0;
    text-align: center;
}

.image-gallery h2 {
    font-size: 2.5em;
    color: var(--feature-text-color);
    margin-bottom: 30px;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--gallery-shadow);
    transition: all 0.3s ease;
    background-color: var(--gallery-bg);
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px var(--gallery-hover-shadow);
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.5em;
    }

    .cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }

    .feature h2 {
        font-size: 1.5em;
    }

    .image-gallery h2 {
        font-size: 2em;
    }

    .gallery-image {
        width: 200px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }

    .menu li {
        margin: 5px 10px;
    }

    .menu li a {
        font-size: 14px;
        padding: 8px 12px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .cta-button {
        font-size: 0.9em;
        padding: 10px 20px;
    }

    .feature h2 {
        font-size: 1.3em;
    }

    .image-gallery h2 {
        font-size: 1.8em;
    }

    .gallery-image {
        width: 150px;
        height: 120px;
    }
}

#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--button-bg);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#theme-toggle:hover {
    background-color: var(--button-hover-bg);
    transform: scale(1.1);
}

#theme-toggle:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#theme-toggle i {
    pointer-events: none; /* Ensure icon is not clickable, only the button */
}

/* Clase para el borde palpitante */
.READY {
    border: 4px solid var(--feature-text-color);
    border-radius: 10px;
    animation: pulseBorder 2s infinite;
}

/* Animación del borde palpitante */
@keyframes pulseBorder {
    0% {
        border-color: var(--feature-text-color);
        box-shadow: 0 0 8px rgba(46, 205, 196, 0.5);
    }
    50% {
        border-color: var(--cta-button-bg);
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
    }
    100% {
        border-color: var(--feature-text-color);
        box-shadow: 0 0 8px rgba(46, 205, 196, 0.5);
    }
}