/* ==========================================================================
   SC PUBLICIS - RESPONSIVE & UX IMPROVEMENTS (MOBILE FIRST - LIGHT & VIDEO THEME)
   ========================================================================== */

:root {
    --red-primary: #e74c3c;
    --dark-bg: #0d1117;
    --card-bg: #161b22;
    --text-light: #f0f6fc;
    --border-color: #30363d;
}

/* --------------------------------------------------------------------------
   1. LOGO Y HEADER (Navegación Limpia y Responsiva)
   -------------------------------------------------------------------------- */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2328 !important;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .header-logo-img {
        height: 30px;
    }
    .logo-text {
        font-size: 1.15rem;
    }
}

/* --------------------------------------------------------------------------
   2. HERO CON VIDEO MP4 A PANTALLA COMPLETA & ALTO CONTRASTE
   -------------------------------------------------------------------------- */
.hero,
.hero-video-theme {
    position: relative;
    padding: 6rem 1rem 4rem;
    overflow: hidden;
    z-index: 1;
    background-color: #0d1117;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* Contenedor que fuerza el video a ocupar el 100% de la sección */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-video {
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Overlay para garantizar contraste de lectura */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.88) 0%, rgba(13, 17, 23, 0.70) 100%);
    z-index: 0;
}

.hero .container,
.hero-video-theme .container {
    position: relative;
    z-index: 2;
}

/* Tipografía del Hero */
.hero h2,
.hero-video-theme h2 {
    color: #ffffff !important;
    font-size: 2.8rem;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle,
.hero-subtitle span {
    color: #f0f6fc !important;
}

.stat-label {
    color: #c9d1d9 !important;
    font-weight: 700;
}

.highlight-red {
    color: var(--red-primary) !important;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   3. FORMULARIO EN TARJETA CLARA (Clean Glassmorphism)
   -------------------------------------------------------------------------- */
.hero-form-container-light,
.hero-form-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-header-light h3,
.form-header h3 {
    color: #0f172a !important;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    text-align: center;
}

.form-header-light p,
.form-header p {
    color: #64748b !important;
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.clean-lead-form .input-group,
.modern-lead-form .input-group {
    margin-bottom: 1rem;
}

.clean-lead-form input,
.clean-lead-form select,
.clean-lead-form textarea,
.modern-lead-form input,
.modern-lead-form select,
.modern-lead-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.clean-lead-form input:focus,
.clean-lead-form select:focus,
.clean-lead-form textarea:focus,
.modern-lead-form input:focus,
.modern-lead-form select:focus,
.modern-lead-form textarea:focus {
    background: #ffffff;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.hero-submit-btn-clean,
.hero-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--red-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3);
    transition: all 0.25s ease;
}

.hero-submit-btn-clean:hover,
.hero-submit-btn:hover {
    background: #d63031;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.form-note-light,
.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #64748b;
}

/* ========== CAJÓN DE BENEFICIO / GANCHO EN HERO ========== */
.bono-soporte-box-light {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid var(--red-primary, #e74c3c) !important;
    border-radius: 10px !important;
    padding: 0.9rem 1.2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    margin-top: 1.5rem !important;
}

.bono-soporte-box-light .bono-texto,
.bono-soporte-box-light span {
    color: #0f172a !important; /* Fuerza color oscuro legible */
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.bono-soporte-box-light i {
    color: var(--red-primary, #e74c3c) !important;
    font-size: 1.1rem !important;
}

/* --------------------------------------------------------------------------
   4. SECCIÓN: CARDS EXPANDIBLES (¿Tu sitio te ayuda a vender?)
   -------------------------------------------------------------------------- */
.problem-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.problem-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.problem-card-header {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #ffffff;
}

.problem-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #1f2328;
}

.problem-card-header .icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--red-primary);
    transition: transform 0.3s ease;
}

.problem-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
    padding: 0 1.2rem;
    background-color: #f6f8fa;
}

.problem-card.active .problem-card-content {
    max-height: 300px;
    padding: 1rem 1.2rem;
}

.problem-card.active .problem-card-header .icon {
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   5. PORTFOLIO & REELS (Slider Horizontal Responsive)
   -------------------------------------------------------------------------- */
.portfolio-grid-horizontal {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.5rem 1.5rem 0.5rem;
}

.portfolio-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    min-width: 270px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 769px) {
    .portfolio-grid-horizontal {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        overflow-x: visible;
    }
    
    .portfolio-item {
        flex: initial;
    }
}

/* --------------------------------------------------------------------------
   6. CÓMO TRABAJAMOS: LÍNEA DE TIEMPO ANIMADA
   -------------------------------------------------------------------------- */
.process-timeline {
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    max-width: 650px;
    margin: 3rem auto;
    padding-left: 2.5rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 15px;
    bottom: 25px;
    width: 3px;
    background: #eef2f6;
    z-index: 1;
}

.process-step {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    z-index: 2;
}

.process-step.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.process-step .step-number,
.process-step .process-number {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 0 0 4px #ffffff, 0 2px 8px rgba(0,0,0,0.1);
}

.process-step .step-content {
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.process-step .step-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #1f2328;
}

.process-step .step-content p {
    margin: 0;
    color: #57606a;
    font-size: 0.95rem;
}