/* AMS Legal Solutions - Réplica exacta del mockup aprobado */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@1,500&family=Mulish:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0e1320;
    --bg-dark-footer: #0a0e18;
    --bg-cream: #f4f1ea;
    --gold: #c9a96a;
    --gold-dark: #a9824a;
    --text-light: #eef0f4;
    --text-light-dim: #9aa1b1;
    --text-dark: #1a1f2b;
    --text-dark-dim: #444b59;
    --text-dark-dim2: #6b7280;
    --text-dark-dim3: #8a8f9c;
    --footer-dim: #7d8497;
    --footer-dim2: #5b6275;
    --font-display: 'Space Grotesk', sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;

    /* nombres antiguos, mantenidos por compatibilidad con selectores existentes */
    --font-serif: var(--font-display);
    --gold-light: var(--gold);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--bg-cream);
    line-height: 1.65;
    overflow-x: clip;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.hero-grid > *,
.about-grid > *,
.contact-grid > *,
.consulta-grid > *,
.area-block-inner > *,
.area-columns > *,
.footer-grid > * {
    min-width: 0;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-dark);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(201, 169, 106, 0.28);
    border-bottom: 1px solid rgba(238, 240, 244, 0.08);
    color: var(--text-light);
}

.header-inner {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 14px 64px 12px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    white-space: nowrap;
}

.logo-mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 80px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.logo-mark img {
    display: block;
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(1.18) contrast(1.08) drop-shadow(0 0 4px rgba(238, 240, 244, 0.14));
}

.logo-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.logo-title {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

.logo-location {
    display: block;
    padding-left: 1px;
    font-family: var(--font-sans);
    font-size: 9.2px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0.39em;
    text-transform: uppercase;
    color: #d8b873;
    text-shadow: 0 0 8px rgba(216, 184, 115, 0.12);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav { margin-left: auto; }

.main-nav a {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--text-light-dim);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-light);
}

.mobile-nav-cta { display: none; }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(238, 240, 244, 0.18);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-dark);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--bg-dark) !important;
    padding: 11px 22px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-left: 34px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-cta:hover {
    background: var(--gold);
}

/* ===== Overline label ===== */
.overline {
    display: block;
    font-size: 11.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-light);
}

.hero-inner {
    position: relative;
    padding: 72px 64px 64px;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 1px solid rgba(201, 169, 106, 0.18);
}

.hero-ring.r1 { top: 40px; right: 40px; width: 380px; height: 380px; }
.hero-ring.r2 { top: 120px; right: 120px; width: 200px; height: 200px; border-color: rgba(201, 169, 106, 0.12); }

.hero-grid.reveal-group > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-grid.reveal-group.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.hero .overline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    position: relative;
    z-index: 1;
}

.hero .overline::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 84px;
    line-height: 0.96;
    font-weight: 500;
    letter-spacing: -0.035em;
    max-width: 960px;
    margin: 0;
}

.hero h1 .accent-gold { color: var(--gold); }

.hero h1 em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 500;
    color: inherit;
}

.hero-cta-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-top: 42px;
    flex-wrap: wrap;
}

.hero-cta-row p {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-light-dim);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* ===== Franja de cifras ===== */
.stats-grid {
    display: flex;
    border-top: 1px solid rgba(238, 240, 244, 0.1);
    border-bottom: 1px solid rgba(238, 240, 244, 0.1);
}

.bg-cream .stats-grid,
.bg-cream-alt .stats-grid { border-color: rgba(26, 31, 43, 0.12); }
.bg-cream .stat-number,
.bg-cream-alt .stat-number { color: var(--gold-dark); }
.bg-cream .stat-label,
.bg-cream-alt .stat-label { color: var(--text-dark-dim2); }
.bg-cream .stat-block,
.bg-cream-alt .stat-block { border-right-color: rgba(26, 31, 43, 0.1); }

.stat-block {
    flex: 1;
    padding: 40px 30px;
    border-right: 1px solid rgba(238, 240, 244, 0.08);
}

.stat-block:last-child { border-right: none; }

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 50px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light-dim);
    margin-top: 8px;
}

