/* Fuentes auto-alojadas (sin Google Fonts) */
@font-face{font-family:'Archivo';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/archivo-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Archivo';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/archivo-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400 600;font-display:swap;src:url('/fonts/fraunces-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400 600;font-display:swap;src:url('/fonts/fraunces-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/fraunces-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/fraunces-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ==========================================================================
   TUSELL OROVIO ABOGADOS — Sistema de diseño "Dossier editorial"
   Marca: Navy #16163f · Dorado #d3b574 · sobre papel cálido
   Tipografía: Fraunces (display) · Archivo (texto)
   ========================================================================== */

:root {
  --navy: #16163f;
  --navy-2: #20204e;
  --navy-3: #2d2d63;
  --gold: #d3b574;
  --gold-deep: #a9853f;      /* dorado de alto contraste para texto sobre claro */
  --paper: #f6f2ea;
  --paper-2: #ede6d9;
  --paper-3: #e4dccb;
  --ink: #1a1a24;
  --ink-soft: #54545f;
  --white: #ffffff;
  --line: rgba(22, 22, 63, .14);
  --line-strong: rgba(22, 22, 63, .28);
  --line-light: rgba(255, 255, 255, .16);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 30px 70px -30px rgba(22, 22, 63, .35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem; /* 17px a 16px base; escalable por el menú de accesibilidad */
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(211,181,116,.10), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(22,22,63,.06), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-anchor: none; /* evita reajustes de scroll al compactarse el header */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; transition: color .3s var(--ease); }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 .4em;
  font-optical-sizing: auto;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: clamp(70px, 11vw, 150px) 0; position: relative; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); }

/* Kicker / etiqueta de sección, estilo dossier */
.eyebrow {
  font-family: var(--body);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: ''; width: 38px; height: 1px; background: var(--gold-deep); display: inline-block;
}
.bg-navy .eyebrow, .text-gold { color: var(--gold); }
.bg-navy .eyebrow::before { background: var(--gold); }

.section-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.section-head p { font-size: 1.18rem; color: var(--ink-soft); margin: 22px 0 0; }

/* Fondos */
.bg-paper-2 { background: var(--paper-2); }
.bg-paper-3 { background: var(--paper-3); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,.78); position: relative; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy::after { /* textura de filete superior */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 85% 15%, rgba(211,181,116,.14), transparent 45%);
}
.bg-navy > * { position: relative; z-index: 1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 17px 30px; border: 1px solid var(--navy);
  background: var(--navy); color: var(--white) !important;
  cursor: pointer; position: relative; overflow: hidden;
  z-index: 0; /* crea contexto de apilamiento para contener la capa hover */
  transition: color .35s var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: translateY(101%); transition: transform .4s var(--ease);
  z-index: -1; /* la capa dorada va DETRÁS del texto y del icono */
}
.btn:hover { color: var(--navy) !important; border-color: var(--gold); }
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 14px; height: 14px; fill: currentColor; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }

.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy) !important; }
.btn-gold::after { background: var(--navy); }
.btn-gold:hover { color: var(--white) !important; border-color: var(--navy); }

.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy) !important; }
.btn-outline::after { background: var(--navy); }
.btn-outline:hover { color: var(--white) !important; }

.btn-ghost-light { background: transparent; border-color: var(--line-light); color: var(--white) !important; }
.btn-ghost-light::after { background: var(--gold); }
.btn-ghost-light:hover { color: var(--navy) !important; border-color: var(--gold); }

/* Enlace con subrayado animado */
.link-underline { position: relative; font-family: var(--body); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); display: inline-flex; gap: 9px; align-items: center; }
.link-underline::after { content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 100%; background: var(--gold-deep); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.link-underline:hover { color: var(--gold-deep); }
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- Reveal on load ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: fade-up .9s var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 1000; transition: box-shadow .4s var(--ease); }
.site-header.scrolled { box-shadow: 0 14px 40px -22px rgba(22,22,63,.5); }

