/* ==========================================================================
   CSS Variables - Architectural Dark Theme
   ========================================================================== */
   :root {
    /* Colors */
    --bg-dark: #0f1115;
    --bg-darker: #0a0b0d;
    --bg-card: #16181d;
    --bg-card-hover: #1e2128;
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Accents (Metallic Blue / Emerald mix) */
    --accent-primary: #0ea5e9; /* Light blue */
    --accent-primary-hover: #0284c7;
    --accent-emerald: #10b981;
    --accent-emerald-hover: #059669;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header p {
    font-size: 1.125rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-light);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-white);
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    background-color: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-base);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.logo-icon {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .nav-links { display: none; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, rgba(15,17,21,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-icon {
    color: var(--accent-emerald);
    width: 18px;
    height: 18px;
}

/* Abstract Wireframe Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.model-visual {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-45deg);
    animation: rotateSlow 20s linear infinite;
}

.wireframe {
    position: absolute;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2) inset;
    background: rgba(14, 165, 233, 0.02);
}

.wf-1 { width: 100%; height: 100%; bottom: 0; }
.wf-2 { width: 80%; height: 80%; bottom: 40px; left: 10%; border-color: var(--accent-emerald); }
.wf-3 { width: 60%; height: 60%; bottom: 80px; left: 20%; border-color: var(--text-white); opacity: 0.5;}

@keyframes rotateSlow {
    0% { transform: rotateX(60deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 2.5rem auto;
    }
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-visual {
        display: none;
    }
}

/* ==========================================================================
   Como Funciona (Steps)
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition-base);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem auto;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg { width: 32px; height: 32px; }

.step-connector {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin-top: 5rem;
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .step-connector {
        display: none;
    }
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
    transition: var(--transition-base);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.service-icon svg { width: 100%; height: 100%; stroke-width: 1.5px; }

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-alert {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-content svg {
    color: var(--accent-emerald);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.alert-content strong {
    color: var(--accent-emerald);
    display: block;
    margin-bottom: 0.25rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.9rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    position: relative;
    transition: var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--border-light);
}

.pricing-card.featured {
    background: linear-gradient(180deg, #1e2128 0%, #16181d 100%);
    border: 1px solid var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 2;
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 40px;
}

.pricing-price {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.currency { font-size: 1rem; color: var(--text-muted); }
.amount { font-size: 3rem; font-weight: 700; color: var(--text-white); line-height: 1; }
.period { font-size: 1rem; color: var(--text-muted); }

.pricing-features {
    margin-bottom: 2.5rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.pricing-features li svg {
    color: var(--accent-primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.pricing-card.featured .pricing-features li svg {
    color: var(--accent-emerald);
}

@media (max-width: 992px) {
    .pricing-alert {
        flex-direction: column;
        text-align: left;
        gap: 1.5rem;
    }
    .alert-content { align-items: flex-start; }
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-question svg {
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* arbitrary max height for transition */
}

.faq-answer p {
    padding-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    max-width: 400px;
    margin-top: 1.5rem;
}

.footer-contact h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-info svg {
    color: var(--accent-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-base);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}