/* ===== Reveal on scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-group > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-group.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-group > *,
    .hero-grid.reveal-group > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Botones ===== */
.btn {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 12.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    cursor: pointer;
    padding: 17px 34px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
    background: var(--gold);
    color: var(--bg-dark);
}

.btn-gold:hover { background: #fff; }

.btn-light {
    background: var(--text-light);
    color: var(--bg-dark);
}

.btn-light:hover { background: var(--gold); }

.btn-dark {
    background: var(--bg-dark);
    color: var(--text-light);
    font-weight: 700;
}

.btn-dark:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.btn-outline-light {
    background: transparent;
    color: #c4c9d4;
    border: 1px solid rgba(238, 240, 244, 0.25);
    padding: 17px 30px;
}

.btn-outline-light:hover {
    border-color: var(--gold);
    color: var(--text-light);
    background: rgba(201, 169, 106, 0.16);
}

/* ===== Secciones generales ===== */
section { padding: 96px 0; }

.section-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 50px;
}

.bg-cream { background: var(--bg-cream); color: var(--text-dark); }
.bg-cream-alt { background: #ece6d7; color: var(--text-dark); }
.bg-dark { background: var(--bg-dark); color: var(--text-light); }
.bg-dark-footer { background: var(--bg-dark-footer); color: var(--text-light); }

/* ===== Áreas de práctica · lista numerada ===== */
.practice-section { padding: 96px 0 8px; }

.practice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.practice-header h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.9rem;
    letter-spacing: -0.025em;
    line-height: 1.05;
    max-width: 560px;
}

.practice-header .overline { margin-bottom: 18px; }

.practice-header p {
    font-size: 14.5px;
    color: var(--text-light-dim);
    max-width: 330px;
    line-height: 1.65;
}

.practice-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(238, 240, 244, 0.1);
}

.practice-row {
    display: grid;
    grid-template-columns: 80px 1fr 1.1fr 40px;
    align-items: center;
    gap: 24px;
    padding: 30px 6px;
    border-bottom: 1px solid rgba(238, 240, 244, 0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.practice-row:hover,
.practice-row:focus-visible {
    background: rgba(201, 169, 106, 0.05);
}

.practice-num {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 13px;
}

.practice-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 27px;
    letter-spacing: -0.01em;
}

.practice-desc {
    font-size: 14px;
    color: var(--text-light-dim);
    line-height: 1.6;
}

.practice-arrow {
    color: var(--gold);
    font-size: 20px;
    text-align: right;
}

/* tarjetas de práctica (servicios.php, valores) */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.practice-item {
    display: block;
    background: #fff;
    border-top: 3px solid var(--gold);
    padding: 34px 28px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.practice-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(20, 18, 15, 0.12);
}

.practice-item h3 {
    font-family: var(--font-display);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1.2rem;
    transition: color 0.25s ease;
}

.practice-item:hover h3 { color: var(--gold-dark); }

.practice-item p {
    color: var(--text-dark-dim);
    font-size: 0.92rem;
}

/* ===== Sobre la firma (fondo claro, imagen + cita) ===== */
.about-section { background: var(--bg-cream); color: var(--text-dark); margin-top: 80px; }

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.about-photo {
    position: relative;
    background: var(--bg-dark);
    min-height: 460px;
    overflow: hidden;
}

.about-photo > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(8, 12, 21, 0.78) 0%, rgba(8, 12, 21, 0.18) 52%, transparent 76%);
}

.about-quote {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    color: var(--bg-cream);
    z-index: 2;
}

.about-quote p {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 30px;
    line-height: 1.15;
}

.about-text .overline { color: var(--gold-dark); margin-bottom: 20px; }

.about-text h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.75rem;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0 0 26px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-dark-dim);
    margin: 0 0 18px;
}

.about-list {
    list-style: none;
    color: var(--text-dark-dim);
    margin-top: 10px;
}

.about-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 31, 43, 0.12);
}

.values-trio {
    display: flex;
    gap: 40px;
    margin-top: 16px;
}

.values-trio-item .num {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 500;
    color: var(--text-dark);
}

