/**
 * Hero Slider PRO - Estilos Estructurales
 * 
 * CSS crítico para garantizar la paridad visual entre Editor y Frontend.
 * Los estilos personalizables se gestionan mediante controles de Elementor.
 * 
 * @package AgenciaCore
 * @since 1.0.0
 */

/* ========================================================================
   ESTRUCTURA BASE DEL SLIDER
   ======================================================================== */

.hero-slider-pro {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: visible !important;
    max-width: none !important;
    min-height: 80vh;
    /* Prevent CLS before JS/Elementor loads */
}

/* Liberación de contenedores Elementor */
.e-con:has(.hero-slider-pro),
.e-con.agencia-e-con-breakout,
.agencia-section-breakout,
.agencia-container-breakout {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-widget-agencia_hero_slider_pro .elementor-widget-container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.agencia-column-breakout,
.agencia-widget-wrap-breakout {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Clase aplicada por JS al widget container */
.agencia-widget-container-breakout {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hero-slider-pro__viewport {
    overflow: hidden;
    width: 100%;
}

.hero-slider-pro__container {
    display: flex;
    backface-visibility: hidden;
    touch-action: pan-y pinch-zoom;
    will-change: transform;
}

.hero-slider-pro__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ========================================================================
   BREAKOUT: ANCHO COMPLETO PROFESIONAL
   ======================================================================== */

/* Breakout CSS handled via universal 100vw strategy */

/* ========================================================================
   FONDOS (Imagen / Video / Color)
   ======================================================================== */

.hero-slider-pro__bg-image,
.hero-slider-pro__bg-video,
.hero-slider-pro__bg-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider-pro__bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Responsive Img Support */
    object-fit: cover;
    object-position: center;
}

.hero-slider-pro__bg-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-slider-pro__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* ========================================================================
   CONTENIDO DEL SLIDE
   ======================================================================== */

.hero-slider-pro__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
    color: #ffffff;
}

.hero-slider-pro__subtitle {
    display: block;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-slider-pro__title {
    margin: 0 0 25px;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.hero-slider-pro__description {
    margin-bottom: 40px;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 700px;
    color: #ffffff;
    /* Contraste máximo WCAG */
    /* text-shadow removed per user request */
}

/* ========================================================================
   CHECKLIST
   ======================================================================== */

.hero-slider-pro__checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.hero-slider-pro__checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.hero-slider-pro__checklist-icon {
    flex-shrink: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.hero-slider-pro__checklist-icon i,
.hero-slider-pro__checklist-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    color: inherit;
    display: block;
}

.hero-slider-pro__checklist-text {
    font-size: 16px;
    line-height: 1.5;
}

/* ========================================================================
   BOTONES CTA
   ======================================================================== */

.hero-slider-pro__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.hero-slider-pro__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
    outline: none;
}

.hero-slider-pro__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.hero-slider-pro__button--primary {
    background-color: #6366f1;
    color: #ffffff;
}

.hero-slider-pro__button--secondary {
    background: transparent;
    color: #ffffff;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-slider-pro__button-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), fill 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-slider-pro__button-icon i,
.hero-slider-pro__button-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    /* Ensure SVG fills with current text color */
    color: inherit;
    transition: inherit;
    /* Inherit parent transition */
}

/* ========================================================================
   NAVEGACIÓN: FLECHAS
   ======================================================================== */

.hero-slider-pro__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.hero-slider-pro__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero-slider-pro__arrow--blur {
    backdrop-filter: blur(10px);
}

.hero-slider-pro__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hero-slider-pro__arrow:not(:disabled):hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.hero-slider-pro__arrow svg {
    width: 24px;
    height: 24px;
}

/* Estilos de flechas */
.hero-slider-pro__arrows--circle .hero-slider-pro__arrow {
    border-radius: 50%;
}

.hero-slider-pro__arrows--square .hero-slider-pro__arrow {
    border-radius: 0;
}

.hero-slider-pro__arrows--rounded .hero-slider-pro__arrow {
    border-radius: 8px;
}

.hero-slider-pro__arrows--minimal .hero-slider-pro__arrow {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-slider-pro__arrows--minimal .hero-slider-pro__arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ========================================================================
   NAVEGACIÓN: DOTS
   ======================================================================== */

.hero-slider-pro__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.hero-slider-pro__dots--inside {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
}

.hero-slider-pro__dots--outside {
    position: relative;
    margin-top: 20px;
}

.hero-slider-pro__dot {
    width: 14px;
    /* Aumentado para accesibilidad */
    height: 14px;
    /* Aumentado para accesibilidad */
    border-radius: 50%;
    border: none;
    padding: 0;
    margin: 5px;
    /* Separación extra */
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
}

/* Área táctil extendida invisible para móviles (WCAG Touch Target) */
.hero-slider-pro__dot::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
}

.hero-slider-pro__dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-slider-pro__dot.is-selected {
    background: #ffffff;
    transform: scale(1.3);
}

/* ========================================================================
   TARJETAS FLOTANTES
   ======================================================================== */

.hero-slider-pro__feature-cards {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 5;
    max-width: 300px;
}

.hero-slider-pro__feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-slider-pro__feature-card:hover {
    transform: translateX(-5px);
}

.hero-slider-pro__feature-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: #667eea;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-pro__feature-card[style*="flex-direction: row"] {
    display: flex;
    align-items: center;
}

.hero-slider-pro__feature-card[style*="flex-direction: row"] .hero-slider-pro__feature-card-icon {
    margin-bottom: 0;
    margin-right: 15px;
}

.hero-slider-pro__feature-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hero-slider-pro__feature-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.hero-slider-pro__feature-card-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}

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

@media (max-width: 1024px) {
    .hero-slider-pro__feature-cards {
        position: static;
        transform: none;
        flex-direction: row;
        max-width: 100%;
        margin-top: 30px;
        padding: 0 20px;
    }

    .hero-slider-pro__feature-card {
        flex: 1;
        min-width: 200px;
    }

    .hero-slider-pro__title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-slider-pro__content {
        padding: 30px 15px;
    }

    .hero-slider-pro__title {
        font-size: 28px;
    }

    .hero-slider-pro__subtitle {
        font-size: 16px;
    }

    .hero-slider-pro__description {
        font-size: 16px;
    }

    .hero-slider-pro__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-slider-pro__button {
        width: 100%;
        justify-content: center;
    }

    .hero-slider-pro__feature-cards {
        flex-direction: column;
    }

    .hero-slider-pro__arrows {
        padding: 0 10px;
    }

    .hero-slider-pro__arrow {
        width: 40px;
        height: 40px;
    }

    .hero-slider-pro__arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slider-pro__title {
        font-size: 24px;
    }

    .hero-slider-pro__subtitle {
        font-size: 14px;
    }

    .hero-slider-pro__description {
        font-size: 14px;
    }

    .hero-slider-pro__button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ========================================================================
   EDITOR DE ELEMENTOR
   ======================================================================== */

.elementor-editor-active .hero-slider-pro__slide {
    min-height: 400px;
}

/* ========================================================================
   ACCESIBILIDAD
   ======================================================================== */

.hero-slider-pro__arrow:focus-visible,
.hero-slider-pro__dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Reducir movimiento para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .hero-slider-pro * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}