/* ═══════════════════════════════════════════════════════════════════
   HERO SLIDER — basado en Swiper.js
   Reemplaza Revolution Slider manteniendo misma composición visual
═══════════════════════════════════════════════════════════════════ */

.th-hero-slider {
    position: relative;
    background: var(--bg-darkest);
    overflow: hidden;
}

/* Fondo con fondo-hero.jpg + gradiente encima */
.th-hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/web/images/illustrations/fondo-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* Slide */
.swiper-slide.th-slide {
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}
.th-slide-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

/* Texto del slide */
.th-slide-content {}
.th-slide-label {
    display: inline-block;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 14px;
}
.th-slide-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
}
.th-slide-title span {
    color: var(--cyan);
}
.th-slide-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 30px;
    line-height: 1.55;
}
.th-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--cyan);
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 12px 28px;
    border-radius: 4px;
    transition: background .2s, color .2s;
}
.th-slide-cta:hover {
    background: var(--cyan);
    color: var(--bg-darkest);
}
.th-slide-cta svg { transition: transform .2s; }
.th-slide-cta:hover svg { transform: translateX(3px); }

/* Imagen del slide */
.th-slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.th-slide-image img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
    animation: float-img 4s ease-in-out infinite;
}
@keyframes float-img {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Flechas Swiper personalizadas */
.swiper-button-prev,
.swiper-button-next {
    width: 44px;
    height: 44px;
    background: rgba(19,206,237,0.15);
    border: 1px solid rgba(19,206,237,0.4);
    border-radius: 50%;
    color: var(--cyan) !important;
    transition: background .2s;
}
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px !important;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(19,206,237,0.3);
}

/* Paginación */
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.4) !important;
    width: 8px !important;
    height: 8px !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active {
    background: var(--cyan) !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .th-slide-inner {
        grid-template-columns: 1fr;
    }
    .th-slide-image {
        display: none;
    }
    .th-slide-title {
        font-size: 26px;
    }
    .swiper-slide.th-slide {
        min-height: 380px;
    }
}
