/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0b10;
    --card-bg: rgba(19, 21, 32, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-neon: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.3);
    --secondary-neon: #2563eb;
    --secondary-glow: rgba(37, 99, 235, 0.3);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-green: #10b981;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
.bg-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(10, 11, 16, 0) 70%);
    filter: blur(80px);
}

.glow-2 {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(10, 11, 16, 0) 70%);
    filter: blur(80px);
}

/* Typography & Layout Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-text-purple {
    color: #a78bfa;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

/* Navbar */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 11, 16, 0.8);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav ul a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

nav ul a:hover {
    color: #ffffff;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px 0;
    text-align: center;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 100px;
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 24px auto;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.05);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #a78bfa;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: rgba(10, 11, 16, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps-container {
    margin-top: 48px;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 40px;
}

.step-row:last-child {
    margin-bottom: 0;
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    width: 60px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border-color: var(--primary-neon);
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.15);
}

.price-card.featured::before {
    content: "MÁS POPULAR";
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 40px;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
}

.price-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.price-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.price-box {
    margin-bottom: 32px;
}

.setup-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.setup-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
    text-transform: uppercase;
}

.monthly-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #a78bfa;
    margin-top: 12px;
}

.monthly-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.features-list li svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.price-card .btn {
    width: 100%;
}

/* CTA Footer Section */
.cta-banner {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.cta-banner p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px auto;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    header nav {
        display: none;
    }
    
    .step-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* WhatsApp Simulator Layout */
.demo-wrapper {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-top: 40px;
}

.demo-info {
    flex: 1;
}

.phone-mockup {
    flex: 1;
    max-width: 380px;
    margin: 0 auto;
    background: #0f1016;
    border: 12px solid #2d3142;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(124, 58, 237, 0.15);
    overflow: hidden;
    position: relative;
    aspect-ratio: 9 / 18.5;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #07080b;
    font-family: 'Inter', sans-serif;
}

/* WhatsApp Screen Elements */
.wa-header {
    background-color: #121b22;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
}

.wa-user-info {
    display: flex;
    flex-direction: column;
}

.wa-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.wa-status {
    font-size: 0.7rem;
    color: #25d366;
}

.wa-body {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 340px;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 16px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Typing indicator */
.wa-typing {
    align-self: flex-start;
    background: #1f2c34;
    padding: 12px 16px;
    border-radius: 0 12px 12px 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.wa-typing span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.3s infinite ease-in-out;
}

.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

.wa-message {
    max-width: 80%;
    padding: 10px 14px;
    font-size: 0.85rem;
    position: relative;
    line-height: 1.4;
    animation: msgFadeIn 0.3s ease;
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.wa-incoming {
    align-self: flex-start;
    background-color: #1f2c34;
    color: #e9edef;
    border-radius: 0 12px 12px 12px;
}

.wa-outgoing {
    align-self: flex-end;
    background-color: #005c4b;
    color: #e9edef;
    border-radius: 12px 0 12px 12px;
}

.wa-time {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    margin-top: 4px;
}

.wa-footer {
    padding: 12px;
    background-color: #1f2c34;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.choice-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}

.choice-btn:hover {
    background: var(--primary-neon);
    border-color: var(--primary-neon);
}

/* Floating Settings Panel */
.settings-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #131520;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.settings-fab:hover {
    color: #ffffff;
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
    transform: rotate(30deg);
}

/* Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #0f1016;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(124, 58, 237, 0.1);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: white;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

/* Call Button Pulser */
.calling-pulse {
    animation: callPulse 1.5s infinite;
}

@keyframes callPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Media Queries for layout */
@media (max-width: 768px) {
    .demo-wrapper {
        flex-direction: column;
        gap: 32px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}