.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: .8rem; padding: 11px 0; border-bottom: 1px solid var(--line-light); transition: max-height .4s var(--ease), padding .4s var(--ease), opacity .3s var(--ease); overflow: hidden; }
.site-header.scrolled .topbar { padding-top: 0; padding-bottom: 0; max-height: 0; opacity: 0; border-color: transparent; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-info { display: flex; gap: 30px; flex-wrap: wrap; }
.topbar-info a, .topbar-info span { color: rgba(255,255,255,.8); display: inline-flex; align-items: center; gap: 9px; letter-spacing: .02em; }
.topbar-info a:hover { color: var(--gold); }
.topbar-info svg { width: 13px; height: 13px; fill: var(--gold); flex-shrink: 0; }
.topbar-social { display: flex; gap: 16px; align-items: center; }
.topbar-social a, .topbar-search { color: rgba(255,255,255,.8); background: none; border: none; cursor: pointer; padding: 0; display: inline-flex; }
.topbar-social a:hover, .topbar-search:hover { color: var(--gold); }
.topbar-social svg, .topbar-search svg { width: 16px; height: 16px; fill: currentColor; }

.mainbar { background: rgba(246,242,234,.88); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.site-header.scrolled .mainbar { padding: 12px 0; }
.mainbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo img { max-width: 172px; transition: max-width .4s var(--ease); }
.site-header.scrolled .logo img { max-width: 140px; }
.nav-main ul { display: flex; gap: 36px; align-items: center; }
.nav-main a { color: var(--navy); font-family: var(--body); font-weight: 500; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; position: relative; }
.nav-main a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--gold-deep); transition: width .35s var(--ease); }
.nav-main a:hover::after, .nav-main a.active::after { width: 100%; }
.nav-main a:hover, .nav-main a.active { color: var(--gold-deep); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--navy); }
.burger svg { width: 28px; height: 28px; fill: currentColor; }

/* Buscador */
.search-overlay { position: fixed; inset: 0; background: rgba(22,22,63,.97); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.search-overlay.active { display: flex; }
.search-overlay form { width: 100%; max-width: 760px; position: relative; }
.search-overlay input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-light); color: #fff; font-family: var(--display); font-size: clamp(1.8rem, 5vw, 3rem); padding: 16px 0; outline: none; }
.search-overlay input::placeholder { color: rgba(255,255,255,.4); }
.search-close { position: absolute; top: -64px; right: 0; background: none; border: none; color: #fff; cursor: pointer; }
.search-close:hover { color: var(--gold); }
.search-close svg { width: 30px; height: 30px; fill: currentColor; }

/* ==========================================================================
   HERO (home) — editorial asimétrico
   ========================================================================== */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: clamp(90px, 13vw, 170px) 0 clamp(70px, 9vw, 120px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.3) contrast(1.05); z-index: 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(105deg, var(--navy) 18%, rgba(22,22,63,.72) 60%, rgba(22,22,63,.45) 100%); }
.hero::after { content: ''; position: absolute; right: -8%; top: -20%; width: 540px; height: 540px; border: 1px solid var(--line-light); border-radius: 50%; z-index: 1; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 60px; align-items: end; }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 6.6vw, 6rem); font-weight: 600; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero .sub { font-size: 1.22rem; color: rgba(255,255,255,.74); max-width: 540px; margin: 30px 0 40px; line-height: 1.6; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-meta { border-left: 1px solid var(--line-light); padding-left: 34px; }
.hero-meta .mrow { padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.hero-meta .mrow:first-child { padding-top: 0; }
.hero-meta .mrow:last-child { border-bottom: none; }
.hero-meta .k { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; display: block; }
.hero-meta .v { font-family: var(--body); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 8px; display: block; }

/* Hero interior de páginas */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.page-hero .hero-bg { opacity: .18; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, var(--navy) 25%, rgba(22,22,63,.7)); z-index: 1; }
.page-hero .wrap { position: relative; z-index: 2; max-width: 920px; }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero p { color: rgba(255,255,255,.74); font-size: 1.2rem; max-width: 680px; margin: 22px 0 0; }
.breadcrumb { font-family: var(--body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 26px; display: flex; gap: 12px; }
.breadcrumb a { color: var(--gold); }

/* ==========================================================================
   GRIDS
   ========================================================================== */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

/* Servicios = índice editorial con filetes y numeración */
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); counter-reset: idx; }
.index-grid .card { border: none; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.index-grid .card:nth-child(3n) { border-right: none; }
.card {
  position: relative; background: transparent; padding: 46px 40px 44px;
  counter-increment: idx; transition: background .4s var(--ease);
}
.card::before {
  content: '0' counter(idx); position: absolute; top: 40px; right: 40px;
  font-family: var(--display); font-size: 1.1rem; color: var(--gold-deep); opacity: .55;
}
.card:hover { background: var(--white); }
.card .ic { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--gold-deep); margin-bottom: 26px; transition: transform .4s var(--ease); }
.card:hover .ic { transform: translateY(-4px); }
.card .ic svg { width: 34px; height: 34px; fill: currentColor; }
.card h3 { font-size: 1.6rem; }
.card p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.card a.more { display: inline-block; margin-top: 18px; font-family: var(--body); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }

