/* ===================================
   HERO SECTION STYLES
   Estilos del hero con carrusel a pantalla completa
   =================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* Compensar el padding-top del body para que el hero ocupe toda la pantalla */
    margin-top: calc(var(--header-height-mobile) * -1);
    /* Asegurar que ocupe exactamente 100vh sin espacios */
    padding: 0;
    margin-bottom: 0;
}

/* Carrusel */
.hero__carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides */
.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow) var(--ease-in-out);
    z-index: var(--z-base);
}

.hero__slide--active {
    opacity: 1;
    z-index: calc(var(--z-base) + 1);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gradientes laterales para efecto de profundidad */
.hero__carousel::before,
.hero__carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: calc(var(--z-base) + 2);
    pointer-events: none;
}

/* Gradiente izquierdo */
.hero__carousel::before {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 20%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 80%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Gradiente derecho */
.hero__carousel::after {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 20%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 80%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Controles de navegación - SIN FONDO CUADRADO */
.hero__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: var(--color-white);
    border: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-all);
    z-index: calc(var(--z-base) + 3);
    padding: 0;
    /* Efecto de sombra sutil en el icono */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero__control:hover {
    transform: translateY(-50%) scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.hero__control:active {
    transform: translateY(-50%) scale(1.05);
}

.hero__control--prev {
    left: var(--spacing-4);
}

.hero__control--next {
    right: var(--spacing-4);
}

.hero__control svg {
    width: 40px;
    height: 40px;
    stroke-width: 2.5;
}

/* Indicadores */
.hero__indicators {
    position: absolute;
    bottom: var(--spacing-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-2);
    z-index: calc(var(--z-base) + 3);
}

.hero__indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition-all);
    padding: 0;
}

.hero__indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.hero__indicator--active {
    background-color: var(--color-primary);
    width: 35px;
}

/* ===================================
   RESPONSIVE - TABLET VERTICAL
   =================================== */

@media screen and (min-width: 768px) {
    .hero {
        /* Compensar el padding-top del body en tablet */
        margin-top: calc(var(--header-height) * -1);
    }

    .hero__carousel::before,
    .hero__carousel::after {
        width: 25%;
    }

    .hero__control {
        width: 70px;
        height: 70px;
    }

    .hero__control svg {
        width: 45px;
        height: 45px;
    }

    .hero__control--prev {
        left: var(--spacing-6);
    }

    .hero__control--next {
        right: var(--spacing-6);
    }

    .hero__indicators {
        bottom: var(--spacing-8);
        gap: var(--spacing-3);
    }

    .hero__indicator {
        width: 14px;
        height: 14px;
    }

    .hero__indicator--active {
        width: 45px;
    }
}

/* ===================================
   RESPONSIVE - DESKTOP
   =================================== */

@media screen and (min-width: 1024px) {
    .hero {
        /* Compensar el padding-top del body en desktop TOMANDO EN CUENTA el solapamiento del logo */
        margin-top: calc(var(--header-height) * -1 - 20px);
    }

    .hero__carousel::before,
    .hero__carousel::after {
        width: 28%;
    }

    .hero__control {
        width: 80px;
        height: 80px;
    }

    .hero__control svg {
        width: 50px;
        height: 50px;
    }

    .hero__control--prev {
        left: var(--spacing-8);
    }

    .hero__control--next {
        right: var(--spacing-8);
    }

    .hero__indicators {
        bottom: var(--spacing-10);
        gap: var(--spacing-4);
    }

    .hero__indicator {
        width: 16px;
        height: 16px;
    }

    .hero__indicator--active {
        width: 50px;
    }
}

/* ===================================
   RESPONSIVE - DESKTOP GRANDE
   =================================== */

@media screen and (min-width: 1280px) {
    .hero {
        /* Compensar aún más por el solapamiento mayor del logo en desktop grande */
        margin-top: calc(var(--header-height) * -1 - 25px);
    }

    .hero__carousel::before,
    .hero__carousel::after {
        width: 30%;
    }

    .hero__control {
        width: 90px;
        height: 90px;
    }

    .hero__control svg {
        width: 55px;
        height: 55px;
    }

    .hero__control--prev {
        left: var(--spacing-10);
    }

    .hero__control--next {
        right: var(--spacing-10);
    }

    .hero__indicators {
        bottom: var(--spacing-12);
    }
}