.values-trio-item .label {
    font-size: 12.5px;
    color: var(--text-dark-dim2);
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* ===== Historia (interior, fondo oscuro) ===== */
.history-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: repeating-linear-gradient(135deg, rgba(201, 169, 106, 0.08) 0 12px, transparent 12px 24px);
}

.history-year {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
}

.history-caption {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light-dim);
}

/* ===== Sobre la firma · página detallada ===== */
.firma-hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 72px;
}

.firma-hero-ring {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(201, 169, 106, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.firma-hero .overline {
    position: relative;
    z-index: 1;
    margin-bottom: 26px;
}

.firma-hero h1 {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1.06;
    font-weight: 500;
    letter-spacing: -0.025em;
    max-width: 820px;
    margin: 0;
}

.firma-hero p {
    position: relative;
    z-index: 1;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-light-dim);
    max-width: 620px;
    margin: 32px 0 0;
}

.firma-history { padding: 0 0 96px; }

.firma-history-photo {
    position: relative;
    background: #161c2c;
    min-height: 440px;
    border: 1px solid rgba(238, 240, 244, 0.08);
    overflow: hidden;
}

.firma-history-photo > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.firma-history-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(8, 12, 21, 0.2), transparent 45%);
    pointer-events: none;
}

.firma-history-text .overline { margin-bottom: 20px; }

.firma-history-text h2 {
    font-family: var(--font-display);
    font-size: 2.375rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0 0 24px;
    color: var(--text-light);
}

.firma-history-text p {
    font-size: 16px;
    line-height: 1.75;
    color: #c4c9d4;
    margin: 0 0 18px;
}

.firma-history-text p:last-child { margin-bottom: 0; }

.values-section {
    border-top: 1px solid rgba(238, 240, 244, 0.1);
    padding: 88px 0;
}

.values-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 48px;
    max-width: 600px;
    line-height: 1.1;
    color: var(--text-light);
}

.values-lattice {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(238, 240, 244, 0.1);
    border: 1px solid rgba(238, 240, 244, 0.1);
}

.value-cell {
    background: var(--bg-dark);
    padding: 36px 28px;
}

.value-cell .num {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 16px;
}

.value-cell .title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-light);
}

.value-cell p {
    font-size: 13.5px;
    color: var(--text-light-dim);
    line-height: 1.65;
}

.firma-stats-section { padding: 0; }

.firma-quote-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 96px 40px;
    text-align: center;
}

.firma-quote-text {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 36px;
    line-height: 1.4;
    color: var(--text-dark);
}

.firma-quote-attribution {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-top: 26px;
}

.firma-cta-final { padding: 96px 0; }

.firma-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.firma-cta-row h2 {
    font-family: var(--font-display);
    font-size: 2.375rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--text-light);
}

.firma-cta-row p {
    font-size: 15px;
    color: var(--text-light-dim);
    margin: 0;
}

.border-top-hairline { border-top: 1px solid rgba(238, 240, 244, 0.1); }

.team-hero h1 { max-width: 780px; }
.team-hero p { max-width: 600px; }

.team-grid-page { padding: 0 0 96px; }

.team-grid-bios { gap: 28px; }

.team-bio {
    font-size: 13.5px;
    color: #c4c9d4;
    line-height: 1.65;
    margin-top: 14px;
}

/* ===== Equipo (fondo oscuro) ===== */
.team-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.team-section-header h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.9rem;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.team-section-header .view-all {
    font-size: 12.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c4c9d4;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 4px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-grid-detailed {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
}

.team-grid-detailed .team-photo-wrap { aspect-ratio: 16/10; }
.team-grid-detailed .team-role { margin-bottom: 10px; }

.team-card { text-align: left; scroll-margin-top: 24px; }

.team-photo-wrap {
    position: relative;
    aspect-ratio: 3/4;
    background: #161c2c;
    border: 1px solid rgba(238, 240, 244, 0.08);
    overflow: hidden;
    margin-bottom: 18px;
}

.team-photo-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(201, 169, 106, 0.1) 0 10px, transparent 10px 20px);
}

.team-photo-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
}

.team-card .team-role {
    color: var(--gold);
    font-size: 12.5px;
    letter-spacing: 0.06em;
    margin-top: 5px;
}

