:root {
    --navy: #0F172A;
    --navy-light: #1E293B;
    --steel: #475569;
    --slate-light: #94A3B8;
    --gold: #B45309;
    --gold-hover: #D97706;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gold { color: #D97706; }
.text-white { color: var(--white); }
.text-slate { color: #CBD5E1; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.bg-navy { background-color: var(--navy); }

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--white);
    background-color: rgba(255,255,255,0.08);
}

.btn-outline-dark {
    border-color: var(--navy);
    color: var(--navy);
}

.btn-outline-dark:hover {
    background-color: var(--navy);
    color: var(--white);
}

.btn-gold-sm {
    background-color: var(--gold);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-gold-sm:hover { background-color: var(--gold-hover); }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    color: #D97706;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #E2E8F0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover { color: #D97706; }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #172554 100%);
    color: var(--white);
    padding: 150px 0 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.badge-gold {
    display: inline-block;
    background-color: rgba(180, 83, 9, 0.2);
    border: 1px solid #D97706;
    color: #FBBF24;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-lead {
    font-size: 1.12rem;
    color: #CBD5E1;
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 45px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.metric-num {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--white);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--slate-light);
}

.metric-divider {
    width: 1px;
    height: 36px;
    background-color: rgba(255,255,255,0.15);
}

.hero-frame {
    position: relative;
    border-radius: 12px;
    overflow: visible;
}

.hero-frame img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(217, 119, 6, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.hero-card-float {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--navy-light);
    border: 1px solid rgba(217, 119, 6, 0.5);
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.hero-card-float i { font-size: 1.8rem; }
.hero-card-float strong { display: block; font-size: 0.9rem; }
.hero-card-float span { font-size: 0.8rem; color: var(--slate-light); }

/* Secciones Generales */
.section { padding: 90px 0; }

.section-header {
    max-width: 720px;
    margin: 0 auto 55px;
}

.section-header:not(.text-center) { margin-left: 0; }

.section-tag {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--steel);
    font-size: 1.05rem;
}

/* Problemas */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.problem-card {
    background: var(--white);
    padding: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(15, 23, 42, 0.06);
    color: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.problem-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.problem-card p { color: var(--steel); font-size: 0.95rem; }

/* Hitos */
.hitos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.hito-item {
    background-color: var(--navy-light);
    padding: 36px;
    border-radius: 10px;
    border-top: 4px solid var(--gold);
}

.hito-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(217, 119, 6, 0.35);
    display: block;
    margin-bottom: 10px;
}

.hito-item h3 { font-size: 1.25rem; margin-bottom: 12px; }
.hito-item p { color: #CBD5E1; font-size: 0.95rem; }

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.service-header i {
    font-size: 1.8rem;
    color: var(--gold);
}

.service-header h3 { font-size: 1.3rem; }
.service-card p { color: var(--steel); margin-bottom: 20px; }

.service-list {
    list-style: none;
    margin-bottom: 24px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.service-link {
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover { color: var(--gold); }

/* Perfil / About */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 { font-size: 2rem; margin-bottom: 20px; }
.about-content p { color: var(--steel); margin-bottom: 16px; }

.pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

.pillar {
    background: var(--white);
    padding: 20px;
    border-left: 3px solid var(--gold);
    border-radius: 6px;
}

.pillar strong { display: block; font-family: var(--font-heading); margin-bottom: 6px; }
.pillar span { font-size: 0.9rem; color: var(--steel); }

.credential-box {
    background-color: var(--navy);
    color: var(--white);
    padding: 36px;
    border-radius: 10px;
}

.credential-box h3 { margin-bottom: 22px; font-size: 1.3rem; }
.credential-box ul { list-style: none; margin-bottom: 26px; }
.credential-box li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #E2E8F0;
}

.external-links {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.external-links span { font-size: 0.85rem; color: var(--slate-light); }
.external-links a {
    color: #FBBF24;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Insights */
.featured-article {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 44px;
}

.article-meta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.featured-article h3 { font-size: 1.6rem; margin-bottom: 16px; }
.featured-article p { color: var(--steel); margin-bottom: 24px; max-width: 850px; }

.article-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.article-steps div {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.92rem;
}

/* Citas y Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 { font-size: 2.1rem; margin-bottom: 16px; }
.contact-methods { margin-top: 32px; display: flex; flex-direction: column; gap: 22px; }

.method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.method i { font-size: 1.4rem; width: 28px; }
.method strong { display: block; font-size: 0.9rem; }
.method span, .method a { color: #CBD5E1; text-decoration: none; font-size: 0.95rem; }
.method a:hover { color: #FBBF24; }

.appointment-box {
    background-color: var(--white);
    color: var(--navy);
    padding: 40px;
    border-radius: 12px;
}

.appointment-box h3 { font-size: 1.4rem; margin-bottom: 24px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* Footer & WhatsApp */
.footer {
    background-color: #090E1A;
    color: var(--slate-light);
    padding: 45px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #CBD5E1; text-decoration: none; font-size: 0.9rem; }
.footer-copy { font-size: 0.85rem; }

.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    background-color: #16A34A;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.08); }

/* Página Gracias */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.thanks-card {
    max-width: 600px;
    background-color: var(--navy-light);
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid var(--gold);
}

.thanks-icon { font-size: 3.5rem; margin-bottom: 16px; }
.thanks-card h1 { font-size: 1.9rem; margin-bottom: 16px; }
.thanks-card p { color: #CBD5E1; margin-bottom: 30px; }
.thanks-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 968px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .problem-grid, .hitos-grid, .services-grid, .article-steps { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.3rem; }
    .hero-card-float { left: 10px; bottom: 10px; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--navy);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu.active { display: flex; }
    .hamburger { display: block; }
}