/* --- CSS Variables --- */
:root {
    /* Palette - Light Mode */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --secondary: #0f172a;
    --secondary-dark: #020617;
    --accent: #fbbf24;
    --border: #e2e8f0;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --font-head: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Palette - Dark Mode */
[data-theme="dark"] {
    --bg-body: #020617;
    --bg-surface: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #14b8a6;
    --primary-dark: #2dd4bf;
    --secondary: #0f172a;
    --secondary-dark: #020617;
    --accent: #fcd34d;
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-main);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

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

.section {
    padding: 5rem 0;
}

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

.grid {
    display: grid;
    gap: 2rem;
}

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

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

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* --- Components --- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.btn:focus {
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 24px 0 rgba(20, 184, 166, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px 0 rgba(13, 148, 136, 0.4),
        0 0 0 4px rgba(13, 148, 136, 0.1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px 0 rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--primary);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.btn-secondary span,
.btn-secondary {
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px 0 rgba(13, 148, 136, 0.15);
}

.btn-secondary:hover::before {
    opacity: 0.05;
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
    cursor: default;
}

.badge:hover {
    background-color: rgba(13, 148, 136, 0.15);
    transform: translateY(-1px);
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(var(--bg-body-rgb, 255, 255, 255), 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.9);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

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

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

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

.nav-links a {
    position: relative;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.25rem 0;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 0;
    background: var(--bg-surface);
    border-radius: 9999px;
    padding: 0.25rem;
}

[data-theme="dark"] .lang-switch {
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background-color: var(--primary);
    color: white;
}

.lang-btn:active {
    transform: scale(0.95);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .material-icons-round {
    font-size: 1.25rem;
}

.theme-toggle:hover {
    background-color: var(--bg-surface);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

.theme-toggle:active {
    transform: rotate(180deg) scale(0.9);
}

/* --- Hero --- */
.hero {
    padding-top: 140px;
    padding-bottom: 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            #0d9488 0%,
            #0f766e 25%,
            #115e59 50%,
            #134e4a 75%,
            #0f172a 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1,
.hero p,
.hero li {
    color: white;
}

.hero .badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .badge:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

.hero .btn-primary:hover {
    background-color: #f8fafc;
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(4px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-bullets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-bullets li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}


/* --- Services --- */
.service-list li {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.service-list li::before {
    content: "•";
    color: var(--primary);
}

/* --- How It Works --- */
.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--border);
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* --- Differentiation --- */
.diff-list li {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.diff-bad li {
    background: rgba(239, 68, 68, 0.05);
    color: var(--text-muted);
}

.diff-bad li::before {
    content: "✕";
    color: #ef4444;
}

.diff-good li {
    background: rgba(16, 185, 129, 0.05);
    color: var(--text-main);
    font-weight: 500;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.diff-good li::before {
    content: "✓";
    color: #10b981;
}

/* --- Pricing --- */
.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0 0;
}

.period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-card.highlight {
    border: 2px solid var(--primary);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.15);
}

.pricing-card.highlight:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.2);
}

/* --- FAQ --- */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.faq-question:hover {
    background-color: var(--bg-surface);
}

.faq-question span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.active .faq-question span:last-child {
    background-color: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    margin-top: 1rem;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* --- Footer --- */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    text-align: center;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials */
.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-rating {
    color: var(--accent);
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.7;
    flex-grow: 1;
    margin: 0;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonial-author strong {
    color: var(--text-main);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-location {
    color: var(--primary) !important;
    font-weight: 500;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 1rem;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3),
            0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3),
            0 0 0 12px rgba(37, 211, 102, 0);
    }
}

.whatsapp-widget:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    animation: none;
}

.whatsapp-widget:active {
    transform: scale(0.95);
}

/* --- Contact Form --- */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Spinner */
.spin {
    animation: spin 1s linear infinite;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}