.team-card .team-area {
    font-size: 13px;
    color: var(--text-light-dim);
    margin-top: 10px;
    line-height: 1.6;
}

.team-card-link { display: block; color: inherit; }

.team-card-link .team-photo-wrap img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.team-card-link:hover .team-photo-wrap img,
.team-card-link:focus-visible .team-photo-wrap img {
    transform: scale(1.06);
    filter: brightness(0.82);
}

.team-card-link h3 { transition: color 0.25s ease; }

.team-card-link:hover h3,
.team-card-link:focus-visible h3 { color: var(--gold); }

.team-card-cta {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.team-card-link:hover .team-card-cta,
.team-card-link:focus-visible .team-card-cta {
    opacity: 1;
    transform: translateY(0);
}

.team-card:target {
    animation: targetHighlight 1.8s ease;
}

@keyframes targetHighlight {
    0%, 100% { box-shadow: none; }
    15%, 60% { box-shadow: 0 0 0 3px var(--gold); }
}

/* ===== Contacto (fondo claro) ===== */
.contact-section { background: var(--bg-cream); color: var(--text-dark); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.contact-intro .overline { color: var(--gold-dark); margin-bottom: 20px; }

.contact-intro h1 {
    font-family: var(--font-display);
    font-size: 3.1rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 0 0 24px;
}

.contact-intro p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-dark-dim);
    max-width: 420px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 44px;
}

.contact-info-item {
    border-top: 1px solid rgba(26, 31, 43, 0.15);
    padding-top: 16px;
}

.info-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dark-dim3);
}

.info-value {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-top: 6px;
}

.contact-card {
    background: #fff;
    padding: 40px;
    border: 1px solid rgba(26, 31, 43, 0.1);
}

.booking-section { padding: 72px 0; }

.booking-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.booking-card {
    padding: 48px 44px;
}

.booking-card .contact-form { gap: 26px; }

.booking-card .btn-block {
    min-height: 56px;
    margin-top: 2px;
}

/* ===== Consulta (fondo oscuro) ===== */
.consulta-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 72px;
}

.consulta-intro .overline { margin-bottom: 24px; }

.consulta-intro h1 {
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.04;
    margin: 0 0 24px;
}

.consulta-intro p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-light-dim);
    max-width: 420px;
    margin: 0 0 48px;
}

.consulta-info-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.consulta-info-item {
    border-top: 1px solid rgba(238, 240, 244, 0.12);
    padding-top: 16px;
}

.consulta-info-list .info-label { color: var(--text-light-dim); }
.consulta-info-list .info-value { color: var(--text-light); }

.consulta-card {
    background: var(--bg-cream);
    color: var(--text-dark);
    padding: 44px;
}

.consulta-card h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
}

.consulta-card > p {
    font-size: 13.5px;
    color: var(--text-dark-dim2);
    margin: 0 0 30px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-dark-dim2);
    line-height: 1.5;
}

.form-check input { margin-top: 3px; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-field label {
    display: block;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dark-dim2);
    margin-bottom: 9px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(26, 31, 43, 0.2);
    background: transparent;
    padding: 6px 0 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

.form-field select {
    border: 1px solid rgba(26, 31, 43, 0.18);
    padding: 12px 14px;
    cursor: pointer;
}

.form-field textarea {
    border: 1px solid rgba(26, 31, 43, 0.18);
    padding: 12px 14px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-block {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: 6px;
}

.alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success { background: #dbe8d8; color: #2e4a2b; }
.alert-error { background: #f0d9d3; color: #7a2e1e; }

/* ===== CTA final ===== */
.cta-final { text-align: center; }

.cta-final h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.2rem;
    max-width: 600px;
    margin: 0 auto 16px;
}

.cta-final p { color: var(--text-light-dim); max-width: 480px; margin: 0 auto 30px; }
.bg-cream-alt.cta-final p, .bg-cream.cta-final p { color: var(--text-dark-dim); }

/* ===== Página interior (servicios, header genérico) ===== */
.page-header {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 70px 0;
}

.page-header h1 { font-family: var(--font-display); font-weight: 500; }

/* ===== Áreas de práctica · página detallada ===== */
.areas-intro {
    padding: 96px 0 48px;
}

.areas-intro .overline { margin-bottom: 22px; }

.areas-intro h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 4rem;
    letter-spacing: -0.025em;
    line-height: 1.05;
    max-width: 820px;
    margin: 0 0 22px;
}

.areas-intro p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-light-dim);
    max-width: 620px;
    margin: 0 0 26px;
}

