/* ============================================================
   SAGARCI ABOGADOS — MAIN STYLESHEET v1.0
   ============================================================
   1.  CSS Custom Properties
   2.  Reset & Base
   3.  Typography
   4.  Layout
   5.  Buttons
   6.  Navigation
   7.  WhatsApp Button
   8.  Hero
   9.  Stats
   10. Propuesta de Valor
   11. Services Grid
   12. Reviews
   13. CTA Sections
   14. Footer
   15. Page: Servicios
   16. Page: El Despacho
   17. Page: Casos de Éxito
   18. Page: Primera Consulta
   19. Page: Contacto
   20. Single: Servicio
   21. Breadcrumbs
   22. 404
   23. Animations
   24. Responsive
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --primary:       #C9A07D;
    --primary-dark:  #AF825F;
    --bg:            #FFFFFF;
    --bg-alt:        #FAF8F6;
    --text:          #3A3A3A;
    --body:          #5C5C5C;
    --muted:         #8A8A8A;
    --border:        #E4DBD3;

    --font-serif:    'Cormorant Garamond', 'Playfair Display', 'EB Garamond', Georgia, serif;
    --font-sans:     'Jost', system-ui, -apple-system, sans-serif;

    --container:     1200px;
    --gap:           8px;

    --radius-sm:     4px;
    --radius-md:     8px;

    --transition:    200ms ease;
    --transition-md: 300ms ease;

    --header-h:      72px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    color: var(--body);
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* Accessibility: skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-family: var(--font-sans);
    font-size: 14px;
    border-radius: var(--radius-sm);
}
.skip-link:focus {
    top: 8px;
    left: 8px;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text);
    font-weight: 400;
    line-height: 1.15;
}

h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.5vw, 36px); line-height: 1.2; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }

/* H3 as eyebrow / label */
h3, .eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    line-height: 1.4;
}

p {
    max-width: 68ch;
    line-height: 1.75;
}

.lead {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 300;
    line-height: 1.65;
    color: var(--body);
}

.caption {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--muted);
}

strong { font-weight: 500; }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: 96px;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-header {
    margin-bottom: 64px;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered p {
    margin-inline: auto;
}

.section-header .eyebrow {
    display: block;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.divider {
    width: 48px;
    height: 0.5px;
    background: var(--primary);
    margin-block: 24px;
}

.divider.centered {
    margin-inline: auto;
}

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

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: 0.5px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--bg-alt);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 10px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 12px;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* ============================================================
   6. NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--bg);
    border-bottom: 0.5px solid transparent;
    transition: border-color var(--transition-md), background-color var(--transition-md);
    height: var(--header-h);
}

.site-header.is-sticky {
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 2px;
    cursor: pointer;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.logo-tagline {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
}

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list li a {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--body);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 100%;
    height: 0.5px;
    background-color: var(--primary);
    transition: right var(--transition-md);
}

.nav-list li a:hover,
.nav-list li.current-menu-item > a {
    color: var(--primary);
}

.nav-list li a:hover::after,
.nav-list li.current-menu-item > a::after {
    right: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 0.5px;
    background-color: var(--text);
    transition: transform var(--transition-md), opacity var(--transition);
}

.hamburger.is-active .hamburger-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.is-active .hamburger-bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Body offset for fixed header */
body { padding-top: var(--header-h); }

/* ============================================================
   7. WHATSAPP BUTTON
   ============================================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 14px 20px;
    cursor: pointer;
    transition: transform var(--transition), background-color var(--transition);
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
    color: #fff;
}

.whatsapp-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
    min-height: calc(92vh - var(--header-h));
    display: flex;
    align-items: center;
    border-bottom: 0.5px solid var(--border);
    padding-block: 96px 80px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
    display: block;
    max-width: none;
}

.hero h1 {
    font-size: clamp(44px, 5.5vw, 64px);
    line-height: 1.05;
    margin-bottom: 28px;
    color: var(--text);
}

.hero h1 em {
    font-style: italic;
    color: var(--primary);
}

.hero-sub {
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 300;
    line-height: 1.75;
    color: var(--body);
    margin-bottom: 40px;
    max-width: 52ch;
}

.hero-image {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 0.5px solid var(--border);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) sepia(15%);
}

.hero-image-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.92);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--primary);
}

.hero-image-caption p {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--body);
    max-width: none;
    line-height: 1.5;
}

.hero-image-caption strong {
    font-size: 14px;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

/* ============================================================
   9. STATS
   ============================================================ */