/* Tarjeta simple (no índice) */
.card-plain { background: var(--white); border: 1px solid var(--line); padding: 44px 38px; height: 100%; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card-plain:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-plain h3 { font-size: 1.5rem; }
.card-plain p { color: var(--ink-soft); margin: 0; }

/* Imagen enmarcada editorial */
.figure-frame { position: relative; }
.figure-frame img, .figure-frame { display: block; }
.figure-frame { box-shadow: var(--shadow); }
.figure-frame::after { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.45); pointer-events: none; }
.figure-tag { position: absolute; left: 0; bottom: 26px; background: var(--gold); color: var(--navy); font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 12px 22px; z-index: 2; }

/* Checklist */
.checklist li { position: relative; padding: 14px 0 14px 38px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.checklist li:last-child { border-bottom: none; }
/* Check (✓) limpio dibujado con dos trazos */
.checklist li::before { content: ''; position: absolute; left: 7px; top: 22px; width: 7px; height: 13px; border: solid var(--gold-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 30px; border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num { font-family: var(--display); font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 600; color: var(--gold); display: block; line-height: 1; letter-spacing: -.03em; }
.stat .lbl { font-family: var(--body); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 16px; display: block; }
.bg-paper-2 .stat, .bg-paper-3 .stat { border-color: var(--line); }
.bg-paper-2 .stat .num, .bg-paper-3 .stat .num { color: var(--gold-deep); }
.bg-paper-2 .stat .lbl, .bg-paper-3 .stat .lbl { color: var(--ink-soft); }

/* Bio (Sobre mí) */
.bio { display: grid; grid-template-columns: 280px 1fr; gap: clamp(40px, 6vw, 80px); padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.bio:first-child { border-top: 1px solid var(--line); }
.bio .year { font-family: var(--display); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.bio h3 { font-size: 1.8rem; }
.bio .bio-lead { font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--navy); line-height: 1.3; margin-bottom: 26px; }
.bio p { color: var(--ink-soft); }
.bio p strong { color: var(--navy); font-weight: 600; }

/* Quote editorial */
.quote { font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; color: var(--navy); line-height: 1.34; text-align: center; max-width: 980px; margin: 0 auto; position: relative; padding-top: 50px; }
.quote::before { content: '“'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 5rem; color: var(--gold); line-height: 1; }

/* Principios */
.principle { padding: 40px 34px; background: var(--white); border: 1px solid var(--line); height: 100%; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.principle:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.principle .n { font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: var(--gold-deep); display: block; line-height: 1; margin-bottom: 18px; }
.principle h4 { font-size: 1.35rem; }
.principle p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* Testimonios */
.testimonial { background: var(--white); border: 1px solid var(--line); padding: 42px 38px; height: 100%; display: flex; flex-direction: column; }
.testimonial .stars { color: var(--gold); letter-spacing: 4px; margin-bottom: 20px; font-size: .9rem; }
.testimonial p, .testimonial > :not(.stars):not(.author) { font-family: var(--display); font-style: italic; font-size: 1.32rem; color: var(--navy); line-height: 1.45; margin: 0; }
.testimonial .author { margin-top: auto; padding-top: 22px; font-family: var(--body); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }

/* Pasos / proceso */
.step { padding: 0 24px; position: relative; }
.step .circle { font-family: var(--display); font-size: 3.4rem; font-weight: 600; color: var(--gold-deep); line-height: 1; margin-bottom: 22px; display: block; }
.step h3 { font-size: 1.5rem; }
.step p { color: var(--ink-soft); margin: 0; }
.bg-navy .step .circle { color: var(--gold); }
.bg-navy .step p { color: rgba(255,255,255,.7); }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 30px 56px 30px 0; font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 500; color: var(--navy); list-style: none; position: relative; transition: color .3s var(--ease); }
.faq summary:hover { color: var(--gold-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background:
  linear-gradient(var(--gold-deep),var(--gold-deep)) center/14px 1.5px no-repeat,
  linear-gradient(var(--gold-deep),var(--gold-deep)) center/1.5px 14px no-repeat;
  transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 56px 30px 0; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 0; border: 1px solid var(--line); background: var(--white); }
.form-card { padding: clamp(36px, 5vw, 60px); }
.form-card h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--body); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 9px; }
.field input, .field textarea, .field select { width: 100%; padding: 15px 16px; border: 1px solid var(--line); background: var(--paper); font-family: var(--body); font-size: 1rem; color: var(--ink); transition: border-color .3s var(--ease), background .3s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-deep); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin-bottom: 24px; }
.consent input { margin-top: 4px; }

.info-panel { background: var(--navy); color: rgba(255,255,255,.78); padding: clamp(36px, 5vw, 56px); }
.info-panel h2 { color: #fff; font-size: 1.9rem; }
.info-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-light); }
.info-item:last-of-type { border-bottom: none; }
.info-item .ic { flex-shrink: 0; width: 42px; height: 42px; border: 1px solid var(--line-light); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.info-item .ic svg { width: 17px; height: 17px; fill: currentColor; }
.info-item h4 { font-family: var(--body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 4px 0 7px; }
.info-item p { margin: 0; color: rgba(255,255,255,.78); font-size: .98rem; }
.info-item a { color: #fff; }
.info-item a:hover { color: var(--gold); }

.map-frame { position: relative; border: 1px solid var(--line); line-height: 0; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 460px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: clamp(80px, 11vw, 140px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; border: 1px solid var(--line-light); border-radius: 50%; transform: translate(-50%,-50%); }
.cta-band::after { content: ''; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; border: 1px solid var(--line-light); border-radius: 50%; transform: translate(-50%,-50%); }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }
.cta-band p { max-width: 640px; margin: 22px auto 38px; color: rgba(255,255,255,.74); font-size: 1.18rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.62); padding: clamp(60px, 8vw, 100px) 0 0; font-size: .96rem; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 24px; }
.site-footer a { color: rgba(255,255,255,.62); }
.site-footer a:hover { color: var(--gold); }
.site-footer .f-about img { max-width: 168px; margin-bottom: 22px; background: #fff; padding: 12px 16px; border-radius: 3px; }
.site-footer .f-about p { max-width: 340px; line-height: 1.7; }
.site-footer ul li { margin-bottom: 12px; }
.f-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.f-contact svg { width: 14px; height: 14px; fill: var(--gold); flex-shrink: 0; margin-top: 6px; }
.footer-bottom { border-top: 1px solid var(--line-light); margin-top: clamp(48px, 6vw, 72px); padding: 26px 0; font-size: .8rem; letter-spacing: .02em; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { margin-left: 22px; }

/* ==========================================================================
   PÁGINAS LEGALES (prosa)
   ========================================================================== */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 48px 0 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 1.3rem; margin: 30px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1.04rem; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 20px; padding-left: 0; }
.legal ul li { position: relative; padding: 6px 0 6px 24px; }
.legal ul li::before { content: ''; position: absolute; left: 0; top: 17px; width: 8px; height: 1px; background: var(--gold-deep); }
.legal a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--navy); }
.legal .legal-updated { font-family: var(--body); font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 40px; padding: 12px 18px; background: var(--paper-2); border-left: 3px solid var(--gold); }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: .96rem; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--paper-2); font-family: var(--body); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.legal-table td { color: var(--ink-soft); }

/* ==========================================================================
   BANNER DE COOKIES
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 3000;
  max-width: 920px; margin: 0 auto;
  background: var(--navy); color: rgba(255,255,255,.82);
  border: 1px solid var(--line-light); border-top: 3px solid var(--gold);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  padding: 26px 30px; display: none;
  grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cookie-banner.show { display: grid; animation: fade-up .5s var(--ease); }
.cookie-banner h4 { color: #fff; font-size: 1.15rem; margin: 0 0 6px; }
.cookie-banner p { margin: 0; font-size: .92rem; line-height: 1.6; color: rgba(255,255,255,.75); }
.cookie-banner p a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions .btn { padding: 13px 22px; font-size: .76rem; }
.cookie-actions .btn-reject { background: transparent; border-color: var(--line-light); color: #fff !important; }
.cookie-actions .btn-reject::after { background: rgba(255,255,255,.14); }
.cookie-actions .btn-reject:hover { color: #fff !important; border-color: rgba(255,255,255,.4); }
@media (max-width: 680px) {
  .cookie-banner { grid-template-columns: 1fr; left: 12px; right: 12px; bottom: 12px; padding: 22px; gap: 18px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { justify-content: center; }
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 2400; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.28); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 36px rgba(37,211,102,.45); }
.wa-float svg { width: 33px; height: 33px; fill: #fff; position: relative; z-index: 1; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .55; animation: wa-pulse 2.4s ease-out infinite; z-index: 0; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
body.a11y-nomotion .wa-float::before { animation: none; }
@media (max-width: 600px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* ==========================================================================
   ACCESIBILIDAD
   ========================================================================== */
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 4000; background: var(--navy); color: #fff !important; padding: 12px 22px; border: 1px solid var(--gold); font-family: var(--body); font-size: .9rem; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

.a11y-toggle { position: fixed; left: 20px; bottom: 20px; z-index: 2500; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); border: 2px solid var(--gold); color: var(--gold); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.32); transition: transform .25s var(--ease), background .25s var(--ease); }
.a11y-toggle:hover { transform: scale(1.07); background: var(--navy-2); }
.a11y-toggle svg { width: 28px; height: 28px; fill: currentColor; }

