:root {
    --bg-primary: #fef8f2;
    --bg-white: #ffffff;
    --bg-navy: #3b2a1f;
    --bg-navy-light: #5e4332;
    --text-dark: #2b1b0f;
    --text-body: #5c3f2b;
    --text-muted: #9c7b62;
    --accent: #9b2c2c;
    --accent-light: #b84c4c;
    --accent-dark: #6e1e1e;
    --border: #e6d5c5;
    --border-light: #f5ede5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* El resto del CSS es exactamente igual que el anterior */
/* (copia todo el contenido desde "*" hasta "::selection") */

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-body);
    line-height: 1.6;
}
h1, h2, h3, h4 { font-family: 'DM Sans', sans-serif; font-weight: 600; color: var(--text-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
p { margin-bottom: 1rem; }
.text-accent { color: var(--accent); font-style: italic; font-family: 'Playfair Display', serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 3rem; } }

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(244, 249, 247, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
@media (min-width: 768px) { .header-inner { height: 80px; } }
.logo { display: flex; flex-direction: column; gap: 2px; }
.logo-name { font-weight: 600; font-size: 1.125rem; color: var(--text-dark); }
.logo-title { font-size: 0.75rem; color: var(--text-muted); }

.nav-desktop { display: none; }
@media (min-width: 768px) { .nav-desktop { display: flex; gap: 2.5rem; } }
.nav-link { font-size: 0.9375rem; font-weight: 500; color: var(--text-body); padding: 0.5rem 0; position: relative; transition: 0.2s; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--text-dark); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 24px; height: 2px; background: var(--text-dark); transition: 0.2s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
    position: fixed; top: 72px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border);
    padding: 1.5rem; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999;
}
.nav-mobile.active { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-mobile .nav-link { display: block; padding: 1rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--border-light); }

/* Pages */
.page { display: none; padding-top: 72px; opacity: 0; transform: translateY(20px); transition: 0.5s; }
@media (min-width: 768px) { .page { padding-top: 80px; } }
.page.active { display: block; opacity: 1; transform: translateY(0); }

/* Hero */
.hero { min-height: calc(100vh - 72px); display: flex; align-items: center; padding: 3rem 0; position: relative; overflow: hidden; }
.hero-bg::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 150%; background: radial-gradient(ellipse, rgba(15, 118, 110, 0.06) 0%, transparent 70%); }
.hero-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: white; border: 1px solid var(--border); border-radius: 100px; padding: 0.5rem 1rem; font-size: 0.8125rem; margin-bottom: 1.5rem; color: var(--text-muted); }
.hero-badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero-title { margin-bottom: 1.5rem; max-width: 600px; }
.hero-description { font-size: 1.125rem; max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 480px) { .hero-actions { flex-direction: row; } }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; font-weight: 600; border-radius: var(--radius-sm); transition: 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-dark); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-dark); background: white; }

.hero-contact { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }
.hero-contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; }
.hero-contact-items { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.hero-contact-item { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.hero-contact-item svg { width: 20px; color: var(--accent); }
.hero-contact-item a:hover { color: var(--accent); }

.hero-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); }
.hero-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); }
.hero-card-avatar { width: 56px; height: 56px; background: linear-gradient(135deg, var(--bg-navy), var(--bg-navy-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 1.25rem; }
.hero-card-name { font-weight: 600; color: var(--text-dark); }
.hero-card-title { font-size: 0.875rem; color: var(--text-muted); }
.hero-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.hero-stat-number { font-size: 1.75rem; font-weight: 600; color: var(--accent); }
.hero-stat-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); }

/* Practice Areas */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-label { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 1rem; }
.practice-section { background: white; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.practice-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .practice-grid { grid-template-columns: repeat(3, 1fr); } }
.practice-card { position: relative; padding: 2rem; background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: var(--radius-md); transition: 0.3s; }
.practice-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.practice-icon { width: 48px; height: 48px; background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.practice-icon svg { width: 24px; color: var(--accent); }
.practice-card h3 { margin-bottom: 0.75rem; }
.practice-card p { font-size: 0.9375rem; color: var(--text-muted); }
.practice-number { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 0.75rem; font-weight: 600; color: var(--text-light); }

/* About */
.about-hero { padding: 4rem 0 3rem; background: white; border-bottom: 1px solid var(--border-light); }
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.about-photo-img { width: 100%; max-width: 400px; aspect-ratio: 3/4; background: linear-gradient(135deg, #e8e6e3, #d4d2cf); border-radius: var(--radius-md); overflow: hidden; }
.about-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-frame { position: absolute; top: 1rem; left: 1rem; right: -1rem; bottom: -1rem; border: 2px solid var(--accent); opacity: 0.3; z-index: -1; }
.about-intro { font-size: 1.25rem; margin-bottom: 2rem; }
.credentials-grid { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 768px) { .credentials-grid { grid-template-columns: repeat(2, 1fr); } }
.credentials-box { padding: 2rem; background: white; border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.credentials-box h3 { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.credentials-box h3 svg { width: 20px; color: var(--accent); }
.credentials-list { list-style: none; }
.credentials-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; font-size: 0.9375rem; }
.credentials-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.values-section { background: var(--bg-navy); color: white; }
.values-section .section-label { color: var(--accent-light); }
.values-section .section-title { color: white; }
.values-grid { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { padding: 2rem; background: var(--bg-navy-light); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); transition: 0.3s; }
.value-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.value-number { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 600; color: var(--accent); margin-bottom: 1rem; }
.value-card h3 { color: white; margin-bottom: 0.75rem; }
.value-card p { color: var(--text-light); font-size: 0.9375rem; }

/* Contact */
.contact-hero { padding: 4rem 0; background: white; border-bottom: 1px solid var(--border-light); text-align: center; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; padding: 1.5rem; background: white; border: 1px solid var(--border-light); border-radius: var(--radius-md); transition: 0.3s; }
.contact-item:hover { border-color: var(--accent); }
.contact-item-icon { width: 48px; height: 48px; background: var(--bg-primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.contact-item-icon svg { width: 22px; color: var(--accent); }
.contact-item-content h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.contact-item-content a { color: var(--text-dark); font-weight: 500; }
.contact-item-content a:hover { color: var(--accent); }
.contact-map-img { height: 200px; background: linear-gradient(135deg, #e8e6e3, #d4d2cf); display: flex; align-items: center; justify-content: center; color: var(--text-muted); border-radius: var(--radius-md); }
.practice-reminder { background: white; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 1.5rem; }
.practice-reminder-list { list-style: none; }
.practice-reminder-list li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; }
.practice-reminder-list li::before { content: '✔'; color: var(--accent); position: absolute; left: 0; }

/* Footer */
.footer { background: var(--bg-navy); color: var(--text-light); padding: 3rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-brand-name { font-weight: 600; color: white; font-size: 1.125rem; }
.footer-copy { font-size: 0.8125rem; color: var(--text-muted); }

/* Animations */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
::selection { background: var(--accent); color: white; }