.stats-section {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

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

.stat-item {
    padding: 48px 40px;
    border-right: 0.5px solid var(--border);
    text-align: center;
}

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

.stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.stat-prefix,
.stat-suffix {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 40px);
    color: var(--primary);
    font-weight: 300;
}

.stat-counter {
    font-family: var(--font-serif);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 300;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.4;
}

.stat-note {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--primary);
    margin-top: 8px;
    letter-spacing: 0;
    font-weight: 400;
}

/* ============================================================
   10. PROPUESTA DE VALOR
   ============================================================ */
.valor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.valor-card {
    padding: 48px 40px;
    border-right: 0.5px solid var(--border);
    border-top: 0.5px solid var(--border);
}

.valor-card:last-child {
    border-right: none;
}

.valor-number {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 300;
    color: var(--border);
    line-height: 1;
    margin-bottom: 24px;
}

.valor-card h4 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text);
}

.valor-card p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--body);
    max-width: none;
}

/* ============================================================
   11. SERVICES GRID
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.service-card {
    padding: 40px 32px;
    border-right: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    transition: background-color var(--transition-md);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-last-child(-n+3) { border-bottom: none; }

.service-card:hover {
    background-color: var(--bg-alt);
}

.service-card.featured {
    background-color: var(--bg-alt);
}

.service-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    border: 0.5px solid var(--primary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.7;
    max-width: none;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 24px;
    transition: gap var(--transition);
}

.service-card:hover .service-card-link { gap: 12px; }

.service-card-link svg { flex-shrink: 0; }

/* Services page full list */
.services-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-full-card {
    padding: 40px 32px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color var(--transition-md), background-color var(--transition-md);
}

.service-full-card:hover {
    border-color: var(--primary);
    background-color: var(--bg-alt);
}

/* ============================================================
   12. REVIEWS
   ============================================================ */
.reviews-section {
    padding-block: 96px;
    background-color: var(--bg-alt);
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}

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

