/* ========================================
   HERO SECTION - CARRUSEL
   ======================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-color: #010F20;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* ========================================
   SLIDES
   ======================================== */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   OVERLAY - Gradiente oscuro + Sombra superior
   ======================================== */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(1, 15, 32, 0.85) 0%,
        rgba(1, 15, 32, 0.65) 32%,
        rgba(1, 15, 32, 0.22) 54%,
        rgba(1, 15, 32, 0) 68%,
        rgba(1, 15, 32, 0) 100%
    );
    z-index: 2;
}

/* Sombra superior (del color del navbar) */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(
        to bottom,
        rgba(1, 15, 32, 1) 0%,
        rgba(1, 15, 32, 0.8) 30%,
        rgba(1, 15, 32, 0) 100%
    );
    z-index: 3;
}

/* ========================================
   CONTENIDO DEL HERO
   ======================================== */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 4;
    padding: 135px 0 80px 0;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 80px;
}

/* ========================================
   TEXTOS
   ======================================== */
.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 26px;
    letter-spacing: 0;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: 75px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 30px;
    line-height: 83px;
    letter-spacing: 0;
    max-width: 1292px;
}

.hero-description {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 40px;
    line-height: 26px;
    letter-spacing: 0;
    max-width: 654px;
}

/* ========================================
   BOTONES
   ======================================== */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

/* Botón primario - "Explora nuestros servicios" */
.btn-primary {
    background-color: #010F20;
    color: #FFFFFF;
    border-color: transparent;
}

.btn-primary::after {
    content: '→';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #FFFFFF;
    color: #010F20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::after {
    transform: translateX(5px);
}

/* Botón secundario - "Mira nuestros trabajos" */
.btn-secondary {
    background-color: #FFFFFF;
    color: #010F20;
    border-color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* ========================================
   FLECHAS DE NAVEGACIÓN
   ======================================== */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.hero-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 40px;
}

.hero-arrow-next {
    right: 40px;
}

/* ========================================
   INDICADORES
   ======================================== */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-indicator.active {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    transform: scale(1.3);
}

/* ========================================
   RESPONSIVE - TABLET (1024px y menos)
   ======================================== */
@media screen and (max-width: 1024px) {
    .hero-container {
        padding: 0 60px;
    }

    .hero-title {
        font-size: 60px;
        line-height: 70px;
        max-width: 1000px;
    }

    .hero-subtitle,
    .hero-description {
        font-size: 16px;
        line-height: 24px;
    }

    .hero-description {
        max-width: 550px;
    }

    .btn {
        font-size: 15px;
        padding: 14px 28px;
    }

    .hero-arrow {
        width: 50px;
        height: 50px;
    }

    .hero-arrow-prev {
        left: 30px;
    }

    .hero-arrow-next {
        right: 30px;
    }
}

/* ========================================
   DESKTOP - ESQUINAS RECTAS
   ======================================== */
@media screen and (min-width: 1025px) {
    .btn {
        border-radius: 0;
    }

    .hero-arrow {
        border-radius: 0;
    }

    .hero-indicator {
        border-radius: 0;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL (768px y menos)
   ======================================== */
@media screen and (max-width: 768px) {
    .hero-content {
        padding: 80px 0 60px 0;
        justify-content: center;
        text-align: left;
    }

    .hero-container {
        padding: 0 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 350px;
        font-size: 14px;
        padding: 14px 24px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-indicators {
        bottom: 30px;
    }

    .hero-indicator {
        width: 10px;
        height: 10px;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO (480px y menos)
   ======================================== */
@media screen and (max-width: 480px) {
    .hero-content {
        padding: 70px 0 50px 0;
    }

    .hero-container {
        padding: 0 20px;
    }

    .hero-subtitle {
        font-size: 12px;
        line-height: 18px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 13px;
        line-height: 20px;
        margin-bottom: 25px;
    }

    .btn {
        font-size: 13px;
        padding: 12px 20px;
    }

    .hero-arrow-prev {
        left: 15px;
    }

    .hero-arrow-next {
        right: 15px;
    }

    .hero-indicators {
        bottom: 25px;
        gap: 10px;
    }

    .hero-indicator {
        width: 8px;
        height: 8px;
    }
}

/* ========================================
   ANIMACIONES DE ENTRADA
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide.active .hero-subtitle {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-slide.active .hero-title {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-slide.active .hero-description {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-slide.active .hero-buttons {
    animation: fadeInUp 0.8s ease 0.8s both;
}
