/* ========================================
   HERO SECTION - INICIO
   ======================================== */
.hero-section {
    position: relative;
    margin-top: -74px;
    min-height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: min(920px, calc(100% - 2rem));
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 230, 118, 0.28), transparent 45%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.58) 100%);
    z-index: 1;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.25rem 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-overlay h1 {
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.hero-overlay p {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 740px;
    margin: 0 auto;
}

.hero-actions {
    margin-top: 1.65rem;
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-btn-main,
.hero-btn-alt {
    min-width: 190px;
}

.hero-btn-alt {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.82);
}

.hero-btn-alt:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: #fff;
}

.hero-scroll {
    position: absolute;
    bottom: 1.15rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.scroll-btn i {
    font-size: 1.5rem;
    margin-top: 0.3rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Circuito */
.circuito-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.circuito-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.circuito-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    padding: 6rem 2rem;
    color: white;
    text-align: center;
}

.circuito-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.circuito-placeholder p {
    font-size: 1.3rem;
    font-weight: 300;
}

/* Galería */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    height: 250px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem 0.75rem 0.75rem;
    font-size: 0.85rem;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 2.5rem;
}

.gallery-placeholder p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
    }

    .hero-overlay {
        top: 45%;
    }

    .hero-actions {
        gap: 0.6rem;
    }

    .hero-btn-main,
    .hero-btn-alt {
        width: 100%;
        max-width: 320px;
    }
}
