/* ==========================================
   1. VARIABLES DE PALETA ACUARELA CLARA
   ========================================== */
:root {
    --bg-light: #f4f7fb;
    --card-bg: #ffffff;
    --border-soft: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    
    /* Tonos Acuarela Pasteles y Suaves */
    --wc-blue: #3b82f6;
    --wc-pink: #ec4899;
    --wc-purple: #8b5cf6;
    --wc-teal: #14b8a6;
    --wc-orange: #f59e0b;
    --wc-green: #10b981;

    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 25px -5px rgba(148, 163, 184, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ==========================================
   2. NAVBAR
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-soft);
}

.logo-link { display: flex; align-items: center; gap: 0.75rem; }
.logo-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--wc-blue), var(--wc-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.brand-text { font-size: 1.35rem; font-weight: 800; }
.brand-creative { color: #0f172a; }
.brand-art { color: var(--wc-blue); }

.btn-login {
    background: #eff6ff;
    color: var(--wc-blue);
    border: 1px solid #bfdbfe;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.btn-login:hover { background: var(--wc-blue); color: #ffffff; }

/* ==========================================
   3. HERO CON LIENZO ACUARELA CLARO
   ========================================== */
.hero {
    position: relative;
    padding: 3.5rem 1.5rem;
    background-color: #f8fafc;
    overflow: hidden;
}

.hero-watercolor-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(244, 114, 182, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(192, 132, 252, 0.18) 0%, transparent 50%);
    filter: blur(35px);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 260px 1fr 240px;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Banner Izquierdo */
.hero-banner-left {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.banner-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.banner-image-wrapper {
    width: 100%;
    height: 160px;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-banner-left:hover .banner-img {
    transform: scale(1.05);
}

.badge-watercolor {
    background: #fce7f3;
    color: #db2777;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.75rem;
    width: max-content;
}

.hero-banner-left h2 { 
    font-size: 1.15rem; 
    margin-bottom: 0.4rem; 
    color: var(--text-dark); 
    line-height: 1.3;
}

.hero-banner-left p { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    line-height: 1.4;
}

/* Slider Central */
.hero-slider-main {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    max-height: 380px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.slide { 
    display: none; 
    flex-direction: column;
    justify-content: center;
    height: 100%;
    animation: fadeIn 0.3s ease; 
}

.slide.active { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.text-watercolor {
    background: linear-gradient(135deg, #ec4899, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-slider-main h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--text-dark); line-height: 1.25; }
.hero-slider-main p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.btn-watercolor-primary {
    background: linear-gradient(135deg, var(--wc-blue), var(--wc-purple));
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    width: max-content;
}

.btn-watercolor-secondary {
    background: #f1f5f9;
    color: var(--text-dark);
    border: 1px solid var(--border-soft);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-block;
    width: max-content;
}

/* Controles del Slider */
.slider-controls { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-top: auto; 
    padding-top: 1rem;
}

.slider-arrow {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.slider-arrow:hover { background: var(--wc-blue); color: #fff; }

.slider-dots { display: flex; gap: 0.4rem; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: all 0.3s ease; }
.dot.active { width: 22px; border-radius: 10px; background: var(--wc-blue); }

/* Tarjetas Derecha */
.hero-side-cards { display: flex; flex-direction: column; gap: 1rem; }
.preview-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    box-shadow: var(--shadow-soft);
}

.preview-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.card-wc-pink .preview-icon { background: #fce7f3; color: #db2777; }
.card-wc-teal .preview-icon { background: #ccfbf1; color: #0d9488; }

.preview-text h4 { font-size: 0.95rem; color: var(--text-dark); }
.preview-text p { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================
   4. MÓDULOS EN ZIG-ZAG (IMAGEN + TEXTO)
   ========================================== */
.container { max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.subtitle-wc { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--wc-blue); font-weight: 700; display: block; margin-bottom: 0.4rem; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--text-dark); }

.modules-zigzag-list {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    width: 100%;
}

/* Tarjeta individual de Módulo */
.module-card {
    display: flex;
    align-items: center;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-soft, #e2e8f0);
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    box-shadow: var(--shadow-soft, 0 10px 25px -5px rgba(148, 163, 184, 0.15));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px -5px rgba(59, 130, 246, 0.15);
}

/* Inversión en Zig-Zag (Texto a la Izquierda, Imagen a la Derecha) */
.module-card.reverse {
    flex-direction: row-reverse;
}

/* Contenedor Adaptable de la Imagen */
.module-image-container {
    flex: 1;
    min-width: 40%;
    max-width: 45%;
    height: 260px;
    overflow: hidden;
    position: relative;
    background-color: var(--mod-bg-soft, #f1f5f9);
}

.module-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.module-card:hover .module-img {
    transform: scale(1.05);
}

/* Información y Texto */
.module-info {
    flex: 1;
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Insignias e Identificadores por Color */
.module-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    color: var(--mod-color, #3b82f6);
    background-color: var(--mod-bg-soft, #eff6ff);
}

.card-blue { --mod-color: var(--wc-blue, #3b82f6); --mod-bg-soft: #eff6ff; }
.card-green { --mod-color: var(--wc-green, #10b981); --mod-bg-soft: #ecfdf5; }
.card-purple { --mod-color: var(--wc-purple, #8b5cf6); --mod-bg-soft: #f3e8ff; }
.card-orange { --mod-color: var(--wc-orange, #f59e0b); --mod-bg-soft: #fffbebe; }
.card-teal { --mod-color: var(--wc-teal, #14b8a6); --mod-bg-soft: #f0fdfa; }
.card-pink { --mod-color: var(--wc-pink, #ec4899); --mod-bg-soft: #fce7f3; }

.module-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark, #1e293b);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.module-info p {
    font-size: 0.92rem;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.btn-module-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mod-color);
    transition: gap 0.25s ease;
}

.btn-module-link:hover {
    gap: 0.8rem;
}

/* ==========================================
   5. PASOS Y FOOTER (ESTILO ACUARELA / GLASS)
   ========================================== */
.workflow-section {
    position: relative;
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 50%, #faf5ff 100%);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 4rem 1.5rem;
    overflow: hidden;
}

.workflow-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.12) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.steps-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; 
    position: relative;
    z-index: 2;
}

.step-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(148, 163, 184, 0.15);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.18);
}

.step-number { 
    position: absolute; 
    top: 1.25rem; 
    right: 1.5rem; 
    font-size: 2.2rem; 
    font-weight: 900; 
    color: rgba(15, 23, 42, 0.08); 
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-wc-yellow { background: linear-gradient(135deg, #fef9c3, #fef08a); color: #ca8a04; border-radius: 10px; }
.icon-wc-cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0891b2; border-radius: 10px; }
.icon-wc-red { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; border-radius: 10px; }

.step-card h3 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; color: var(--text-dark); }
.step-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

.footer { 
    padding: 2.5rem 1.5rem; 
    text-align: center; 
    border-top: 1px solid var(--border-soft); 
    background: #ffffff; 
}

.footer-copyright { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.footer-credits { font-size: 0.8rem; color: #94a3b8; }
.divider { margin: 0 0.4rem; }

/* ==========================================
   6. MEDIA QUERIES PARA RESPONSIVIDAD TOTAL
   ========================================== */

/* Tablets y Pantallas Medianas (<= 900px) */
@media (max-width: 900px) {
    .hero-layout { 
        grid-template-columns: 1fr; 
    }
    .hero-banner-left { 
        display: none; 
    }
    .hero-side-cards {
        flex-direction: row;
    }

    /* Adaptación de la sección Zig-Zag */
    .module-card,
    .module-card.reverse {
        flex-direction: column; /* Apilamiento vertical */
    }

    .module-image-container {
        width: 100%;
        max-width: 100%;
        height: 220px;
    }

    .module-info {
        padding: 1.75rem 1.5rem;
        width: 100%;
    }
}

/* Dispositivos Móviles (<= 640px) */
@media (max-width: 640px) {
    .navbar { padding: 0.85rem 1.25rem; }
    .hero { padding: 2rem 1rem; }
    
    .hero-slider-main {
        padding: 1.75rem 1.25rem 1.25rem;
        min-height: auto;
        max-height: none;
    }
    .hero-slider-main h1 { font-size: 1.5rem; }
    .hero-side-cards { flex-direction: column; }

    .container { padding: 2.5rem 1rem; }
    .section-header h2 { font-size: 1.6rem; }
    
    .module-image-container {
        height: 180px;
    }
    
    .module-info {
        padding: 1.25rem 1rem;
    }
    
    .module-info h3 {
        font-size: 1.15rem;
    }
}

/* Pantallas Pequeñas (<= 480px) */
@media (max-width: 480px) {
    .brand-text { font-size: 1.15rem; }
    .btn-login { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
    .btn-watercolor-primary, .btn-watercolor-secondary { 
        width: 100%; 
        text-align: center; 
    }
}