/*
═══════════════════════════════════════════════════════════════════════════════
    HERO SECTION CUSTOM - Hero Section Personalizado JPG
    
    Background personalizado + Contenido visible
═══════════════════════════════════════════════════════════════════════════════
*/

/* ============================================================================
   CONTENEDOR PRINCIPAL DEL HERO
   ============================================================================ */

.th-hero-wrapper.hero-5 {
    background-image: url('/JPG/assets/img/backgroundjpg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 550px;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 80px 0 50px 0;
    overflow: hidden;
}

/* Overlay oscuro para mejorar legibilidad del texto */
.th-hero-wrapper.hero-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 60, 0.35);
    z-index: 1;
    pointer-events: none;
}

/* ============================================================================
   CONTENEDOR INTERNO DEL HERO
   ============================================================================ */

.th-hero-wrapper.hero-5 .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.th-hero-wrapper.hero-5 .container {
    position: relative;
    z-index: 2;
}

/* ============================================================================
   CONTENIDO DEL HERO (Texto)
   ============================================================================ */

.th-hero-wrapper.hero-5 .hero-style5 {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 750px;
    margin: 0;
    padding-left: 40px;
    padding-top: 20px;
}

.th-hero-wrapper.hero-5 .sub-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
    opacity: 0.95;
}

.th-hero-wrapper.hero-5 .hero-title {
    color: #FFFFFF !important;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
}

.th-hero-wrapper.hero-5 .hero-title .title2 {
    color: #FFFFFF;
}

.th-hero-wrapper.hero-5 .hero-text {
    color: #FFFFFF !important;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: 0;
    margin-right: 0;
    opacity: 0.95;
}

.th-hero-wrapper.hero-5 .btn-group {
    position: relative;
    z-index: 10;
    margin-top: 30px;
}

/* ============================================================================
   IMÁGENES DEL HERO
   ============================================================================ */

.th-hero-wrapper.hero-5 .th-hero-image {
    position: absolute;
    top: 80px;
    right: 40px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.th-hero-wrapper.hero-5 .hero-img,
.th-hero-wrapper.hero-5 .hero-img2 {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
}

/* Imagen 1 - Laptop */
.th-hero-wrapper.hero-5 .hero-img {
    width: 280px;
    height: auto;
}

.th-hero-wrapper.hero-5 .hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Imagen 2 - Círculo */
.th-hero-wrapper.hero-5 .hero-img2 {
    width: 260px;
    height: auto;
}

.th-hero-wrapper.hero-5 .hero-img2 img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================================
   OCULTAR ELEMENTOS NO NECESARIOS
   ============================================================================ */

.th-hero-wrapper.hero-5 .hero-5-shape-box {
    display: none;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1199px) {
    .th-hero-wrapper.hero-5 .hero-title {
        font-size: 40px;
    }

    .th-hero-wrapper.hero-5 .hero-style5 {
        padding-left: 30px;
        max-width: 650px;
    }

    .th-hero-wrapper.hero-5 .th-hero-image {
        right: 30px;
        gap: 15px;
    }

    .th-hero-wrapper.hero-5 .hero-img {
        width: 220px;
    }

    .th-hero-wrapper.hero-5 .hero-img2 {
        width: 200px;
    }
}

@media (max-width: 991px) {
    .th-hero-wrapper.hero-5 {
        min-height: 500px;
        padding: 70px 0 50px 0;
    }

    .th-hero-wrapper.hero-5 .hero-title {
        font-size: 36px;
    }

    .th-hero-wrapper.hero-5 .hero-text {
        font-size: 16px;
    }

    .th-hero-wrapper.hero-5 .hero-style5 {
        padding-left: 25px;
        max-width: 550px;
    }

    .th-hero-wrapper.hero-5 .th-hero-image {
        right: 20px;
        gap: 12px;
        top: 70px;
    }

    .th-hero-wrapper.hero-5 .hero-img {
        width: 180px;
    }

    .th-hero-wrapper.hero-5 .hero-img2 {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .th-hero-wrapper.hero-5 {
        min-height: 450px;
        padding: 60px 0 40px 0;
    }

    .th-hero-wrapper.hero-5 .hero-title {
        font-size: 28px;
    }

    .th-hero-wrapper.hero-5 .hero-text {
        font-size: 15px;
    }

    .th-hero-wrapper.hero-5 .sub-title {
        font-size: 16px;
    }

    .th-hero-wrapper.hero-5 .hero-style5 {
        padding-left: 20px;
        max-width: 450px;
    }

    /* Cambiar imágenes a disposición vertical en tablet */
    .th-hero-wrapper.hero-5 .th-hero-image {
        flex-direction: column;
        right: 15px;
        gap: 10px;
        top: 60px;
    }

    .th-hero-wrapper.hero-5 .hero-img {
        width: 140px;
    }

    .th-hero-wrapper.hero-5 .hero-img2 {
        width: 120px;
    }
}

@media (max-width: 576px) {
    .th-hero-wrapper.hero-5 {
        min-height: 450px;
    }

    .th-hero-wrapper.hero-5 .hero-title {
        font-size: 24px;
    }

    .th-hero-wrapper.hero-5 .hero-text {
        font-size: 14px;
    }

    .th-hero-wrapper.hero-5 .hero-style5 {
        padding-left: 15px;
    }

    /* Ocultar imágenes en móviles pequeños */
    .th-hero-wrapper.hero-5 .th-hero-image {
        display: none;
    }
}

/* ============================================================================
   CONTROLES DE NAVEGACIÓN DEL SLIDER (Flechas y Paginación)
   ============================================================================ */

.th-hero-wrapper.hero-5 .th-swiper-custom {
    position: absolute;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    pointer-events: none;
}

.th-hero-wrapper.hero-5 .th-swiper-custom .slider-arrow {
    pointer-events: auto;
}

.th-hero-wrapper.hero-5 .th-swiper-custom .slider-pagination {
    pointer-events: auto;
}

/* Ajustes responsive para los controles */
@media (max-width: 991px) {
    .th-hero-wrapper.hero-5 .th-swiper-custom {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .th-hero-wrapper.hero-5 .th-swiper-custom {
        padding: 0 15px;
    }
}

/* Ocultar subtítulos en el hero section */
.th-hero-wrapper.hero-5 .sub-title {
    display: none !important;
}

/* Ocultar párrafos de texto adicionales */
.th-hero-wrapper.hero-5 .hero-text {
    display: none !important;
}