/* ================================
   1. RESET Y VARIABLES
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --accent: #f72585;
    --success: #4cc9f0;
    
    /* Colores neutros */
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #495057;
    
    /* Efectos */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Espaciados */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
}

[data-theme="dark"] {
    --light: #0f0f0f;
    --dark: #f8f9fa;
    --gray-light: #1e1e1e;
    --gray-dark: #b8b8b8;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.6);
}

/* ================================
   2. BASE Y TIPOGRAFÍA
   ================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ================================
   3. HEADER Y NAVEGACIÓN
   ================================ */

.header {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    background-color: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .header {
    background-color: rgba(15, 15, 15, 0.95);
    border-bottom-color: var(--gray-light);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    display: none;
}


.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition);
    padding: var(--spacing-xs) 12px;
    border-radius: var(--border-radius-sm);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.08);
}

/* ================================
   4. BOTONES
   ================================ */

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-light);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* ================================
   5. HERO SECTION
   ================================ */

.hero {
    padding: var(--spacing-xl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}


@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Video Player */
.hero-video {
    position: relative;
}

.video-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    background: #000;
    width: 100%;
}

video {
    width: 100%;
    height: auto;
    display: block;
}


.video-controls {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    gap: 12px;
    align-items: center;
}

.video-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
}

.video-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.video-day {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.hero-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 0;
}

.hero-title-small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.verse-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}


.verse-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

[data-theme="dark"] .verse-card {
    background: var(--gray-light);
}

.verse-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
    opacity: 0.8;
}

.verse-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--dark);
}


.verse-reference {
    font-size: 14px;
    color: var(--gray);
    font-style: italic;
    text-align: right;
    font-weight: 500;
}

/* ================================
   6. EMAIL CAPTURE
   ================================ */

.email-capture {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
}

[data-theme="dark"] .email-capture {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    border-color: rgba(255, 255, 255, 0.1);
}

.email-capture h3 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--dark);
}

.email-subtitle {
    color: var(--gray);
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
    line-height: 1.5;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.input-group {
    display: flex;
    gap: 12px;
}

@media (max-width: 576px) {
    .input-group {
        flex-direction: column;
    }
}

input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background: var(--light);
    color: var(--dark);
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.form-footer {
    margin-top: var(--spacing-xs);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 13px;
    color: var(--gray);
    cursor: pointer;
    user-select: none;
}

.checkbox input[type="checkbox"] {
    cursor: pointer;
}

.form-message {
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ================================
   7. COUNTER / ESTADÍSTICAS
   ================================ */

.counter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: white;
    padding: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    gap: 12px;
}


[data-theme="dark"] .counter {
    background: var(--gray-light);
}

.counter-item {
    text-align: center;
    padding: var(--spacing-xs);
    transition: var(--transition);
}

.counter-item:hover {
    transform: translateY(-4px);
}

.counter-number {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}


.counter-label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* ================================
   8. SECTIONS
   ================================ */

.section {
    padding: 80px 0;
}

.section-dark {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
}

.section-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: var(--spacing-xl);
    font-size: 17px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.step {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.step:hover::before {
    transform: scaleX(1);
}

[data-theme="dark"] .step {
    background: var(--gray-light);
}

.step:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto var(--spacing-sm);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.step-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.step h3 {
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--dark);
}

.step p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 15px;
}

/* ================================
   9. DAYS GRID / SERIE
   ================================ */

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.day-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    color: white;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.day-card:hover::before {
    left: 100%;
}

.day-card.clickable:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.day-card.active {
    border-color: var(--accent);
    background: rgba(247, 37, 133, 0.15);
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.3);
}

.day-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.day-number {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--success);
    font-family: 'Inter', sans-serif;
}

.day-verse {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

.day-locked {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 13px;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.7;
}

.btn-ver-dia {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: var(--spacing-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.day-card.active .btn-ver-dia {
    background: var(--accent);
}

.btn-ver-dia:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.4);
}

/* ================================
   10. CTA SECTION
   ================================ */

.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.03), rgba(114, 9, 183, 0.03));
}

.cta-title {
    font-size: 42px;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.cta-text {
    font-size: 19px;
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-note {
    margin-top: var(--spacing-md);
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

/* ================================
   11. FOOTER
   ================================ */

.footer {
    background: var(--dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

[data-theme="dark"] .footer {
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-description {
    opacity: 0.8;
    margin-top: var(--spacing-sm);
    line-height: 1.7;
    font-size: 14px;
}

.footer-col h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
    font-size: 14px;
}

.footer-link:hover {
    color: white;
    transform: translateX(6px);
}

.social {
    display: flex;
    gap: 12px;
    margin-top: var(--spacing-sm);
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: 14px;
}

.footer-bottom p {
    opacity: 0.7;
}

.beta-badge {
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-beta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* ================================
   12. ANIMACIONES Y UTILIDADES
   ================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-serie {
    text-align: center;
    padding: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .counter {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}