.review-card {
    background-color: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.review-stars svg {
    color: var(--primary);
}

.review-text {
    font-style: italic;
    font-size: 16px;
    line-height: 1.75;
    color: var(--body);
    margin-bottom: 20px;
    max-width: none;
}

.review-author {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.05em;
}

.review-date {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.reviews-cta {
    text-align: center;
}

.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.google-score {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 300;
    color: var(--text);
    line-height: 1;
}

.google-details {
    text-align: left;
}

.google-details .review-stars { margin-bottom: 6px; }

.google-count {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--muted);
}

/* ============================================================
   13. CTA SECTIONS
   ============================================================ */
.cta-section {
    padding-block: 96px;
    text-align: center;
    border-top: 0.5px solid var(--border);
}

.cta-section.bg-alt {
    background-color: var(--bg-alt);
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section .lead {
    margin-inline: auto;
    margin-bottom: 40px;
    max-width: 56ch;
}

.cta-note {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--muted);
    margin-top: 20px;
}

/* Colaboradores */
.colaboradores-section {
    padding-block: 64px;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}

.colaboradores-label {
    text-align: center;
    margin-bottom: 40px;
}

.logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.logo-item {
    opacity: 0.55;
    transition: opacity var(--transition);
    filter: grayscale(100%);
    max-height: 40px;
}

.logo-item:hover { opacity: 0.9; filter: grayscale(0%); }

.logo-placeholder {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--muted);
    border: 0.5px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer {
    background-color: #3A3A3A;
    color: #B8ADA5;
    border-top: 0.5px solid rgba(255,255,255,0.08);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 64px;
    padding-block: 80px;
}

.footer-logo .logo-name {
    color: #E8E2DC;
}

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

.footer-desc {
    font-size: 14px;
    line-height: 1.75;
    color: #8A8279;
    margin-block: 20px;
    max-width: 36ch;
}

.footer-contact {
    font-style: normal;
    font-size: 14px;
    color: #8A8279;
    line-height: 1.75;
}

.footer-link {
    color: #B8ADA5;
    transition: color var(--transition);
}
.footer-link:hover { color: var(--primary); }

.footer-heading {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #E8E2DC;
    margin-bottom: 24px;
}

.footer-links li + li { margin-top: 12px; }

.footer-links a {
    font-size: 14px;
    color: #8A8279;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }

.footer-cta p {
    font-size: 14px;
    color: #8A8279;
    margin-bottom: 24px;
    max-width: 28ch;
}

.footer-cta .btn-primary { margin-bottom: 12px; }
.footer-cta .btn-secondary {
    color: #B8ADA5;
    border-color: rgba(184, 173, 165, 0.4);
}
.footer-cta .btn-secondary:hover {
    background-color: rgba(255,255,255,0.05);
    color: #E8E2DC;
}

.footer-bottom {
    border-top: 0.5px solid rgba(255,255,255,0.08);
    padding-block: 24px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy, .footer-reg {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #5C5853;
    max-width: none;
    line-height: 1.5;
}

.footer-copy a {
    color: #5C5853;
    transition: color var(--transition);
}
.footer-copy a:hover { color: var(--primary); }

/* ============================================================
   15. PAGE: SERVICIOS
   ============================================================ */
.page-hero {
    padding-block: 80px 64px;
    border-bottom: 0.5px solid var(--border);
}

.page-hero-inner {
    max-width: 720px;
}

.page-hero .eyebrow {
    display: block;
    margin-bottom: 16px;
}

.page-hero h1 {
    margin-bottom: 20px;
}

.page-hero .lead {
    max-width: 58ch;
}

.services-intro {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.services-intro .section-header { margin-bottom: 48px; }

/* ============================================================
   16. PAGE: EL DESPACHO
   ============================================================ */
.despacho-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.valor-item {
    padding: 40px;
    border-right: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}

.valor-item:nth-child(2n) { border-right: none; }
.valor-item:nth-last-child(-n+2) { border-bottom: none; }

.valor-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.valor-item p {
    font-size: 15px;
    color: var(--body);
    max-width: none;
}

.credenciales-section {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.caso-destacado {
    padding: 56px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--bg-alt);
    margin-top: 64px;
}

.caso-destacado-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.caso-destacado h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 16px;
}

.caso-stat-row {
    display: flex;
    gap: 48px;
    margin-top: 32px;
}

.caso-stat strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 300;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.caso-stat span {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.equipo-section {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

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

.equipo-card {
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.equipo-foto {
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: var(--bg-alt);
}

.equipo-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) sepia(10%);
}

.equipo-info {
    padding: 24px;
}

.equipo-info h4 {
    font-size: 20px;
    margin-bottom: 4px;
}

.equipo-cargo {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.equipo-info p {
    font-size: 14px;
    color: var(--body);
    max-width: none;
}

/* ============================================================
   17. PAGE: CASOS DE ÉXITO
   ============================================================ */
.casos-hero {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.caso-estrella {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.caso-estrella-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.caso-estrella-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.caso-stat-card {
    padding: 32px 24px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.caso-stat-card .number {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 300;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.caso-stat-card .label {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resultados-section {
    padding-block: 80px;
    background-color: var(--bg-alt);
    border-bottom: 0.5px solid var(--border);
}

.resultado-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
    padding-block: 40px;
    border-bottom: 0.5px solid var(--border);
}

.resultado-item:last-child { border-bottom: none; }

.resultado-number {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 300;
    color: var(--border);
    line-height: 0.9;
    min-width: 80px;
    text-align: right;
}

.resultado-content h4 {
    font-size: 22px;
    margin-bottom: 12px;
}

.testimonios-section {
    padding-block: 80px;
}

.placeholder-testimonios {
    padding: 64px 48px;
    border: 0.5px dashed var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.placeholder-testimonios p {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--muted);
    margin-inline: auto;
}

/* ============================================================
   18. PAGE: PRIMERA CONSULTA
   ============================================================ */
.consulta-hero {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.proceso-section {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.proceso-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.proceso-step {
    padding: 48px 40px;
    border-right: 0.5px solid var(--border);
}

.proceso-step:last-child { border-right: none; }

.paso-numero {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 300;
    color: var(--border);
    line-height: 1;
    margin-bottom: 24px;
}

.proceso-step h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.proceso-step p {
    font-size: 15px;
    color: var(--body);
    max-width: none;
}

.booking-section {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.booking-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.booking-info h4 {
    font-size: 20px;
    margin-bottom: 16px;
}

.booking-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-block: 24px;
}

.booking-type {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--body);
}

.booking-type-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    flex-shrink: 0;
}

.booking-embed {
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-alt);
}

.booking-embed iframe {
    display: block;
    border: none;
}

.booking-embed-placeholder {
    padding: 48px;
    text-align: center;
}

.booking-embed-placeholder h4 { margin-bottom: 12px; }

.booking-embed-placeholder p {
    font-size: 14px;
    color: var(--muted);
    margin-inline: auto;
    margin-bottom: 24px;
}

.objeciones-section {
    padding-block: 80px;
    background-color: var(--bg-alt);
    border-top: 0.5px solid var(--border);
}

.faq-list {
    max-width: 768px;
    margin-inline: auto;
}

.faq-item {
    border-bottom: 0.5px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 24px;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--text);
    font-weight: 400;
    line-height: 1.3;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: color var(--transition);
}

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

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform var(--transition-md);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--primary);
    border-radius: 1px;
}

.faq-icon::before {
    width: 14px;
    height: 0.5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 0.5px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition), transform var(--transition-md);
}

.faq-item.is-open .faq-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    font-size: 15px;
    color: var(--body);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-md), padding var(--transition-md);
    padding-bottom: 0;
}

.faq-item.is-open .faq-answer {
    max-height: 400px;
    padding-bottom: 24px;
}

/* ============================================================
   19. PAGE: CONTACTO
   ============================================================ */
.contacto-hero {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.contacto-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.contacto-info h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.contacto-dato {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 32px;
}

.contacto-dato-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.contacto-dato-value {
    font-size: 16px;
    color: var(--text);
}

.contacto-dato-value a {
    color: var(--primary);
    transition: color var(--transition);
}

.contacto-dato-value a:hover { color: var(--primary-dark); }

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--body);
}

.form-label .required {
    color: var(--primary);
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 15px;
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-select-wrapper {
    position: relative;
}

.form-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--muted);
    pointer-events: none;
}