.a11y-panel { position: fixed; left: 20px; bottom: 86px; z-index: 2500; width: 300px; max-width: calc(100vw - 40px); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 26px 60px -16px rgba(0,0,0,.42); padding: 22px 22px 18px; display: none; }
.a11y-panel.open { display: block; animation: fade-up .35s var(--ease); }
.a11y-panel h4 { font-size: 1.15rem; margin: 0 0 16px; }
.a11y-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.a11y-btn { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); color: var(--navy); font-family: var(--body); font-size: .86rem; font-weight: 500; padding: 12px 13px; cursor: pointer; margin-bottom: 8px; transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.a11y-row .a11y-btn { margin-bottom: 0; justify-content: center; }
.a11y-btn:hover { border-color: var(--gold-deep); }
.a11y-btn svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.a11y-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.a11y-reset { justify-content: center; background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; margin-top: 4px; }
.a11y-reset:hover { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }
.a11y-close { position: absolute; top: 12px; right: 12px; background: none; border: none; cursor: pointer; color: var(--ink-soft); padding: 4px; }
.a11y-close svg { width: 18px; height: 18px; fill: currentColor; }

/* Modos de accesibilidad */
html.a11y-grayscale { filter: grayscale(1); }
body.a11y-contrast { --paper: #fff; --paper-2: #fff; --paper-3: #fff; --ink: #000; --ink-soft: #15151c; --line: rgba(0,0,0,.35); }
body.a11y-contrast .card:hover, body.a11y-contrast .card-plain, body.a11y-contrast .principle, body.a11y-contrast .testimonial, body.a11y-contrast .form-card, body.a11y-contrast .field input, body.a11y-contrast .field textarea, body.a11y-contrast .field select { border-color: #000; }
body.a11y-contrast a { text-decoration: underline; }
body.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
body.a11y-readable, body.a11y-readable * { font-family: Verdana, Tahoma, Arial, sans-serif !important; letter-spacing: .015em !important; font-style: normal !important; }
body.a11y-readable p, body.a11y-readable li, body.a11y-readable a { line-height: 1.9 !important; }
body.a11y-nomotion *, body.a11y-nomotion *::before, body.a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media (max-width: 600px) {
  .a11y-toggle { width: 48px; height: 48px; left: 14px; bottom: 14px; }
  .a11y-toggle svg { width: 24px; height: 24px; }
  .a11y-panel { left: 14px; bottom: 72px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .wrap { padding: 0 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .index-grid .card:nth-child(3n) { border-right: 1px solid var(--line); }
  .index-grid .card:nth-child(2n) { border-right: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .hero-meta { border-left: none; border-top: 1px solid var(--line-light); padding: 30px 0 0; display: grid; grid-template-columns: repeat(3,1fr); }
  .hero-meta .mrow { border-bottom: none; border-right: 1px solid var(--line-light); padding: 0 20px; }
  .hero-meta .mrow:first-child { padding-left: 0; }
  .hero-meta .mrow:last-child { border-right: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-main { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: all .35s var(--ease); }
  .nav-main.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-main ul { flex-direction: column; gap: 0; padding: 10px 28px; }
  .nav-main li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-main li:last-child { border-bottom: none; }
  .nav-main a { display: block; padding: 17px 0; }
  .burger { display: inline-flex; }
  .mainbar .wrap { position: relative; gap: 14px; }
  .mainbar .logo img, .site-header.scrolled .mainbar .logo img { max-width: 132px; }
  /* Ocultar el CTA suelto del header (se cortaba); el menú ya lleva "Contacto" */
  .mainbar .wrap > .btn { display: none; }
  /* Destacar "Contacto" dentro del menú móvil como botón */
  .nav-main li:last-child { border-bottom: none; }
  .nav-main li:last-child a { background: var(--gold); color: var(--navy); text-align: center; margin: 14px 0 6px; padding: 15px; font-weight: 700; letter-spacing: .14em; }
  .nav-main li:last-child a::after { display: none; }
  .nav-main li:last-child a:hover { color: var(--navy); }
  /* Barra superior: ocultar dirección larga, dejar teléfono y email */
  .topbar { padding: 8px 0; }
  .topbar .wrap { gap: 6px 16px; }
  .topbar-info { gap: 8px 18px; font-size: .76rem; width: 100%; justify-content: center; }
  .topbar-info span { display: none; }
  .topbar-social { display: none; }
  .grid-2, .grid-3, .grid-4, .split, .contact-grid, .index-grid { grid-template-columns: 1fr; }
  .index-grid .card, .index-grid .card:nth-child(n) { border-right: none; }
  .split > [style*="order:2"] { order: -1 !important; }
  .bio { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 0 16px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .figure-frame::after { inset: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 460px) {
  .stats, .hero-meta { grid-template-columns: 1fr; }
  .hero-meta .mrow { border-right: none; padding: 0; }
}

/* ==========================================================================
   BARRA DE CONTACTO FIJA EN MÓVIL (Llamar + WhatsApp)
   ========================================================================== */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2600;
    box-shadow: 0 -6px 20px rgba(0,0,0,.18);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 8px; font-family: var(--body); font-weight: 600; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; color: #fff !important; }
  .mobile-cta .mc-call { background: var(--navy); }
  .mobile-cta .mc-wa { background: #25D366; }
  .mobile-cta svg { width: 18px; height: 18px; fill: currentColor; }
  /* Reservar espacio para que el contenido no quede tapado */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  /* El botón flotante de WhatsApp sobra (ya está en la barra) */
  .wa-float { display: none !important; }
  /* Subir accesibilidad y cookies por encima de la barra */
  .a11y-toggle { bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
  .a11y-panel { bottom: calc(132px + env(safe-area-inset-bottom, 0px)) !important; }
  .cookie-banner { bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* =========================================================
   CHATBOT — asistente virtual
   ========================================================= */
.chat-launch {
  position: fixed; right: 22px; bottom: 92px; z-index: 2450;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold); color: var(--gold);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.chat-launch:hover { transform: scale(1.07); background: var(--navy-2, #20204f); }
.chat-launch svg { width: 30px; height: 30px; fill: currentColor; }
.chat-launch .chat-badge {
  position: absolute; top: -3px; right: -3px; width: 15px; height: 15px;
  background: var(--gold); border: 2px solid var(--navy); border-radius: 50%;
}
.chat-launch.chat-hidden { display: none; }

.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 3200;
  width: 384px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 130px);
  background: #fff; border: 1px solid var(--line, #e6e2da);
  border-radius: 16px; overflow: hidden; display: none; flex-direction: column;
  box-shadow: 0 30px 70px -18px rgba(0,0,0,.5);
}
.chat-panel.open { display: flex; animation: fade-up .32s var(--ease); }

.chat-head {
  background: var(--navy); color: #fff; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--gold);
}
.chat-head .chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-family: var(--display, serif); font-size: 1.05rem;
}
.chat-head .chat-title { flex: 1; line-height: 1.25; }
.chat-head .chat-title strong { display: block; font-family: var(--display, serif); font-size: 1.02rem; font-weight: 600; }
.chat-head .chat-title span { font-size: .76rem; color: rgba(255,255,255,.7); font-family: var(--body, sans-serif); }
.chat-head .chat-title span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #43d17a; margin-right: 6px; vertical-align: middle; }
.chat-close { background: none; border: none; color: rgba(255,255,255,.8); cursor: pointer; padding: 4px; line-height: 0; }
.chat-close:hover { color: #fff; }
.chat-close svg { width: 20px; height: 20px; fill: currentColor; }

.chat-body {
  flex: 1; overflow-y: auto; padding: 18px 16px; background: var(--paper, #f7f5f0);
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--body, sans-serif); font-size: .92rem; line-height: 1.55;
  overflow-anchor: none;
}
.chat-msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg.bot { align-self: flex-start; background: #fff; color: #26263a; border: 1px solid var(--line, #e6e2da); border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg a { color: inherit; text-decoration: underline; }
.chat-msg.me a { color: var(--gold); }

.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line, #e6e2da); border-radius: 14px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-deep, #a9853f); opacity: .5; animation: chat-blink 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chat-blink { 0%,60%,100% { opacity: .35; } 30% { opacity: 1; } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; background: var(--paper, #f7f5f0); }
.chat-quick button {
  font-family: var(--body, sans-serif); font-size: .8rem; cursor: pointer;
  background: #fff; border: 1px solid var(--gold); color: var(--gold-deep, #a9853f);
  padding: 8px 12px; border-radius: 20px; transition: background .2s, color .2s;
}
.chat-quick button:hover { background: var(--gold); color: var(--navy); }

.chat-foot { border-top: 1px solid var(--line, #e6e2da); background: #fff; padding: 10px 12px; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; }
.chat-form textarea {
  flex: 1; resize: none; border: 1px solid var(--line, #e6e2da); border-radius: 12px;
  padding: 10px 12px; font-family: var(--body, sans-serif); font-size: .92rem; line-height: 1.4;
  max-height: 96px; color: #26263a; background: #fff;
}
.chat-form textarea:focus { outline: none; border-color: var(--gold); }
.chat-send {
  flex: none; width: 42px; height: 42px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.chat-send:hover { background: var(--navy-2, #20204f); }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send svg { width: 19px; height: 19px; fill: currentColor; }
.chat-legal { font-family: var(--body, sans-serif); font-size: .68rem; color: #8b8778; text-align: center; margin: 7px 4px 0; line-height: 1.4; }
.chat-legal a { color: var(--gold-deep, #a9853f); }

body.a11y-nomotion .chat-typing span { animation: none; }

@media (max-width: 760px) {
  .chat-launch { right: 14px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; }
  .chat-launch svg { width: 26px; height: 26px; }
  .chat-panel {
    right: 0; left: 0; bottom: 0; top: 0;
    width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0;
  }
}

/* =========================================================
   BLOG
   ========================================================= */
/* Índice del blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e6e2da); border-radius: 12px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -22px rgba(22,22,63,.35); }
.post-card .post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep, #a9853f); margin-bottom: 10px; }
.post-card h3 { font-size: 1.18rem; line-height: 1.3; margin: 0 0 10px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--gold-deep, #a9853f); }
.post-card p { font-size: .95rem; color: #55535f; margin: 0 0 16px; }
.post-meta { margin-top: auto; font-family: var(--body); font-size: .82rem; color: #8b8778; }

/* Artículo */
.post-hero .post-meta-line { font-family: var(--body); font-size: .9rem; color: rgba(255,255,255,.75); margin-top: 18px; }
.post-hero .post-meta-line strong { color: var(--gold); font-weight: 600; }
.post-body-wrap { max-width: 760px; }
.post-summary { background: var(--paper-2, #f0ece3); border-left: 4px solid var(--gold); padding: 22px 26px; border-radius: 0 10px 10px 0; margin-bottom: 40px; }
.post-summary strong { font-family: var(--display, serif); display: block; font-size: 1rem; color: var(--navy); margin-bottom: 8px; letter-spacing: .01em; }
.post-summary p { margin: 0; font-size: 1rem; line-height: 1.7; }
.post-prose h2 { font-size: 1.7rem; margin: 44px 0 16px; }
.post-prose h3 { font-size: 1.28rem; margin: 32px 0 12px; }
.post-prose p { margin: 0 0 18px; line-height: 1.8; }
.post-prose ul, .post-prose ol { margin: 0 0 20px; padding-left: 22px; }
.post-prose li { margin-bottom: 8px; line-height: 1.7; }
.post-prose blockquote { margin: 24px 0; padding: 16px 24px; border-left: 3px solid var(--gold); background: var(--paper, #f7f5f0); font-style: italic; color: #45434f; }
.post-prose a { color: var(--gold-deep, #a9853f); text-decoration: underline; text-underline-offset: 2px; }
.post-prose .post-note { font-size: .9rem; color: #6b6875; background: var(--paper, #f7f5f0); border: 1px solid var(--line, #e6e2da); border-radius: 10px; padding: 16px 20px; margin: 26px 0; }
.post-author { margin: 54px 0 8px; background: #fff; border: 1px solid var(--line, #e6e2da); border-top: 3px solid var(--gold); border-radius: 14px; padding: 30px 32px; box-shadow: 0 22px 48px -30px rgba(22,22,63,.38); }
.post-author .pa-top { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.post-author img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold); }
.post-author .pa-eyebrow { font-family: var(--body); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep, #a9853f); }
.post-author h4 { margin: 7px 0 3px; font-size: 1.4rem; color: var(--navy); line-height: 1.1; }
.post-author .pa-role { font-family: var(--body); font-size: .95rem; color: #55535f; }
.post-author .pa-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.post-author .pa-chips li { font-family: var(--body); font-size: .78rem; font-weight: 600; color: var(--navy); background: var(--paper, #f7f5f0); border: 1px solid var(--line, #e6e2da); border-radius: 20px; padding: 6px 13px; }
.post-author p { margin: 0 0 16px; font-size: .95rem; line-height: 1.7; color: #45434f; }
.post-author .pa-links { display: flex; flex-wrap: wrap; gap: 22px; }
.post-author .pa-links a { font-family: var(--body); font-weight: 600; font-size: .9rem; color: var(--gold-deep, #a9853f); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.post-author .pa-links a svg { width: 15px; height: 15px; fill: currentColor; }
.post-author .pa-links a:hover { color: var(--navy); }
@media (max-width: 560px) {
  .post-author { padding: 26px 22px; }
  .post-author .pa-top { flex-direction: column; text-align: center; align-items: center; gap: 14px; }
  .post-author .pa-chips, .post-author .pa-links { justify-content: center; }
}

/* Tabla de contenidos */
.post-toc { background: #fff; border: 1px solid var(--line, #e6e2da); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 20px 24px; margin-bottom: 38px; }
.post-toc .post-toc-h { font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep, #a9853f); margin: 0 0 12px; }
.post-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.post-toc li { font-family: var(--body); font-size: .95rem; line-height: 1.4; }
.post-toc a { color: var(--navy); text-decoration: none; border-bottom: 1px solid transparent; }
.post-toc a:hover { color: var(--gold-deep, #a9853f); border-bottom-color: var(--gold); }
.post-prose h2 { scroll-margin-top: 100px; }
.post-related .card-plain h3 a { color: var(--navy); }
.post-related .card-plain h3 a:hover { color: var(--gold-deep, #a9853f); }
