﻿/* Carrusel full width, alto adaptable */
.hero-carrusel-wrapper {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    margin: 0 auto;
    background: #181c23;
    border-radius: 0;
    box-shadow: none;
}

/* Slide base */
.hero-carrusel-slide {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity .7s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

    .hero-carrusel-slide.active {
        opacity: 1;
        z-index: 2;
    }

/* Imagen background */
.hero-carrusel-img {
    width: 100vw;
    height: 100vh;
    min-height: 540px;
    max-height: 100vh;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-carrusel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(22,26,35,0.55) 40%,rgba(28,37,55,0.20) 100%);
    z-index: 2;
}

.hero-carrusel-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: left;
    max-width: 650px;
    margin-left: 7vw;
}

.hero-carrusel-title {
    font-family: 'Roboto', Arial, Helvetica, sans-serif; /* Esto es lo correcto */
    font-size: clamp(2.5rem, 7vw, 4.2rem);
    font-weight: 700;
    margin-bottom: 1.1rem;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.hero-carrusel-subtitle {
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    color: #ffd600;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0,0,0,0.10);
}

.hero-carrusel-desc {
    font-size: 1.22rem;
    margin-bottom: 2rem;
    color: #e8e8e8;
}

.hero-carrusel-btn {
    background: goldenrod;
    color: #1a2433;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75em 2.4em;
    border: none;
    border-radius: 2em;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    text-decoration: none;
    transition: background .2s, color .2s, box-shadow .2s;
}

    .hero-carrusel-btn:hover, .hero-carrusel-btn:focus {
        background: #ffb400;
        color: #111;
        box-shadow: 0 8px 28px rgba(180,140,30,0.18);
    }

/* Flechas */
.hero-carrusel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    background: rgba(24,28,44,0.66);
    color: #ffd600;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    box-shadow: 0 4px 18px rgba(20,24,44,0.09);
    outline: none;
    opacity: 0.93;
}

    .hero-carrusel-arrow:hover, .hero-carrusel-arrow:focus {
        background: #ffd600;
        color: #222;
        opacity: 1;
    }

    .hero-carrusel-arrow.prev {
        left: 2vw;
    }

    .hero-carrusel-arrow.next {
        right: 2vw;
    }

/* Indicadores */
.hero-carrusel-indicators {
    position: absolute;
    left: 50%;
    bottom: 5vh;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 13px;
}

.hero-carrusel-indicator-dot {
    width: 13px;
    height: 13px;
    background: rgba(255,255,255,0.65);
    border: 2.2px solid #ffd600;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

    .hero-carrusel-indicator-dot.active {
        background: #ffd600;
        border-color: #fff;
        box-shadow: 0 2px 8px rgba(180,140,30,0.17);
    }

/* Responsive */
@media (max-width: 900px) {
    .hero-carrusel-content {
        margin-left: 2vw;
    }

    .hero-carrusel-title {
        font-size: 2.1rem;
    }

    .hero-carrusel-img {
        min-height: 210px;
    }
}

@media (max-width: 600px) {
    .hero-carrusel-content {
        margin-left: 0;
        margin-top: 2vw;
        max-width: 97vw;
        text-align: center;
    }

    .hero-carrusel-title {
        font-size: 1.18rem;
    }

    .hero-carrusel-desc, .hero-carrusel-subtitle {
        font-size: 1rem;
    }

    .hero-carrusel-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
}
