/* =========================================
   HERO INSTITUTO GENESIS
========================================= */

main.main-content {
    padding-top: 0;
}

.genesis-hero {
    position: relative;
    margin-top: 0;
    background: #210500;
}

.genesis-hero .carousel-inner {
    min-height: 620px;
}

.genesis-hero .carousel-item {
    height: min(78vh, 760px);
    min-height: 620px;
    position: relative;
    overflow: hidden;
}

.genesis-hero .carousel-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 7s ease;
}

.genesis-hero .carousel-item.active img {
    transform: scale(1.04);
}

.genesis-hero .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(38, 5, 0, 0.88) 0%, rgba(96, 18, 5, 0.68) 44%, rgba(0, 0, 0, 0.28) 100%),
        linear-gradient(0deg, rgba(33, 5, 0, 0.72) 0%, rgba(33, 5, 0, 0) 36%);
}

.genesis-hero .carousel-caption {
    z-index: 2;
    left: max(24px, calc((100vw - 1140px) / 2));
    right: auto;
    bottom: 50%;
    transform: translateY(50%);
    width: min(92vw, 720px);
    padding: 0;
    text-align: left;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffd9d1;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 99px;
    background: #ffffff;
}

.genesis-hero h1,
.genesis-hero h2 {
    color: #ffffff;
    font-size: clamp(2.45rem, 5.2vw, 4.9rem);
    font-weight: 800;
    line-height: 1.04;
    margin: 0 0 18px;
    max-width: 780px;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.32);
}

.genesis-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.72;
    max-width: 640px;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.hero-btn:hover,
.hero-btn:focus {
    transform: translateY(-2px);
}

.hero-btn:focus-visible,
.genesis-hero .carousel-control-prev:focus-visible,
.genesis-hero .carousel-control-next:focus-visible,
.genesis-hero .carousel-indicators button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}

.hero-btn-primary {
    color: #8c1500;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    color: #6f1000;
    background: #fff4f1;
}

.hero-btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
}

.genesis-hero .carousel-control-prev,
.genesis-hero .carousel-control-next {
    width: 74px;
    z-index: 4;
    opacity: 1;
}

.genesis-hero .carousel-control-prev-icon,
.genesis-hero .carousel-control-next-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    background-size: 46%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, background-color 0.22s ease;
}

.genesis-hero .carousel-control-prev:hover .carousel-control-prev-icon,
.genesis-hero .carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.07);
    background-color: rgba(255, 255, 255, 0.3);
}

.genesis-hero .carousel-indicators {
    right: auto;
    left: max(24px, calc((100vw - 1140px) / 2));
    bottom: 34px;
    z-index: 4;
    justify-content: flex-start;
    width: auto;
    margin: 0;
    gap: 9px;
}

.genesis-hero .carousel-indicators button {
    width: 34px !important;
    height: 4px !important;
    border: 0 !important;
    border-radius: 99px;
    background-color: rgba(255, 255, 255, 0.45) !important;
    opacity: 1;
    margin: 0 !important;
    transition: width 0.24s ease, background-color 0.24s ease;
}

.genesis-hero .carousel-indicators .active {
    width: 54px !important;
    background-color: #ffffff !important;
}

@media (max-width: 992px) {
    .genesis-hero .carousel-inner,
    .genesis-hero .carousel-item {
        min-height: 560px;
    }

    .genesis-hero .carousel-item {
        height: 72vh;
    }

    .genesis-hero .carousel-caption {
        left: 32px;
        width: calc(100vw - 64px);
    }

    .genesis-hero .carousel-indicators {
        left: 32px;
    }
}

@media (max-width: 768px) {
    .genesis-hero .carousel-inner,
    .genesis-hero .carousel-item {
        min-height: 540px;
    }

    .genesis-hero .carousel-item {
        height: 68vh;
    }

    .genesis-hero .carousel-caption {
        left: 24px;
        width: calc(100vw - 48px);
    }

    .genesis-hero h1,
    .genesis-hero h2 {
        max-width: 540px;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 24px;
    }

    .hero-btn {
        min-height: 46px;
        padding: 11px 16px;
    }

    .genesis-hero .carousel-control-prev,
    .genesis-hero .carousel-control-next {
        display: none;
    }

    .genesis-hero .carousel-indicators {
        left: 24px;
        bottom: 24px;
    }
}

@media (max-width: 576px) {
    .genesis-hero .carousel-inner,
    .genesis-hero .carousel-item {
        min-height: 560px;
    }

    .genesis-hero .carousel-item {
        height: calc(100vh - 82px);
    }

    .genesis-hero .carousel-caption {
        bottom: 52%;
    }

    .hero-kicker {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .genesis-hero p {
        line-height: 1.58;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
    }
}
