/**
 * Estilos Comunes para Módulos de Medifolios
 * Este archivo contiene todos los estilos compartidos por las páginas de módulos
 */

:root {
    --medifolios-blue: #0066CC;
    --medifolios-blue-dark: #004C99;
    --medifolios-blue-light: #3399FF;
    --medifolios-gradient: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
    --shadow-soft: 0 10px 40px rgba(0, 102, 204, 0.1);
    --shadow-hover: 0 15px 50px rgba(0, 102, 204, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}

/* Ocultar elementos conflictivos */
#particles-js,
.preloader,
.site-hero {
    display: none !important;
}

/* ============================================================
   HERO SECTION (Estilo Quienes Somos - Moderno y Elegante)
   ============================================================ */
.hero-module {
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(26, 35, 50, 0.92) 100%),
        url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    background-attachment: fixed;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 163, 32, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(42, 159, 214, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.3) 100%);
    pointer-events: none;
}

.hero-module::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(15, 27, 57, 0.8));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-module h1 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-module .lead {
    color: #b8c5db;
    font-size: 1.3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 163, 32, 0.3);
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #ffa320;
    box-shadow: 0 10px 30px rgba(255, 163, 32, 0.4);
    background: rgba(255, 163, 32, 0.15);
}

.stat-number {
    color: #ffa320;
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================================
   PROBLEMA/SOLUCIÓN SECTION
   ============================================================ */
.problema-solucion {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.problema-box, .solucion-box {
    padding: 45px;
    border-radius: 20px;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.problema-box {
    background: #ffffff;
    border: 2px solid #f1f3f5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.problema-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b6b 0%, #fa5252 100%);
}

.solucion-box {
    background: linear-gradient(135deg, var(--medifolios-blue) 0%, var(--medifolios-blue-dark) 100%);
    color: white;
    box-shadow: var(--shadow-soft);
}

.solucion-box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.problema-box h2, .solucion-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.4;
}

.problema-box h2 {
    color: #2c3e50;
}

.solucion-box h2 {
    color: #ffffff;
}

.problema-box h2 i {
    color: #ff6b6b;
}

.solucion-box h2 i {
    color: #ffffff;
}

.problema-box h2 i, .solucion-box h2 i {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problema-box ul, .solucion-box ul {
    list-style: none;
    padding: 0;
}

.problema-box li, .solucion-box li {
    padding: 12px 0 12px 30px;
    position: relative;
    line-height: 1.7;
    font-size: 1rem;
}

.problema-box li {
    color: #495057;
}

.solucion-box li {
    color: #ffffff;
}

.problema-box li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2rem;
}

.solucion-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================================
   CARACTERÍSTICAS PRINCIPALES
   ============================================================ */
.caracteristicas-principales {
    padding: 80px 0;
    background: #ffffff;
}

.caracteristicas-principales h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--medifolios-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

/* Colores de íconos */
.feature-icon.purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.feature-icon.blue { background: linear-gradient(135deg, #0066CC 0%, #004C99 100%); }
.feature-icon.green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.feature-icon.orange { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.feature-icon.red { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.feature-icon.teal { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.feature-icon.yellow { background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%); }
.feature-icon.cyan { background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%); }
.feature-icon.indigo { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.feature-icon.pink { background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%); }
.feature-icon.brown { background: linear-gradient(135deg, #d66d75 0%, #e29587 100%); }
.feature-icon.gray { background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%); }

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--medifolios-blue);
    font-weight: bold;
}

/* Destacar características nuevas */
.feature-new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-module,
.cta-pacientes,
.cta-section {
    padding: 80px 0;
    background: var(--medifolios-gradient);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta,
.btn-demo {
    display: inline-block;
    padding: 18px 45px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-cta.btn-primary,
.btn-demo {
    background: white;
    color: var(--medifolios-blue);
}

.btn-cta.btn-whatsapp {
    background: #128C7E; /* WhatsApp verde oscuro oficial - WCAG AA (4.54:1 contraste) */
    color: white;
    /* Color anterior: #25D366 (contraste 3.1:1 - insuficiente) */
}

.btn-cta:hover,
.btn-demo:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    text-decoration: none;
}

.btn-cta.btn-primary:hover,
.btn-demo:hover {
    color: var(--medifolios-blue);
}

.btn-cta.btn-whatsapp:hover {
    color: white;
    background: #128C7E;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .hero-module {
        padding: 140px 0 60px;
    }

    .hero-module h1 {
        font-size: 2.2rem;
    }

    .hero-module .lead {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-item {
        padding: 15px 25px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .btn-cta,
    .btn-demo {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-module h1 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta,
    .btn-demo {
        width: 100%;
        max-width: 300px;
    }
}
