/* ========================================
   WEBU.cl - Styles
   ======================================== */

:root {
    --primary: #4338ca;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --accent: #7c3aed;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --light-2: #e2e8f0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-isotipo {
    height: 36px;
    width: auto;
}

.logo-text {
    height: 22px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--dark);
}

.btn-nav {
    background: var(--dark) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.btn-nav:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(67, 56, 202, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 56, 202, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--light-2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn-plan {
    width: 100%;
    padding: 14px 28px;
    background: var(--dark);
    color: var(--white);
    margin-top: auto;
}

.btn-plan:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-isotipo {
    width: 120px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 24px rgba(67, 56, 202, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-slogan {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(67, 56, 202, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(67, 56, 202, 0.15);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--dark);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--light-2);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(67, 56, 202, 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 48px;
}

.services,
.plans,
.contact {
    text-align: center;
}

/* ========================================
   Services
   ======================================== */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(67, 56, 202, 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ========================================
   Plans
   ======================================== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 48px;
}

.plan-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--light-2);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.plan-featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.plan-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 8px 0 20px;
    line-height: 1.5;
}

.plan-price {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 4px;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 8px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -2px;
}

.price-period {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 28px;
    display: block;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.93rem;
    color: var(--dark-3);
    border-bottom: 1px solid var(--light);
}

.plan-features li:last-child {
    border-bottom: none;
}

.check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
}

.plan-featured .btn-plan {
    background: var(--gradient);
    box-shadow: 0 4px 15px rgba(67, 56, 202, 0.35);
}

/* ========================================
   Process / Como Funciona
   ======================================== */
.process {
    text-align: center;
    background: var(--dark);
    color: var(--white);
}

.process .section-badge {
    background: rgba(67, 56, 202, 0.2);
}

.process .section-title {
    color: var(--white);
}

.process-timeline {
    position: relative;
    max-width: 640px;
    margin: 56px auto 0;
    text-align: left;
}

.timeline-line {
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--dark-3);
}

.process-step-v2 {
    position: relative;
    display: flex;
    gap: 28px;
    padding-bottom: 40px;
}

.process-step-v2:last-child {
    padding-bottom: 0;
}

.step-icon-wrap {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 0 0 6px var(--dark), 0 4px 20px rgba(67, 56, 202, 0.3);
}

.step-num {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.step-content {
    padding-top: 12px;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.step-content p {
    color: var(--gray-light);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ========================================
   CTA
   ======================================== */
.cta-section {
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.cta-box {
    background: var(--gradient);
    padding: 64px 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
}

.cta-isotipo {
    width: 72px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,0.2));
    opacity: 0.9;
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.cta-box .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-box .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ========================================
   Contact
   ======================================== */
.contact {
    padding-top: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    text-align: left;
}

.contact-info {
    padding-top: 20px;
}

.contact-info p {
    color: var(--gray);
    margin-top: 16px;
    line-height: 1.7;
}

.contact-methods {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--dark);
    font-weight: 500;
}

.contact-method svg {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-cta-box {
    background: var(--light);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-cta-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.contact-cta-box h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark);
}

.contact-cta-box p {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.7;
    max-width: 360px;
}

.contact-guarantees {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.guarantee {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 64px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo .logo-text {
    filter: brightness(0) invert(1);
}

.footer-slogan {
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 12px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.93rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--dark-3);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ========================================
   WhatsApp Float
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }
.animate-in:nth-child(6) { animation-delay: 0.5s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .plan-featured {
        transform: none;
    }

    .plan-featured:hover {
        transform: translateY(-4px);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }

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

    .hero-stats {
        gap: 24px;
    }

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

    .section {
        padding: 72px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        margin-top: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .contact {
        padding-top: 80px;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .contact-form {
        padding: 24px;
    }
}
