/* =============================================
   WEBORA STUDIO - PREMIUM CONVERSION CSS
   Elegancia, claridad psicológica y ventas
============================================= */

:root {
    --bg-main: #060608;          /* Negro profundo elegante */
    --bg-alt: #0a0a0d;           /* Ligeramente gris azulado para contraste */
    --bg-card: #121217;          /* Fondo de tarjetas */
    
    --text-primary: #ffffff;     /* Blanco vibrante */
    --text-secondary: #a1a1aa;   /* Gris neutro para lectura suave */
    
    --brand-accent: #f97316;     /* Naranja Vibrante - Psicología de Compra/Alerta */
    --brand-accent-hover: #ea580c;
    --brand-glow: rgba(249, 115, 22, 0.2);
    
    --wa-green: #25D366;         /* Verde WhatsApp Confianza */
    --wa-hover: #20b858;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(249, 115, 22, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 99px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ocultar scrollbar durante preloader si se desea (opcional) */
body.loading {
    overflow: hidden;
}

/* ================== PRELOADER ================== */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}
#preloader.hide {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.loader-logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    animation: fadeInOut 1.5s infinite alternate;
}
.hl-brand {
    color: var(--brand-accent);
}
.loader-progress {
    width: 200px;
    height: 3px;
    background: var(--border-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
}
.loader-progress::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 0%;
    background: var(--brand-accent);
    animation: progressFill 1.8s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0.5; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* ================== UTILITIES ================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================== NAV BUTTONS ================== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(6, 6, 8, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s;
}
nav.scrolled {
    padding: 16px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: rgba(6, 6, 8, 0.95);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text-primary);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-pill);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-align: center;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

.btn-nav {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--brand-accent);
    color: white;
    box-shadow: 0 4px 15px var(--brand-glow);
}
.btn-primary:active { transform: scale(0.97); }

.pulse-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
    background: var(--brand-accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
}

/* ================== HERO ================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}
.hero-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center top, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 32px;
}
.hero-title {
    font-size: clamp(40px, 8vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.trust-item {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
}
.dot.green {
    background: var(--wa-green);
    box-shadow: 0 0 10px var(--wa-green);
}

/* =============================================
   MOCKUP ANIMADO MAC Y IPHONE (PURO CSS)
============================================= */
.devices-mockup-container {
    position: relative;
    max-width: 900px;
    margin: 64px auto 0;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Mac Styling */
.mac-frame {
    width: 800px;
    height: 480px;
    background: #111; /* Color aluminio oscuro */
    border-radius: 20px 20px 0 0;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    border: 3px solid #333;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    animation: floatMac 6s ease-in-out infinite;
    z-index: 1;
}
.mac-screen {
    flex: 1;
    background: #000;
    margin: 16px 16px 0 16px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
    border: 2px solid #222;
    border-bottom: none;
}
.mac-base {
    height: 24px;
    background: linear-gradient(to bottom, #2a2a2a, #111);
    border-radius: 0 0 16px 16px;
    width: 104%;
    margin-left: -2%;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}
.mac-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 10px;
    background: #111;
    border-radius: 0 0 8px 8px;
}

/* iPhone Styling */
.iphone-frame {
    position: absolute;
    right: 0%;
    bottom: -30px;
    width: 220px;
    height: 440px;
    background: #f4f4f4; /* Chasis claro/blanco */
    border-radius: 36px;
    box-shadow: -20px 30px 60px rgba(0,0,0,0.9), inset 0 0 0 3px #ddd, inset 0 0 0 12px #111;
    z-index: 2;
    overflow: hidden;
    padding: 12px;
    animation: floatIphone 5s ease-in-out infinite 1s;
}
.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* Screen Content (Clean White Template) Inside both */
.template-white {
    background: #ffffff;
    width: 100%;
    height: 250%; /* For scrolling effect */
    padding: 30px;
    position: absolute;
    top: 0; left: 0;
    animation: scrollContent 15s infinite linear alternate;
}
.mac-screen .template-white { padding: 40px 60px; }

/* Fake UI Elements for Template */
.tw-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.iphone-screen .tw-nav { margin-bottom: 30px; }
.tw-logo { font-size: 18px; font-weight: 900; color: #0f172a; letter-spacing: -0.5px; }
.iphone-screen .tw-logo { font-size: 14px; }
.tw-links { display: flex; gap: 16px; font-size: 12px; color: #64748b; font-weight: 600;}
.tw-links span { width: auto; height: auto; background: transparent; }
.iphone-screen .tw-burger { width: 24px; height: 14px; background: repeating-linear-gradient(to bottom, #cbd5e1 0, #cbd5e1 3px, transparent 3px, transparent 6px); }

.tw-hero { text-align: center; margin-bottom: 60px; }
.iphone-screen .tw-hero { margin-bottom: 40px; }
.tw-h1 { width: auto; height: auto; background: transparent; font-size: 38px; font-weight: 900; color: #0f172a; line-height: 1.1; margin: 0 auto 16px; min-height: unset; }
.iphone-screen .tw-h1 { font-size: 24px; }
.tw-p { width: auto; height: auto; background: transparent; font-size: 16px; color: #64748b; margin: 0 auto 30px; max-width: 80%; line-height: 1.5; min-height: unset;}
.iphone-screen .tw-p { font-size: 13px; margin-bottom: 24px; max-width: 90%; }
.tw-btn { width: auto; height: auto; display: inline-block; padding: 12px 32px; background: var(--brand-accent); color: white; font-weight: 700; font-size: 14px; border-radius: 30px; }
.iphone-screen .tw-btn { padding: 8px 24px; font-size: 12px; }

.tw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tw-cards-col { display: flex; flex-direction: column; gap: 16px; }
.tw-card { padding: 24px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; text-align: left; height: auto; }
.iphone-screen .tw-card { padding: 16px; height: auto; }
.tw-c-t { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.iphone-screen .tw-c-t { font-size: 15px; margin-bottom: 8px;}
.tw-c-l { height: 8px; background: #e2e8f0; border-radius: 4px; margin-bottom: 8px; width: 100%; }
.tw-c-l:last-child { width: 70%; }

/* Testimonial Carousel */
.testimonial-carousel { position: relative; min-height: 180px; margin-bottom: 40px; }
.testimonial-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.testimonial-slide.active { opacity: 1; visibility: visible; position: relative; }

/* Anims for frames */
@keyframes floatMac {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
@keyframes floatIphone {
    0% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}
@keyframes scrollContent {
    0%, 15% { transform: translateY(0); }
    85%, 100% { transform: translateY(-35%); }
}

/* ================== GENERAL SECTIONS ================== */
.section {
    padding: 120px 0;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}
.pre-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--brand-accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.section-header p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 18px;
}
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Premium Cards (Problemas) */
.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: transform 0.3s, border-color 0.3s;
}
.premium-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
}
.card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.error-glow { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.warning-glow { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }

.premium-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}
.premium-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Pricing / Services Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    position: relative;
    transition: all 0.3s;
}
.pricing-card.highlighted {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.05) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    transform: translateY(-16px);
}
.bestseller-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--brand-accent);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.price-tag {
    font-size: 14px;
    color: var(--brand-accent);
    font-weight: 700;
    margin-bottom: 16px;
}
.pricing-card h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}
.price-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}
.features {
    list-style: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
}
.features li {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.features li::before {
    content: '✓';
    color: var(--wa-green);
    font-weight: 800;
}
.w-full { width: 100%; }

/* Proceso */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}
.step {
    display: flex;
    gap: 32px;
    position: relative;
    padding-bottom: 48px;
}
.step::after {
    content: '';
    position: absolute;
    left: 23px; top: 48px; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-subtle), transparent);
}
.step:last-child::after { display: none; }
.step:last-child { padding-bottom: 0; }

