/* ===================================
   Variables CSS
   =================================== */
:root {
    --color-primary: #003d7a;
    --color-secondary: #00a9e0;
    --color-accent: #00d4aa;
    --color-dark: #1a1a2e;
    --color-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #003d7a 0%, #00558f 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 61, 122, 0.95) 0%, rgba(0, 85, 143, 0.95) 100%);
    --gradient-accent: linear-gradient(135deg, #00a9e0 0%, #00d4aa 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* ===================================
   Reset y Base
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===================================
   Navegación
   =================================== */
.navbar {
    background: linear-gradient(to bottom, rgba(0, 61, 122, 0.95), rgba(0, 61, 122, 0.9));
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(0, 61, 122, 0.98);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    min-height: 80vh; /* más proporcional a la imagen */
    background: url('../img/banner_semilleros.webp') no-repeat center center;
    background-size: cover; /* mantiene proporción y llena horizontalmente */
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35); /* oscurece un poco para legibilidad */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 2px;
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1 {
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle h2 {
    background: rgba(0, 169, 224, 0.85);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle h2 {
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        background-position: center top;
        background-attachment: scroll;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-subtitle h2 {
        font-size: 1rem;
    }
}

.event-details {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.4);
}

.btn-outline-light {
    border: 2px solid #fff;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: #fff;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   Feature Cards
   =================================== */
.feature-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    margin: 0;
}

/* ===================================
   Info Box
   =================================== */
.info-box {
    background: linear-gradient(135deg, #003d7a 0%, #00558f 100%);
    padding: 3rem;
    border-radius: 20px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.info-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon-large i {
    font-size: 4rem;
    color: var(--color-accent);
}

.info-box h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===================================
   Video Cards
   =================================== */
.video-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 1.5rem;
}

.video-info h4 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.video-info p {
    margin-bottom: 0.5rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact-item {
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.contact-item h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-item a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-accent);
    transform: translateY(-5px);
    color: #fff;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-dark);
    color: #fff;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle h2 {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
}

.filtro-modalidad.activo {
    background: var(--color-accent);
    color: #fff;
}
.feature-card.filtro-modalidad {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.feature-card.filtro-modalidad:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

.feature-card.filtro-modalidad.active {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}