/* ============================================
   HS HERO - Multi-Slide Carrusel + Book Section
   ============================================ */

.hs-hero-placeholder {
    padding: 80px 20px;
    text-align: center;
    background: #f1f5f9;
    border-radius: 12px;
    margin: 20px 0;
    color: #64748b;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hs-hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    overflow: hidden;
    background: #000;
    border-radius: 0 0 24px 24px;
    margin-bottom: 40px;
}

.hs-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hs-hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.hs-hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Backgrounds */
.hs-hero-slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.hs-hero-slide-video {
    overflow: hidden;
}

.hs-hero-slide-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hs-hero-slide-image {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.hs-hero-slide-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* ============================================
   LIVE SLIDE - Video + Chat Side by Side
   ============================================ */
.hs-hero-slide-live {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: row;
    z-index: 1;
}

.hs-hero-live-video {
    flex: 1;
    position: relative;
    min-width: 0;
}

.hs-hero-live-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.hs-hero-live-chat {
    width: 350px;
    min-width: 300px;
    flex-shrink: 0;
    position: relative;
    background: #0f172a;
    border-left: 1px solid #1e293b;
    overflow: hidden;
}

.hs-hero-live-chat iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    z-index: 2;
}

.hs-hero-chat-fallback {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: #64748b;
    z-index: 1;
    gap: 8px;
}

.hs-hero-chat-fallback i {
    font-size: 32px;
    color: #334155;
    margin-bottom: 8px;
}

.hs-hero-chat-fallback span {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.hs-hero-chat-fallback small {
    font-size: 11px;
    color: #475569;
    line-height: 1.4;
}

/* ============================================
   LIVE SLIDE - Content Overlay
   ============================================ */
.hs-hero-slide-live .hs-hero-slide-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 20px 40px 60px;
    z-index: 3;
    color: white;
    max-width: 600px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    border-radius: 0 0 0 24px;
    pointer-events: auto;
}

/* ============================================
   CONTENT (standard slides)
   ============================================ */
.hs-hero-slide-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 40px 40px 60px;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hs-hero-slide-subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #22d3ee;
    margin-bottom: 12px;
}

.hs-hero-slide-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hs-hero-slide-desc {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin: 0 0 24px 0;
    max-width: 600px;
}

.hs-hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0891b2, #7c3aed);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(8,145,178,0.4);
}

.hs-hero-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(8,145,178,0.5);
}

/* Arrows */
.hs-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs-hero-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.hs-hero-arrow--prev { left: 20px; }
.hs-hero-arrow--next { right: 20px; }

/* Dots */
.hs-hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hs-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hs-hero-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

.hs-hero-dot:hover {
    background: rgba(255,255,255,0.6);
}

/* ============================================
   HERO EDITOR MODAL
   ============================================ */
.hs-hero-editor-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hs-hero-editor-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
}

.hs-hero-editor-box {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: hsSlideUp 0.3s ease;
}

.hs-hero-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.hs-hero-editor-header h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hs-hero-editor-header h3 i {
    color: #0891b2;
}

.hs-hero-editor-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs-hero-editor-close:hover {
    background: #ef4444;
    color: white;
}

.hs-hero-editor-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.hs-hero-editor-list {
    width: 320px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.hs-hero-editor-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.hs-hero-editor-add-btn {
    padding: 6px 12px;
    background: #0891b2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hs-hero-editor-add-btn:hover {
    background: #0e7490;
}

.hs-hero-editor-slides {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.hs-hero-editor-slide-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.hs-hero-editor-slide-item:hover {
    background: #e2e8f0;
}

.hs-hero-editor-slide-thumb {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0f172a;
}

.hs-hero-editor-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-hero-editor-slide-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 16px;
}

.hs-hero-editor-slide-info {
    flex: 1;
    min-width: 0;
}

.hs-hero-editor-slide-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-hero-editor-slide-type {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.hs-hero-editor-slide-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.hs-hero-editor-slide-item:hover .hs-hero-editor-slide-actions {
    opacity: 1;
}

.hs-hero-editor-slide-actions button {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.hs-hero-editor-slide-actions button:hover {
    background: #ef4444;
    color: white;
}

/* Reorder buttons */
.hs-hero-editor-slide-actions button[title="Subir"]:hover,
.hs-hero-editor-slide-actions button[title="Bajar"]:hover {
    background: #0891b2;
    color: white;
}

.hs-hero-editor-empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.hs-hero-editor-form {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.hs-hero-editor-form h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #0f172a;
}

.hs-hero-form-group {
    margin-bottom: 16px;
}

.hs-hero-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
}

.hs-hero-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hs-hero-slider {
        aspect-ratio: 16 / 9;
        max-height: 60vh;
        border-radius: 0 0 16px 16px;
    }
    
    .hs-hero-slide-content {
        padding: 30px 20px 50px;
    }
    
    .hs-hero-slide-title {
        font-size: 28px;
    }
    
    .hs-hero-slide-desc {
        font-size: 15px;
    }
    
    .hs-hero-slide-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .hs-hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .hs-hero-arrow--prev { left: 10px; }
    .hs-hero-arrow--next { right: 10px; }
    
    .hs-hero-editor-body {
        flex-direction: column;
    }
    
    .hs-hero-editor-list {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    /* Live chat: stack vertically on mobile */
    .hs-hero-slide-live {
        flex-direction: column;
    }
    
    .hs-hero-live-video {
        flex: none;
        height: 60%;
    }
    
    .hs-hero-live-chat {
        width: 100%;
        height: 40%;
        border-left: none;
        border-top: 1px solid #1e293b;
    }
    
    .hs-hero-slide-live .hs-hero-slide-content {
        padding: 15px 20px 40px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hs-hero-slide-title {
        font-size: 22px;
    }
    
    .hs-hero-slide-subtitle {
        font-size: 12px;
    }
    
    .hs-hero-slide-desc {
        font-size: 14px;
    }
}