.form-select { padding-right: 40px; }

/* Honeypot */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

.form-note {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    max-width: none;
}

.form-note a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 0.5px;
}

.form-feedback {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 13px;
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: #f0fdf4;
    border: 0.5px solid #86efac;
    color: #166534;
}

.form-feedback.error {
    display: block;
    background-color: #fef2f2;
    border: 0.5px solid #fca5a5;
    color: #991b1b;
}

.mapa-section {
    border-top: 0.5px solid var(--border);
}

.mapa-section iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: none;
    filter: grayscale(30%) sepia(10%);
}

/* ============================================================
   20. SINGLE: SERVICIO
   ============================================================ */
.servicio-hero {
    padding-block: 80px;
    border-bottom: 0.5px solid var(--border);
}

.servicio-content {
    padding-block: 80px;
}

.servicio-inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 80px;
    align-items: start;
}

.servicio-body h2 {
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 48px;
}

.servicio-body h2:first-child { margin-top: 0; }

.servicio-body p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--body);
    margin-bottom: 16px;
    max-width: 68ch;
}

.servicio-faq { margin-top: 48px; }

.servicio-sidebar { position: sticky; top: calc(var(--header-h) + 32px); }

.precio-card {
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.precio-card-header {
    background-color: var(--bg-alt);
    padding: 24px;
    border-bottom: 0.5px solid var(--border);
}

.precio-card-header h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.precio-tag {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
}

.precio-card-body {
    padding: 24px;
}

.precio-valor {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 300;
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}

.precio-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: none;
}

.sidebar-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-cta .btn { width: 100%; justify-content: center; }

.otros-servicios {
    margin-top: 24px;
    padding: 24px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
}

