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

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #1C3C7B;
    --accent-hover: #60a5fa;
    --border-color: #e5e7eb;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --accent-color: #E84E1E;
    --accent-hover: #ff916f;
    --border-color: #334155;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-hover);
    outline-offset: 2px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease-in;
}

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

.theme-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--border-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    stroke: var(--text-color);
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(20deg);
}

/* Asegurar que todos los iconos estén ocultos por defecto excepto el activo */
.theme-toggle svg {
    display: none;
}

.logo-container {
    margin-bottom: 40px;
    animation: slideDown 0.8s ease-out;
}

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

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 0.8s ease-out 0.2s both;
}

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

.subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--border-color);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 40px;
    font-weight: 500;
    animation: slideUp 0.8s ease-out 0.6s both;
}

.gear-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.events-section {
    margin-top: 50px;
    animation: slideUp 0.8s ease-out 0.8s both;
}

#events-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 35px 0;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.events-list {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-item-wrapper {
    list-style: none;
}

.event-card {
    display: flex;
    background: var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    align-items: center;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.event-image-wrapper {
    position: relative;
    display: block;
    width: 35%;
    min-width: 35%;
    height: 100%;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    aspect-ratio: 1 / 1;
}

.event-card:hover .event-image {
    transform: scale(1.1);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: opacity 0.3s ease;
}

.event-card:hover .event-overlay {
    opacity: 0.7;
}

.event-content {
    padding: 24px;
    background: var(--border-color);
}

.event-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.event-card:hover .event-name {
    color: var(--accent-color);
}

.event-description {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.event-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.event-card:hover .event-cta {
    transform: translateX(5px);
    color: var(--accent-hover);
}

.social-section {
    margin-top: 40px;
    animation: slideUp 0.8s ease-out 0.9s both;
}

#social-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-color);
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-link:hover::before {
    opacity: 0.2;
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover svg {
    transform: scale(1.2) rotate(5deg);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Instagram - Gradiente característico */
.social-link.instagram {
    background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #FFDC80);
    background-size: 200% 200%;
    color: white;
    animation: gradientShift 8s ease infinite;
}

.social-link.instagram:hover {
    background-position: right center;
    box-shadow: 0 8px 30px rgba(225, 48, 108, 0.5);
}

/* Facebook - Azul característico */
.social-link.facebook {
    background: linear-gradient(135deg, #1877F2, #0C63D4);
    color: white;
}

.social-link.facebook:hover {
    background: linear-gradient(135deg, #1877F2, #0A4EAD);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

/* YouTube - Rojo característico */
.social-link.youtube {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: white;
}

.social-link.youtube:hover {
    background: linear-gradient(135deg, #FF0000, #990000);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: left center;
    }
    50% {
        background-position: right center;
    }
}

.contact-section {
    margin-top: 40px;
    padding: 30px;
    background: var(--border-color);
    border-radius: 16px;
    animation: slideUp 0.8s ease-out 1.1s both;
}

#contact-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.email-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .logo {
        max-width: 300px;
    }

    #events-heading {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .events-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card {
        max-width: 100%;
    }

    .event-content {
        padding: 20px;
    }

    .event-name {
        font-size: 1.1rem;
    }

    .event-description {
        font-size: 0.9rem;
    }

    .event-cta {
        font-size: 0.85rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .social-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 16px 24px;
    }

    .contact-section {
        padding: 20px;
    }

    .email-link {
        font-size: 1rem;
    }
}
