:root {
    /* Color Palette - Light Theme */
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --accent: #06b6d4;
    --whatsapp: #16a34a;
    --whatsapp-hover: #15803d;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    
    /* Variables */
    --max-width: 1100px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-height: 70px;
}

[data-theme="dark"] {
    /* Color Palette - Dark Theme */
    --bg: #020617;
    --surface: #0f172a;
    --surface-soft: #111827;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #1e293b;
    --primary: #3b82f6;
    --primary-strong: #60a5fa;
    --accent: #22d3ee;
    --whatsapp: #22c55e;
    --whatsapp-hover: #16a34a;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    font-size: clamp(14px, 1vw + 10px, 16px);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--primary-strong);
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.bg-surface { background-color: var(--surface); }
.bg-surface-soft { background-color: var(--surface-soft); }
.bg-primary { background-color: var(--primary); }
.text-white { color: #ffffff !important; }
.text-light { color: #e2e8f0 !important; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }

/* 1. Header */
.header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

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

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

.logo-area .subtitle {
    font-size: 0.75rem;
    color: var(--muted);
}

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

.btn-theme {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-theme:hover {
    background: var(--surface-soft);
}

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

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

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

.btn-header-contact {
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-header-contact:hover {
    background-color: var(--primary-strong);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Sections */
.section {
    padding: clamp(3rem, 5vw + 1rem, 6rem) 0;
    transition: background-color 0.3s ease;
}

.section-title {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: 2px solid transparent;
    min-height: 44px;
}

.btn.lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-height: 36px;
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: #ffffff !important;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn-outline:hover {
    border-color: var(--text);
    background-color: var(--surface-soft);
}

.btn-outline-light {
    background-color: transparent;
    border-color: rgba(255,255,255,0.4);
    color: #ffffff !important;
}

.btn-outline-light:hover {
    border-color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.btn-text {
    background-color: transparent;
    color: var(--primary) !important;
    padding: 12px 16px;
}

.btn-text:hover {
    color: var(--primary-strong) !important;
}

/* 2. Hero */
.hero {
    padding: clamp(3rem, 5vw, 6rem) 0;
    background-color: var(--bg);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: var(--surface-soft);
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.hero-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.indicator {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.profile-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
    margin: 0 auto;
    max-width: 380px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.avatar-container {
    width: 160px;
    aspect-ratio: 3/4;
    margin: 0 auto 1.5rem auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.profile-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.profile-age-location {
    font-size: 0.9rem;
    color: var(--muted);
}

.brand-text {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary) !important;
}

/* 3. Sobre Mi */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
}

.info-card .emoji {
    font-size: 2rem;
}

.info-card .info-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

/* 4. Qué Hago */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

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

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-card p {
    color: var(--muted);
}

/* 5. Servicios Destacados */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
}

.service-card.border-cyan {
    border-top-color: var(--accent);
}

.service-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.badge-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    font-size: 1.5rem;
}

.service-header h4 {
    font-size: 1.15rem;
}

.service-desc {
    margin-bottom: 1rem;
    color: var(--muted);
    flex-grow: 1;
}

.service-ideal {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background: var(--bg);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.service-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* 6. Tarifas */
.pricing-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.pricing-category {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.price-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.price-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    transition: border-color 0.3s, background-color 0.3s;
}

.price-card.highlight {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.badge-small {
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.price-info strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.price-info span {
    font-size: 0.85rem;
    color: var(--muted);
    display: block;
    line-height: 1.4;
}

.price-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    align-self: flex-start;
}

.small-mt {
    margin-top: 0.5rem;
}

.updates-grid .price-card {
    padding: 1.25rem;
}

.pricing-notes {
    margin-top: 2rem;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    border: 1px solid var(--border);
}

.pricing-notes p {
    margin-bottom: 0.75rem;
    color: var(--muted);
}

.pricing-notes p:last-child {
    margin-bottom: 0;
}

/* 7. Cómo trabajo */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--surface);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    padding-top: 3rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 4px solid var(--bg);
}

.step-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

/* 8. Ventajas */
.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.advantages-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface-soft);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
}

/* 9. Demos */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.demo-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.demo-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.demo-card h4 {
    margin-bottom: 0.5rem;
}

.demo-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--muted);
    flex-grow: 1;
}

/* 10. FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--surface-soft);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.faq-item h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

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

/* 11. Contacto */
.contact-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    max-width: 500px;
    margin: 2rem auto;
    text-align: left;
}

.contact-prep-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-prep-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    color: #e2e8f0;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .contact-prep-list {
        grid-template-columns: 1fr;
    }
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-profile {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 700;
}

/* 12. Footer */
.footer {
    background-color: #020617;
    color: #94a3b8;
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-brand {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-credits {
    margin-bottom: 0.5rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .hero-content, .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-indicators {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .btn-theme {
        padding: 4px 10px;
        font-size: 0.8rem;
    }

    .nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 1rem 20px 2rem 20px;
        gap: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: var(--radius-sm);
    }
    
    .nav-link:active {
        background: var(--surface-soft);
    }

    .btn-header-contact {
        width: 100%;
        text-align: center;
    }
    
    .pricing-category {
        padding: 1.5rem;
    }
    
    .service-card.popular {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons .btn {
        width: 100%;
    }
    
    .hero-indicators {
        flex-direction: column;
        align-items: center;
    }
    
    .indicator {
        width: 100%;
        text-align: center;
    }
}