.otros-servicios h5 {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.otros-servicios li + li { margin-top: 10px; }

.otros-servicios a {
    font-size: 14px;
    color: var(--body);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.otros-servicios a:hover { color: var(--primary); }

/* ============================================================
   21. BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    padding-block: 16px;
    border-bottom: 0.5px solid var(--border);
    background-color: var(--bg);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumbs li {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li::after {
    content: '/';
    color: var(--border);
}

.breadcrumbs li:last-child::after { display: none; }

.breadcrumbs a {
    color: var(--muted);
    transition: color var(--transition);
}

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

.breadcrumbs [aria-current] { color: var(--body); }

/* ============================================================
   22. 404
   ============================================================ */
.not-found {
    min-height: calc(70vh - var(--header-h));
    display: flex;
    align-items: center;
    text-align: center;
    padding-block: 96px;
}

.not-found-inner { max-width: 560px; margin-inline: auto; }

.not-found-number {
    font-family: var(--font-serif);
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 300;
    color: var(--border);
    line-height: 1;
    margin-bottom: 24px;
}

.not-found h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

.not-found p {
    font-size: 16px;
    color: var(--body);
    margin-inline: auto;
    margin-bottom: 40px;
}

/* ============================================================
   23. ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    [data-animate] {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 500ms ease, transform 500ms ease;
    }

    [data-animate="fade"] {
        transform: translateY(0);
    }

    [data-animate].is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    [data-animate-delay="1"] { transition-delay: 80ms; }
    [data-animate-delay="2"] { transition-delay: 160ms; }
    [data-animate-delay="3"] { transition-delay: 240ms; }
    [data-animate-delay="4"] { transition-delay: 320ms; }
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] { opacity: 1; transform: none; }
}

/* ============================================================
   24. RESPONSIVE
   ============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-image { max-width: 480px; aspect-ratio: 16/10; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 0.5px solid var(--border); padding: 40px 32px; }
    .stat-item:last-child { border-bottom: none; }
    .valor-grid { grid-template-columns: 1fr; }
    .valor-card { border-right: none; }
    .valor-card:last-child { border-top: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card:nth-child(3n) { border-right: 0.5px solid var(--border); }
    .service-card:nth-child(2n) { border-right: none; }
    .service-card:nth-last-child(-n+2) { border-bottom: none; }
    .reviews-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
    .despacho-hero { grid-template-columns: 1fr; }
    .caso-estrella-inner { grid-template-columns: 1fr; }
    .servicio-inner { grid-template-columns: 1fr; }
    .servicio-sidebar { position: static; }
    .contacto-inner { grid-template-columns: 1fr; }
    .booking-inner { grid-template-columns: 1fr; }
    .proceso-steps { grid-template-columns: 1fr; }
    .proceso-step { border-right: none; border-bottom: 0.5px solid var(--border); }
    .proceso-step:last-child { border-bottom: none; }
    .services-full-grid { grid-template-columns: repeat(2, 1fr); }
    .equipo-grid { grid-template-columns: repeat(2, 1fr); }
    .valores-grid { grid-template-columns: 1fr; }
    .valor-item { border-right: none; }
    .valor-item:nth-last-child(-n+2) { border-bottom: 0.5px solid var(--border); }
    .valor-item:last-child { border-bottom: none; }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .section { padding-block: 64px; }

    .container { padding-inline: 20px; }

    /* Navigation */
    .hamburger { display: flex; }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 40px 24px;
        gap: 0;
        border-top: 0.5px solid var(--border);
        transform: translateX(100%);
        transition: transform var(--transition-md);
        overflow-y: auto;
        pointer-events: none;
    }

    .site-nav.is-open {
        transform: translateX(0);
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 0.5px solid var(--border);
    }

    .nav-list li a {
        display: block;
        padding: 18px 0;
        font-size: 16px;
    }

    .nav-list li a::after { display: none; }

    .site-nav .btn {
        margin-top: 32px;
        width: 100%;
        justify-content: center;
    }

    /* Hero */
    .hero { min-height: auto; padding-block: 64px 56px; }
    .hero h1 { font-size: clamp(36px, 8vw, 52px); }

    /* Stats */
    .stat-item { padding: 32px 24px; }
    .stat-counter { font-size: clamp(48px, 12vw, 72px); }

    /* Valor */
    .valor-card { padding: 32px 24px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { border-right: none !important; }
    .services-full-grid { grid-template-columns: 1fr; }

    /* Reviews */
    .reviews-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 56px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* WhatsApp */
    .whatsapp-btn { bottom: 20px; right: 20px; padding: 14px; border-radius: 50%; }
    .whatsapp-label { display: none; }

    /* Forms */
    .grid-2 { grid-template-columns: 1fr; gap: 16px; }

    /* Casos */
    .caso-estrella-stats { grid-template-columns: 1fr 1fr; }
    .caso-stat-row { flex-direction: column; gap: 24px; }

    /* Equipo */
    .equipo-grid { grid-template-columns: 1fr; }

    /* Despacho hero */
    .despacho-hero { gap: 48px; }
    .caso-destacado { padding: 32px 24px; }

    /* Breadcrumbs */
    .breadcrumbs { padding-inline: 20px; }
}

/* Smallest: ≤ 375px */
@media (max-width: 375px) {
    h1 { font-size: 36px; }
    .stat-counter { font-size: 56px; }
    .caso-estrella-stats { grid-template-columns: 1fr; }
}