.area-pills {
    display: flex;
    gap: 10px 22px;
    flex-wrap: wrap;
    font-size: 12.5px;
    letter-spacing: 0.05em;
    border-top: 1px solid rgba(238, 240, 244, 0.1);
    padding-top: 22px;
}

.area-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: var(--gold);
}
.area-pills a:hover { color: var(--text-light); }

.area-block {
    padding: 0;
    border-top: 1px solid rgba(238, 240, 244, 0.1);
    scroll-margin-top: 96px;
}

.area-block-inner {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    padding: 80px 0;
}

.area-num {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--gold);
}

.area-stats {
    display: none;
}

.area-stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-light);
}

.area-stat-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light-dim);
    margin-top: 4px;
}

.area-content h2 {
    font-family: var(--font-display);
    font-size: 2.625rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--text-light);
    margin: 0 0 20px;
}

.area-content > p {
    font-size: 16.5px;
    line-height: 1.75;
    color: #c4c9d4;
    max-width: 760px;
    margin: 0 0 30px;
}

.area-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.area-list-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.area-list-item {
    font-size: 14.5px;
    color: #c4c9d4;
    line-height: 1.7;
    padding: 10px 0;
    border-top: 1px solid rgba(238, 240, 244, 0.08);
    overflow-wrap: anywhere;
}

.area-list-item .step {
    color: var(--gold);
    font-weight: 700;
    margin-right: 8px;
}

