/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    --primary-color: #ff0000;
    --primary-light: #ff4d4d;
    --primary-dark: #cc0000;
    --accent-color: #ff0000;
    
    /* Light Theme Backgrounds */
    --bg-main: #ffffff;
    --bg-alt: #f8f8f8;
    --bg-card: #ffffff;
    
    /* Text Colors */
    --text-main: #111111;
    --text-muted: #555555;
    
    --white: #ffffff;
    --black: #000000;
    --success: #25d366; /* WhatsApp Green */
    --success-hover: #1eb855;
    
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h1 span, h2 span {
    color: var(--accent-color);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

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

strong {
    color: var(--text-main);
    font-weight: 700;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.btn-whatsapp {
    background-color: var(--success);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--success-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent-color);
}

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

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        gap: 0;
        border-bottom: 2px solid #f0f0f0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

    .nav-links a {
        padding: 20px 24px;
        border-bottom: 1px solid #f0f0f0;
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 180px 0 100px;
    position: relative;
    background: linear-gradient(135deg, var(--bg-main) 60%, var(--bg-alt) 100%);
}

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

.hero-subtitle {
    display: inline-block;
    padding: 8px 16px;
    background: #fff5f5;
    color: var(--accent-color);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 24px;
    border: 1px solid #ffcdd2;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .hero-btns {
        flex-direction: column;
    }
}

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

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

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

.grid {
    display: grid;
    gap: 30px;
}

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

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    background: var(--bg-card);
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-md);
    padding: 40px 30px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--accent-color);
}

/* ==========================================================================
   Pricing Tables
   ========================================================================== */
.pricing-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--accent-color);
    border-width: 2px;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.price span {
    font-size: 1.5rem;
    margin-top: 10px;
}

.price-period {
    color: var(--text-muted);
    font-size: 1rem;
    display: block;
    margin-top: -10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-main);
    font-weight: 500;
}

.pricing-features li:last-child {
    margin-bottom: 30px;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-question:hover {
    background: #fdfdfd;
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-item.active .faq-question {
    color: var(--accent-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 500px;
}

/* ==========================================================================
   Content Block (SEO Text)
   ========================================================================== */
.content-block {
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #e8e8e8;
}

.content-block h2 { margin-top: 40px; }
.content-block h2:first-child { margin-top: 0; }
.content-block h3 { margin-top: 30px; font-size: 1.5rem; }
.content-block ul { margin-bottom: 20px; padding-left: 20px; }
.content-block li { margin-bottom: 10px; color: var(--text-muted); list-style-type: disc; }
.content-block p { font-size: 1.125rem; line-height: 1.8; margin-bottom: 24px; }
.content-block a { color: var(--accent-color); font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   Floating WhatsApp & Cookie Consent
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.05);
    background: var(--success-hover);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        padding: 15px;
    }
    .floating-whatsapp span {
        display: none;
    }
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    color: var(--white);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent p {
    margin: 0;
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #111111;
    color: #cccccc;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888888;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #555555;
    font-size: 0.875rem;
}

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

/* Helpers */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
