﻿
.hero-section {
    position: relative;
    width: 100%;
    height: min(90vh, 760px);
    min-height: 520px;
    padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.35));
    z-index: -1;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    filter: brightness(0.25);
    object-fit: cover;
}


.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.8vw, 1.75rem);
    align-items: center;
    color: #f9fafb;
    text-align: center;
    text-shadow: none;
    /*max-width: min(680px, 100%);*/
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 1.75rem;
    /*background: linear-gradient(160deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.55));*/
    /*box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.55);*/
    animation: heroFadeIn 700ms ease-out both;
}

.hero-content h1,
.hero-content p {
    margin: 0;
}

.hero-content p {
    color: #e2e8f0;
    font-size: clamp(1.05rem, 2.1vw, 1.25rem);
    line-height: 1.6;
}

.hero-content .layout-cta-primary {
    min-height: 3.25rem;
    padding-inline: clamp(1.75rem, 4vw, 3rem);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*INICIO HERO CONTENT*/


.carousel-slide-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}

    .carousel-slide-home.active {
        opacity: 1;
        z-index: 2;
    }


.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3;
}

    .carousel-controls button {
        background-color: transparent;
        border: none;
        color: #FFFFFF77;
        font-size: 2rem;
        padding: 0.5rem .75rem;
        cursor: pointer;
        border-radius: 50%;
        transition: background 0.3s, transform 0.3s;
        margin: 0;
    }

        .carousel-controls button:hover {
            background-color: rgba(0, 0, 0, 0.8);
            transform: translateY(-2px);
        }

        .carousel-controls button:focus-visible {
            outline: 3px solid rgba(99, 102, 241, 0.85);
            outline-offset: 3px;
            box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.55);
            background-color: rgba(15, 23, 42, 0.85);
            color: #f8fafc;
        }


.carousel-indicators {
    position: absolute;
    /*bottom: 20px;*/

    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    bottom: clamp(1.5rem, 5vw, 3rem);
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
}

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: none;
        background-color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background-color 0.3s;
        padding: .5rem;
    }

        .carousel-indicators button.active {
            background-color: white;
        }

        .carousel-indicators button:focus-visible {
            outline: 3px solid rgba(255, 255, 255, 0.85);
            outline-offset: 2px;
            background-color: #ffffff;
        }

@media (max-width: 1200px) {
    .hero-section {
        height: min(92vh, 700px);
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: auto;
        min-height: 500px;
        padding-block: clamp(3rem, 9vw, 4.5rem);
    }

    .hero-content {
        max-width: min(560px, 100%);
    }

    .carousel-controls {
        top: auto;
        bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        align-items: flex-end;
        text-align: left;
        padding-inline: clamp(1.5rem, 7vw, 2.5rem);
    }

    .hero-content {
        align-items: flex-start;
        text-align: left;
        padding: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-content .layout-cta-primary {
        width: 100%;
        justify-content: center;
    }

    .carousel-controls button {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 420px;
        padding-block: clamp(2.5rem, 12vw, 3.5rem);
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.25;
    }

    .hero-content p {
        font-size: clamp(1rem, 4.6vw, 1.1rem);
    }

    .carousel-controls {
        bottom: 1rem;
    }

    .carousel-indicators {
        bottom: 0.75rem;
        gap: 0.75rem;
    }

    .carousel-indicators button {
        padding: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content {
        animation: none;
    }

    .carousel-slide-home {
        transition: none;
    }

    .carousel-controls button,
    .carousel-indicators button {
        transition: none;
    }
}


/*FIM HERO CONTENT*/