.area-cta-row {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.area-consult-btn {
    display: inline-block;
    background: var(--text-light);
    color: var(--bg-dark);
    padding: 15px 28px;
    font-weight: 700;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.area-consult-btn:hover {
    background: var(--gold);
}

.areas-final-cta {
    background: var(--bg-cream);
    color: var(--text-dark);
    text-align: center;
    padding: 80px 0;
}

.areas-final-cta h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.areas-final-cta p {
    font-size: 15.5px;
    color: var(--text-dark-dim);
    max-width: 520px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card h3 { font-size: 1.3rem; }

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(201, 169, 106, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.service-icon svg { width: 22px; height: 22px; color: var(--gold-dark); }

.service-list {
    list-style: none;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #ece5d8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-dark-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-list li::before {
    content: '\203A';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-dark);
    font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-dark-footer);
    color: var(--text-light-dim);
    border-top: 1px solid rgba(201, 169, 106, 0.28);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 64px 0 48px;
    border-bottom: 1px solid rgba(238, 240, 244, 0.08);
}

.footer-logo {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.04em;
    color: var(--text-light);
}

.footer-tagline {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer-desc {
    color: var(--footer-dim);
    max-width: 320px;
    font-size: 13.5px;
    line-height: 1.7;
    margin-top: 22px;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-light-dim);
    font-size: 13.5px;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0 40px;
    font-size: 12px;
    color: var(--footer-dim2);
    flex-wrap: wrap;
    gap: 14px;
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--gold); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .main-nav ul { gap: 18px; }
    .header-cta { padding: 10px 16px; }
}

@media (max-width: 1040px) {
    .hero h1 { font-size: 58px; }
}

@media (max-width: 860px) {
    .container { padding-left: 28px; padding-right: 28px; }
    section { padding: 78px 0; }

    .header-inner { padding: 12px 28px; }
    .logo { order: 0; }
    .header-cta { order: 2; margin-left: auto; }
    .menu-toggle { display: block; order: 3; flex: 0 0 44px; margin-left: 12px; }
    .main-nav {
        display: block;
        position: absolute;
        margin-left: 0;
        z-index: 10;
        top: 100%;
        left: 0;
        right: 0;
        padding: 12px 28px 20px;
        background: #0e1320;
        border-top: 1px solid rgba(238, 240, 244, 0.08);
        border-bottom: 1px solid rgba(201, 169, 106, 0.3);
        box-shadow: 0 18px 30px rgba(5, 8, 14, 0.28);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }
    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav li + li { border-top: 1px solid rgba(238, 240, 244, 0.07); }
    .main-nav a { display: block; padding: 13px 4px; font-size: 15px; }

    .hero-inner { padding: 64px 28px 56px; }
    .hero-grid, .about-grid, .contact-grid, .consulta-grid { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: clamp(42px, 8vw, 54px); }
    .hero-ring.r1 { width: 240px; height: 240px; top: 0; right: -70px; }
    .hero-ring.r2 { width: 140px; height: 140px; top: 60px; right: -20px; }
    .hero-cta-row { align-items: flex-start; }

    .stats-grid { flex-wrap: wrap; }
    .stat-block { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(238, 240, 244, 0.08); }
    .practice-grid { grid-template-columns: 1fr 1fr; }
    .practice-header { flex-direction: column; align-items: flex-start; }
    .practice-row { grid-template-columns: 40px 1fr 24px; }
    .practice-desc { grid-column: 1 / -1; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-col a, .footer-col span, .info-value { overflow-wrap: anywhere; }

    .about-section { margin-top: 0; }
    .about-photo { min-height: 320px; }
    .about-grid, .contact-grid, .consulta-grid { gap: 48px; }

    .firma-hero { padding: 78px 0 58px; }
    .firma-history, .team-grid-page { padding-bottom: 78px; }
    .area-block-inner { grid-template-columns: 1fr; gap: 30px; }
    .areas-intro h1 { font-size: 2.6rem; }
    .firma-hero h1 { font-size: 2.6rem; }
    .firma-hero-ring { width: 220px; height: 220px; }
    .values-lattice { grid-template-columns: repeat(2, 1fr); }
    .firma-quote-text { font-size: 26px; }
    .firma-cta-row { align-items: flex-start; }
}

@media (max-width: 600px) {
    .container { padding-left: 20px; padding-right: 20px; }
    section { padding: 60px 0; }

    .header-inner { padding: 10px 18px; }
    .header-cta { display: none; }
    .menu-toggle { margin-left: auto; }
    .main-nav { padding: 10px 18px 18px; }
    .main-nav .mobile-nav-cta { display: block; margin-top: 12px; border-top: 0; }
    .main-nav .mobile-nav-cta a {
        padding: 13px 18px;
        background: #fff;
        color: var(--bg-dark);
        font-weight: 700;
        text-align: center;
        border-radius: 10px;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .main-nav .mobile-nav-cta a:hover,
    .main-nav .mobile-nav-cta a:focus-visible {
        color: var(--bg-dark);
        background: var(--gold);
    }

    .logo { gap: 9px; }
    .logo-mark { width: 88px; height: 56px; }
    .logo-mark img { height: 56px; }
    .logo-title { font-size: 15.5px; }
    .logo-location { font-size: 7.4px; letter-spacing: 0.28em; }

    .overline { font-size: 10px; letter-spacing: 0.22em; margin-bottom: 14px; }
    .hero-inner { padding: 52px 20px 48px; }
    .hero h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.02; letter-spacing: -0.025em; }
    .hero-cta-row { margin-top: 30px; gap: 28px; }
    .hero-cta-row p { font-size: 15.5px; }
    .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; text-align: center; }

    .stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-block { min-width: 0; padding: 26px 12px; }
    .stat-number, .stats-grid-lg .stat-number { font-size: 36px; }
    .stat-label { font-size: 10px; letter-spacing: 0.07em; }

    .practice-section { padding-top: 60px; }
    .practice-header { margin-bottom: 32px; }
    .practice-header h2, .team-section-header h2 { font-size: 2.15rem; }
    .practice-row { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 12px; padding: 22px 2px; }
    .practice-name { font-size: 21px; line-height: 1.2; }
    .practice-desc { font-size: 13.5px; }

    .area-columns { grid-template-columns: 1fr; gap: 8px; }
    .values-lattice { grid-template-columns: 1fr; }
    .practice-grid, .team-grid { grid-template-columns: 1fr; }
    .team-grid-detailed { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-row { grid-template-columns: 1fr; }
    .contact-card { padding: 28px 22px; }
    .contact-intro h1, .consulta-intro h1 { font-size: 2.25rem; }
    .contact-grid, .consulta-grid { gap: 36px; }
    .consulta-card { padding: 30px 22px; }
    .form-field input, .form-field select, .form-field textarea { font-size: 16px; }

    .values-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .values-trio-item .num { font-size: 23px; }
    .values-trio-item .label { font-size: 11px; }
    .about-text h2 { font-size: 2.15rem; }
    .about-photo { min-height: 270px; }
    .about-quote { left: 22px; right: 22px; bottom: 22px; }
    .about-quote p { font-size: 25px; }

    .hero-cta-row { flex-direction: column; align-items: flex-start; }
    .team-section-header { align-items: flex-start; margin-bottom: 32px; }

    .firma-hero { padding: 60px 0 44px; }
    .firma-hero h1, .areas-intro h1 { font-size: clamp(2.15rem, 10vw, 2.6rem); }
    .firma-hero p { margin-top: 24px; font-size: 15.5px; }
    .firma-hero-ring { right: -90px; top: 20px; }
    .firma-history, .team-grid-page { padding-bottom: 60px; }
    .firma-history-photo { min-height: 280px; }
    .firma-history-text h2, .values-section h2, .firma-cta-row h2 { font-size: 2rem; }
    .values-section { padding: 60px 0; }
    .value-cell { padding: 28px 22px; }
    .firma-quote-wrap { padding: 60px 20px; }
    .firma-quote-text { font-size: 23px; }
    .firma-cta-final { padding: 60px 0; }
    .firma-cta-row { flex-direction: column; align-items: stretch; }
    .firma-cta-row .btn { width: 100%; text-align: center; }

    .areas-intro { padding: 60px 0 36px; }
    .area-pills { gap: 10px 16px; }
    .area-block-inner { padding: 56px 24px; gap: 24px; }
    .area-block { scroll-margin-top: 72px; }
    .area-stats { flex-direction: row; flex-wrap: wrap; gap: 18px 28px; }
    .area-content h2 { font-size: 2rem; }
    .area-content > p { font-size: 15.5px; }
    .area-cta-row { flex-direction: column; align-items: stretch; }
    .area-consult-btn { width: 100%; padding: 14px 18px; text-align: center; overflow-wrap: anywhere; }
    .areas-final-cta { padding: 60px 0; }
    .areas-final-cta h2, .cta-final h2 { font-size: 2rem; }

    .btn { padding: 15px 22px; }
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 26px 0 18px;
        gap: 0;
    }
    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 16px;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(238, 240, 244, 0.08);
        text-align: center;
    }
    .footer-logo { font-size: 20px; }
    .footer-tagline { margin-top: 4px; }
    .footer-desc { max-width: 100%; margin: 10px auto 0; font-size: 13px; }
    .footer-col {
        padding: 14px 0;
        text-align: center;
        background: transparent;
        border: 0;
        border-bottom: 1px solid rgba(238, 240, 244, 0.08);
        border-radius: 0;
    }
    .footer-col h4 { margin-bottom: 6px; }
    .footer-col ul {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 2px 20px;
    }
    .footer-col a, .footer-col li > span {
        display: inline-block;
        padding: 3px 0;
        line-height: 1.45;
    }
    .footer-col:last-child {
        grid-column: auto;
        padding: 14px 0 0;
        border-bottom: 0;
    }
    .footer-col:last-child ul {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        padding: 14px 0 20px;
        font-size: 11px;
        line-height: 1.55;
        text-align: center;
    }
    .footer-legal { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 380px) {
    .header-inner { padding-left: 14px; padding-right: 14px; }
    .logo-mark { width: 76px; height: 48px; }
    .logo-mark img { height: 48px; }
    .logo-title { font-size: 14px; }
    .logo-location { font-size: 6.8px; letter-spacing: 0.23em; }
    .menu-toggle { width: 40px; height: 40px; flex-basis: 40px; }
    .hero h1 { font-size: 33px; }
    .stats-grid { grid-template-columns: 1fr; }
    .values-trio { grid-template-columns: 1fr; }
}