.step-number {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-accent);
    flex-shrink: 0;
    z-index: 2;
}
.step-info h4 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 12px;
}
.step-info p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* Social Proof & Final CTA */
.final-cta {
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 60%);
    pointer-events: none;
}
.stars {
    color: #fbbf24;
    font-size: 24px;
    margin-bottom: 24px;
    letter-spacing: 4px;
}
.final-cta blockquote {
    font-size: clamp(20px, 3vw, 24px);
    font-style: italic;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.5;
}
.author {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 64px;
}
.cta-box h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.cta-box p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 32px;
    background: var(--bg-alt);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 64px;
}
.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}
.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 15px;
}
.footer-contact strong { color: var(--text-primary); }
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* WA Float */
.wa-float {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 99;
    background: var(--wa-green);
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, background 0.3s;
}
.wa-float:hover {
    transform: scale(1.08) translateY(-4px);
    background: var(--wa-hover);
}
.wa-float svg {
    width: 36px; height: 36px;
    fill: currentColor;
}

/* ANIMACIONES GSAP / CSS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.8s; /* Para después del preloader */
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scroll-anim.active {
    opacity: 1;
    transform: translateY(0);
}

/* About Us */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.about-text p { color: var(--text-secondary); font-size: 18px; margin-bottom: 24px; line-height: 1.7; }
.about-stats { display: flex; flex-direction: column; gap: 24px; }
.stat-box { background: var(--bg-card); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-number { font-size: 48px; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.stat-label { color: var(--text-primary); font-size: 16px; font-weight: 600; }

/* Media Queries */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 36px; }
    .pricing-card.highlighted { transform: none; }
    .step::after { left: 24px; top: 48px; }
    .hero-ctas { flex-direction: column; width: 100%; padding: 0 20px;}
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .trust-indicators { flex-direction: column; align-items: center; gap: 12px;}
    .wa-float { width: 56px; height: 56px; bottom: 20px; right: 20px; }
    .wa-float svg { width: 30px; height: 30px; }
    .final-cta { padding: 40px 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}
