/* ============================================
   VARIABLES & RESET
   ============================================ */
   :root {
    --primary: #FF6B6B;
    --secondary: #A855F7;
    --accent: #EC4899;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --dark: #0F172A;
    --darker: #020617;
    --gray: #64748B;
    --light-gray: #F1F5F9;
    --white: #FFFFFF;
    
    --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #A855F7 50%, #EC4899 100%);
    --gradient-whatsapp: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --gradient-dark: linear-gradient(180deg, #0F172A 0%, #020617 100%);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   MOBILE-FIRST BASE STYLES
   ============================================ */
   
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HEADER MOBILE-FIRST
   ============================================ */
   
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.nav-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-whatsapp);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-whatsapp-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   HERO MOBILE-FIRST
   ============================================ */
   
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-text {
    color: var(--white);
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-guarantee {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.hero-visual {
    display: none;
}

/* ============================================
   BUTTONS MOBILE-FIRST
   ============================================ */
   
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp {
    background: var(--gradient-whatsapp);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.btn-large {
    padding: 18px 32px;
    font-size: 18px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-whatsapp);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   SECTIONS MOBILE-FIRST
   ============================================ */
   
.problem-grid,
.modules-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.problem-card,
.module-card,
.testimonial-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.problem-card:hover,
.module-card:hover,
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
    text-align: center;
}

.problem-card h3,
.module-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.module-number {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.module-duration {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 6px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* Program Section */
.program {
    background: var(--gradient-dark);
    color: var(--white);
}

.program .section-title {
    color: var(--white);
}

.program-header {
    text-align: center;
    margin-bottom: 40px;
}

.label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(168, 85, 247, 0.2);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.module-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.module-card h3,
.module-card p {
    color: var(--white);
}

/* Testimonials */
.testimonial-card {
    text-align: center;
}

.stars {
    color: #FFA500;
    font-size: 18px;
    margin-bottom: 16px;
}

.testimonial-text {
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
}

.author-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
}

.author-role {
    font-size: 12px;
    color: var(--gray);
}

/* ============================================
   CTA SECTION MOBILE-FIRST
   ============================================ */
   
.cta-section {
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.cta-section .section-title {
    color: var(--white);
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.price-box {
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 300px;
}

.price-old {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-bottom: 8px;
}

.price-current {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.price-label {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.cta-features {
    margin: 30px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--whatsapp);
    flex-shrink: 0;
}

.security-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

/* ============================================
   WHATSAPP WIDGET MOBILE-FIRST
   ============================================ */
   
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out;
}

.whatsapp-bubble {
    width: 56px;
    height: 56px;
    background: var(--gradient-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.4) 0%, transparent 70%);
    animation: pulse 2s infinite;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ============================================
   MODAL MOBILE-FIRST
   ============================================ */
   
.whatsapp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    overflow-y: auto;
}

.whatsapp-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: slideUp 0.4s ease;
}

.modal-header {
    background: var(--gradient-whatsapp);
    color: white;
    padding: 25px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-align: center;
}

.modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
}

.modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
}

.whatsapp-form {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--whatsapp);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   FOOTER MOBILE-FIRST
   ============================================ */
   
.footer {
    background: var(--darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
}

.footer-content {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-contact {
    margin-top: 10px;
}

.footer-contact a {
    color: var(--whatsapp);
    text-decoration: none;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
   
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   TABLET STYLES (768px+)
   ============================================ */
   
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .nav {
        padding: 20px 0;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .nav-whatsapp-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .hero-visual {
        display: block;
    }
    
    .workflow-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-lg);
        padding: 40px;
        box-shadow: var(--shadow-xl);
    }
    
    .workflow-nodes {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .node {
        padding: 20px 30px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-md);
        color: white;
        font-weight: 600;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .node:hover {
        transform: translateX(10px);
        border-color: var(--primary);
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    }
    
    .node-connector {
        width: 2px;
        height: 20px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
        margin: 0 auto;
    }
    
    .problem-grid,
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .cta-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .price-box {
        display: inline-block;
        max-width: none;
    }
    
    .whatsapp-widget {
        bottom: 30px;
        right: 30px;
    }
    
    .whatsapp-bubble {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   DESKTOP STYLES (1024px+)
   ============================================ */
   
@media (min-width: 1024px) {
    .section {
        padding: 100px 0;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .hero-content {
        flex-direction: row;
        gap: 60px;
        align-items: center;
    }
    
    .hero-text {
        text-align: left;
        flex: 1;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-cta {
        align-items: flex-start;
    }
    
    .hero-visual {
        flex: 1;
    }
    
    .modules-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .footer-links {
        justify-content: flex-end;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
   
@media print {
    .header,
    .whatsapp-widget,
    .whatsapp-modal,
    .nav-whatsapp-btn,
    .btn-whatsapp {
        display: none !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
   
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--whatsapp);
    outline-offset: 2px;
}