/* =============================================================================
   Estudio Jurídico Di Pietro & Asociados — Design system
   Paleta de marca: azul (#0076b0 / #0088cb) + verde lima (#7cb342). Mobile-first. Sin frameworks.
   Nota: los tokens --gold-* son nombres heredados; hoy mapean al AZUL de marca.
   ============================================================================= */
:root {
  /* Paleta tomada de la marca Di Pietro (logo azul + verde lima) */
  --navy-900: #0a1f3d;   /* azul muy oscuro (secciones dark / footer) */
  --navy-800: #0d2747;
  --navy-700: #143a64;
  --navy-600: #0076b0;   /* azul primario (links) */
  --blue: #0076b0;
  --blue-bright: #0088cb; /* azul de botones */
  --green: #7cb342;       /* verde lima del logo (acento) */
  --green-dark: #5c9233;
  --gold-500: #0088cb;   /* (nombre heredado) acento principal = AZUL */
  --gold-600: #0076b0;
  --gold-100: #e6f2fb;   /* (nombre heredado) fondo de acento = CELESTE */
  --ink: #16202b;
  --body: #3f4b59;
  --muted: #5b6675;          /* subido para pasar AA (≥4.5:1) sobre fondos teñidos */
  --line: #e1e7ef;           /* borde decorativo (tarjetas) */
  --line-input: #8090a3;     /* borde de controles de formulario (≥3:1) */
  --kicker-light: #9ec7e8;   /* kicker sobre navy (page-hero), pasa AA */
  --bg: #ffffff;
  --bg-alt: #f3f7fc;
  --bg-cream: #eef5fc;   /* (nombre heredado) celeste claro */
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 3px rgba(13, 39, 71, .07), 0 1px 2px rgba(13, 39, 71, .05);
  --shadow: 0 10px 30px -12px rgba(13, 39, 71, .20);
  --shadow-lg: 0 24px 60px -20px rgba(13, 39, 71, .32);
  --maxw: 1160px;
  --ff-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 {
  font-family: var(--ff-serif); color: var(--ink); font-weight: 600;
  margin: 0 0 .5em; text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.2; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; line-height: 1.32; }
p { margin: 0 0 1.05rem; text-wrap: pretty; }
/* Anclas bajo el header sticky */
:where(h1, h2, h3, [id]) { scroll-margin-top: 90px; }
/* Foco visible accesible */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--ink); line-height: 1.6; }
.ic { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy-800); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ----------------------------- Botones ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--ff-sans); font-weight: 600; font-size: .98rem;
  padding: .74em 1.4em; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-lg { padding: .92em 1.7em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--gold-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-600); color: #fff; box-shadow: var(--shadow); }
.btn-wa { background: var(--wa); color: #06351c; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-600); background: var(--gold-100); }
.btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--ff-sans); font-weight: 600; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: .8rem;
}
.kicker-light { color: var(--kicker-light); }
.kicker .ic { width: 1.05em; height: 1.05em; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-logo { height: 48px; width: auto; display: block; }
.footer-logo { height: 46px; background: #fff; padding: 7px 12px; border-radius: 6px; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 9px 13px; border-radius: 8px; color: var(--body);
  font-weight: 500; font-size: .94rem; transition: background .15s, color .15s;
}
.nav-list a:hover { background: var(--bg-alt); color: var(--navy-800); }
.nav-list a[aria-current="page"] { color: var(--navy-800); font-weight: 600; }
.nav-list a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--gold-500); border-radius: 2px; margin-top: 3px; }
.header-cta { margin-left: 6px; }
.nav-toggle { display: none; }

/* ----------------------------- Hero (claro, con retrato) ----------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #e9f2fb 0%, #ffffff 72%);
  border-bottom: 1px solid var(--line); padding: 50px 0 0;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 50px; align-items: center; }
.hero-copy h1 { color: var(--ink); margin-bottom: .3em; font-size: clamp(2.1rem, 4.6vw, 3.35rem); line-height: 1.1; }
.hero-firm { display: block; color: var(--blue); font-size: .6em; font-weight: 700; margin-top: .18em; }
.hero-lead { font-size: 1.18rem; line-height: 1.6; color: var(--body); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; color: var(--ink); font-size: .98rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .55em; }
.hero-trust .ic { color: var(--green-dark); width: 1.15em; height: 1.15em; }
.hero-photo { position: relative; margin: 0 0 0 auto; max-width: 420px; align-self: end; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; max-height: 540px;
}
.hero-photo figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: linear-gradient(0deg, rgba(13, 39, 71, .94), rgba(13, 39, 71, .45));
  color: #fff; padding: 13px 16px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
}
.hero-photo figcaption strong { font-family: var(--ff-serif); font-size: 1.05rem; }
.hero-photo figcaption span { font-size: .8rem; color: #cfe0f0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 30px; padding-bottom: 28px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .5em; padding: 9px 15px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s, box-shadow .15s;
}
.hero-chip:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow); }
.hero-chip .ic { color: var(--blue); width: 1.05em; height: 1.05em; }

/* ----------------------------- Page hero (internas) ----------------------------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(124, 179, 66, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff; padding: 54px 0 48px;
}
.page-hero h1 { color: #fff; }
.page-hero-lead { font-size: 1.18rem; line-height: 1.58; color: #dbe6f2; max-width: 58ch; }
.page-hero .hero-actions { margin-bottom: 4px; }
.page-hero-urgent { background: linear-gradient(160deg, #3a1518, var(--navy-900)); }
.urgent-flag { display: inline-flex; align-items: center; gap: .5em; margin-top: 14px; color: #ffd9b0; font-weight: 600; }

/* ----------------------------- Secciones ----------------------------- */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 64ch; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ----------------------------- Áreas grid ----------------------------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .22s, border-color .18s;
}
.area-card { border-top: 3px solid var(--accent, var(--blue)); }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent, var(--blue)); }
.area-card.is-current { border-color: var(--accent, var(--blue)); background: #f7fafe; }
.area-ic {
  display: inline-flex; width: 52px; height: 52px; border-radius: var(--radius-sm); align-items: center; justify-content: center;
  background: var(--accent, var(--blue)); color: #fff; margin-bottom: 16px;
}
.area-ic .ic { width: 26px; height: 26px; }
.area-card h3 { margin-bottom: .4em; }
.area-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.area-more { display: inline-flex; align-items: center; gap: .4em; margin-top: 14px; color: var(--accent, var(--blue)); font-weight: 600; font-size: .92rem; }
.area-card:hover .area-more .ic { transform: translateX(3px); }
.area-more .ic { width: 1.05em; height: 1.05em; transition: transform .18s; }

/* ----------------------------- Features ----------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature-ic { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; background: var(--gold-100); color: var(--gold-600); margin-bottom: 14px; }
.feature-ic .ic { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ----------------------------- Steps ----------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; background: var(--bg-cream); border: 1px solid var(--gold-100); border-radius: var(--radius); padding: 30px 26px; }
.step-n { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--navy-800); color: var(--gold-500); font-family: var(--ff-serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ----------------------------- Reviews ----------------------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 34px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin: 0; }
.stars { display: flex; gap: 2px; color: var(--gold-500); margin-bottom: 12px; }
.stars .ic { width: 18px; height: 18px; fill: var(--gold-500); stroke: var(--gold-500); }
.review-card blockquote { margin: 0 0 16px; font-size: 1.02rem; color: var(--ink); line-height: 1.6; }
.review-card figcaption { display: flex; flex-direction: column; }
.review-card figcaption strong { color: var(--navy-800); }
.review-card figcaption span { color: var(--muted); font-size: .88rem; }

/* ----------------------------- CTA band ----------------------------- */
.cta-band { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: #cdd6e4; margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------- Mapa + NAP ----------------------------- */
.map-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: stretch; }
.map-info .kicker { margin-top: 0; }
.nap { font-style: normal; line-height: 1.8; font-size: .98rem; color: var(--body); margin: 6px 0 18px; }
.nap strong { color: var(--ink); }
.hours-list { display: grid; gap: 8px; margin: 6px 0 20px; }
.hour-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; font-variant-numeric: tabular-nums; }
.hour-label { font-weight: 600; color: var(--ink); }
.hour-val { color: var(--muted); text-align: right; }
.map-frame { border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; }

/* ----------------------------- Contenido interno ----------------------------- */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 11px 0; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--line); }
.breadcrumbs a { color: var(--navy-600); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }

.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.content-main h2 { margin-top: 1.6em; }
.content-main h2:first-of-type { margin-top: .6em; }
.services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 8px; }
.service-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); }
.service-check { color: var(--wa-dark); margin-top: 3px; }
.service-item strong { display: block; color: var(--ink); margin-bottom: 2px; }
.service-item span { color: var(--muted); font-size: .92rem; }

/* FAQ accordion */
.faqs { display: grid; gap: 10px; margin-top: 8px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink); font-family: var(--ff-serif); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-600); font-weight: 400; transition: transform .2s; line-height: 1; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0; color: var(--body); }

/* Aside */
.content-aside { position: sticky; top: 90px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.aside-card h3 { font-size: 1.2rem; }
.aside-card > p { color: var(--muted); font-size: .94rem; }
.aside-card .btn { margin-top: 8px; }
.aside-card hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.aside-nap { font-size: .92rem; color: var(--body); }
.aside-map { display: inline-flex; align-items: center; gap: .4em; font-size: .9rem; font-weight: 600; }

/* related pills */
.rel-pills, .rel-pill { }
.rel-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.rel-pill { display: inline-flex; align-items: center; gap: .5em; padding: 11px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s; }
.rel-pill:hover { border-color: var(--gold-500); color: var(--gold-600); }
.rel-pill .ic { color: var(--gold-600); }

/* ----------------------------- About ----------------------------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.about-photo { position: sticky; top: 90px; }
.about-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.about-badges span { display: inline-flex; align-items: center; gap: .4em; padding: 8px 13px; background: var(--gold-100); color: var(--gold-600); border-radius: 999px; font-size: .85rem; font-weight: 600; }
.about-badges .ic { width: 1.05em; height: 1.05em; }
.pull-quote { border-left: 4px solid var(--gold-500); background: var(--bg-cream); padding: 18px 22px; margin: 24px 0 0; font-family: var(--ff-serif); font-size: 1.15rem; color: var(--ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.zones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.zone { display: inline-flex; align-items: center; gap: .45em; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm); }
.zone .ic { color: var(--gold-600); }
a.zone { transition: border-color .15s, color .15s, box-shadow .15s; }
a.zone:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow); }
.zone-home { background: var(--gold-100); border-color: var(--blue); font-weight: 700; }

/* ----------------------------- Contacto ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-input); border-radius: var(--radius-sm);
  font-family: var(--ff-sans); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(0, 136, 203, .18); }
.field-opt { font-weight: 400; color: var(--muted); font-size: .85em; }
.field textarea { resize: vertical; }
.form-alt { text-align: center; font-size: .92rem; color: var(--muted); margin: 14px 0 0; }
.contact-info .aside-card { margin-bottom: 18px; }

/* ----------------------------- Páginas angostas (404/gracias) ----------------------------- */
.narrow-page { max-width: 640px; margin: 0 auto; padding-top: 80px; padding-bottom: 80px; }
.narrow-page .container { max-width: 640px; }
.center-actions { justify-content: center; }
.big-check { display: inline-flex; width: 84px; height: 84px; border-radius: 50%; align-items: center; justify-content: center; background: var(--gold-100); color: var(--wa-dark); margin-bottom: 18px; }
.big-check .ic { width: 42px; height: 42px; }
.error-code { font-family: var(--ff-serif); font-size: 5rem; font-weight: 700; color: var(--gold-500); line-height: 1; }
.error-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.error-links a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--navy-900); color: #c7d0de; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding: 56px 0 40px; }
.brand-light { color: #fff; }
.footer-tag { color: #9aa7bb; font-size: .95rem; max-width: 38ch; margin: 16px 0; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #c7d0de; transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #b3bdcd; font-size: .95rem; }
.footer-links a:hover { color: var(--gold-500); }
.footer-col .nap { color: #b3bdcd; }
.footer-col .nap strong { color: #fff; }
.footer-col .nap a { color: var(--gold-500); }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; flex-wrap: wrap; font-size: .85rem; color: #8b97aa; }
.footer-rating { display: inline-flex; align-items: center; gap: .4em; color: #7cbbe6; }
.footer-rating .ic { fill: #7cbbe6; width: 1.05em; height: 1.05em; }

/* ----------------------------- WhatsApp FAB ----------------------------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px;
  background: var(--wa); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
}
.wa-fab:hover { background: var(--wa-dark); color: #fff; transform: scale(1.06); transition: transform .15s, background .15s; }
.wa-fab .ic { width: 32px; height: 32px; fill: #fff; stroke: none; position: relative; z-index: 2; }
.wa-fab-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--wa); opacity: .55; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

/* ----------------------------- Artículos / Blog ----------------------------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.art-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .22s, border-color .18s; }
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-500); }
.art-cat { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600); background: var(--gold-100); padding: 5px 11px; border-radius: 999px; margin-bottom: 13px; }
.art-card h3 { font-size: 1.18rem; margin-bottom: .4em; }
.art-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.art-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 14px; color: var(--muted); font-size: .85rem; }
.art-more { display: inline-flex; align-items: center; gap: .35em; color: var(--gold-600); font-weight: 600; }
.art-more .ic { width: 1em; height: 1em; transition: transform .18s; }
.art-card:hover .art-more .ic { transform: translateX(3px); }

.article-page { padding-top: 48px; }
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-head { margin-bottom: 26px; }
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 12px; }
.article-meta { color: var(--muted); font-size: .95rem; margin: 0; }
.article-body { font-size: 1.09rem; line-height: 1.78; color: #34404e; max-width: 68ch; }
.article-body strong { color: var(--ink); }
.article-body h2 { font-size: 1.5rem; margin: 1.7em 0 .5em; }
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body .lead { font-size: 1.18rem; color: var(--ink); border-left: 4px solid var(--gold-500); padding-left: 18px; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 32px 0 4px; padding: 20px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-sm); background: #fff; }
.author-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: 0 0 auto; }
.author-info { min-width: 0; }
.author-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.author-info strong { display: block; font-family: var(--ff-serif); font-size: 1.15rem; color: var(--ink); margin: 2px 0 4px; }
.author-info p { margin: 0; color: var(--muted); font-size: .95rem; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; background: var(--bg-cream); border: 1px solid var(--gold-100); border-radius: var(--radius); padding: 26px; margin: 34px 0 20px; }
.article-cta h2 { font-size: 1.3rem; margin: 0 0 .3em; }
.article-cta p { margin: 0; color: var(--muted); }
.article-back a { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.article-back .ic { transform: rotate(180deg); width: 1em; height: 1em; }

/* ----------------------------- Utilidades / a11y ----------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ----------------------------- Mapa facade (click-to-load) ----------------------------- */
.map-facade {
  position: relative; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(700px 300px at 30% 0%, rgba(124, 179, 66, .14), transparent 60%),
    linear-gradient(150deg, var(--navy-700), var(--navy-900));
  cursor: pointer;
}
.map-facade-btn {
  display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .96);
  border: none; border-radius: var(--radius); padding: 16px 22px; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s; text-align: left; min-height: 44px;
}
.map-facade-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.map-facade-pin { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--blue); color: #fff; flex: 0 0 auto; }
.map-facade-pin .ic { width: 22px; height: 22px; }
.map-facade-text { display: flex; flex-direction: column; line-height: 1.3; }
.map-facade-text strong { color: var(--ink); font-family: var(--ff-serif); }
.map-facade-text span { color: var(--muted); font-size: .88rem; }

/* ----------------------------- Mini-guías ("Información legal que necesitás saber") ----------------------------- */
.guides-section { background: var(--bg-alt); position: relative; }
.guides-section::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; color: var(--ink); box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--green); transition: transform .18s, box-shadow .22s, border-color .18s;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-ic { display: inline-flex; width: 50px; height: 50px; border-radius: var(--radius-sm); align-items: center; justify-content: center; background: var(--gold-100); color: var(--gold-600); margin-bottom: 16px; }
.guide-ic .ic { width: 26px; height: 26px; }
.guide-card h3 { margin-bottom: .4em; font-size: 1.12rem; }
.guide-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.guide-more { display: inline-flex; align-items: center; gap: .4em; margin-top: 14px; color: var(--gold-600); font-weight: 600; font-size: .92rem; }
.guide-more .ic { width: 1.05em; height: 1.05em; transition: transform .18s; }
.guide-card:hover .guide-more .ic { transform: translateX(3px); }

/* ----------------------------- Turnos ----------------------------- */
.turnos-section {
  background:
    radial-gradient(800px 360px at 80% -10%, rgba(124, 179, 66, .16), transparent 60%),
    linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: #fff;
}
.turnos-inner { display: flex; justify-content: center; }
.turnos-copy { max-width: 640px; text-align: center; }
.turnos-copy h2 { color: #fff; }
.turnos-copy p { color: #dbe6f2; }
.turnos-hours { list-style: none; margin: 18px 0 24px; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; }
.turnos-hours li { display: inline-flex; align-items: center; gap: .5em; color: #eaf2fb; font-size: .96rem; font-weight: 600; }
.turnos-hours .ic { color: var(--green); width: 1.1em; height: 1.1em; }

/* ----------------------------- Newsletter ----------------------------- */
.newsletter-section { background: var(--navy-900); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.newsletter-copy h2 { color: #fff; margin-bottom: .25em; }
.newsletter-copy p { color: #b7c2d4; margin: 0; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.newsletter-form input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 13px 16px; border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-sm); font-family: var(--ff-sans); font-size: 1rem; color: #fff; background: rgba(255, 255, 255, .08);
}
.newsletter-form input[type="email"]::placeholder { color: #aab6c8; }
.newsletter-form input[type="email"]:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .14); }
.newsletter-form .btn { flex: 0 0 auto; }
.newsletter-msg { flex: 1 0 100%; margin: 0; font-size: .9rem; color: #9ec7e8; min-height: 1px; }

/* ----------------------------- Reviews (enriquecidas) ----------------------------- */
.reviews-rating { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 30px; }
.reviews-rating-num { font-family: var(--ff-serif); font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1; }
.reviews-rating-stars { display: inline-flex; gap: 2px; color: var(--gold-500); }
.reviews-rating-stars .ic { width: 22px; height: 22px; fill: var(--gold-500); stroke: var(--gold-500); }
.reviews-rating-meta { color: var(--muted); font-size: .95rem; }
.reviews-verified { display: inline-flex; align-items: center; gap: .3em; color: var(--green-dark); font-weight: 600; }
.reviews-verified .ic { width: 1.05em; height: 1.05em; }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--av, var(--blue)); color: #fff; font-family: var(--ff-serif); font-weight: 700; font-size: 1.2rem; flex: 0 0 auto; }
.review-id { flex: 1; min-width: 0; }
.review-g { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); color: #4285f4; font-weight: 700; font-family: var(--ff-serif); font-size: 1rem; flex: 0 0 auto; }
.review-card blockquote cite { font-style: normal; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ----------------------------- Page hero por área (acento + watermark) ----------------------------- */
.page-hero-area {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 440px at 88% -25%, color-mix(in srgb, var(--accent, var(--blue)) 55%, transparent), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.page-hero-area .container { position: relative; z-index: 2; }
.page-hero-watermark {
  position: absolute; right: -40px; bottom: -60px; z-index: 1; color: #fff; opacity: .06;
  pointer-events: none;
}
.page-hero-watermark .ic { width: 320px; height: 320px; stroke-width: 1; }
.btn-call { box-shadow: 0 10px 26px -10px rgba(0, 136, 203, .8); }

/* ----------------------------- Aside enriquecido (área) ----------------------------- */
.aside-rating { text-align: center; }
.aside-rating-num { display: inline-flex; align-items: center; gap: .25em; font-family: var(--ff-serif); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.aside-rating-num .ic { width: 1em; height: 1em; fill: var(--gold-500); stroke: var(--gold-500); }
.aside-rating p { color: var(--muted); font-size: .92rem; margin: 8px 0 12px; }
.aside-articles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aside-articles li a { display: flex; gap: .55em; align-items: flex-start; color: var(--ink); font-size: .92rem; font-weight: 600; line-height: 1.4; }
.aside-articles li a:hover { color: var(--gold-600); }
.aside-articles .ic { color: var(--gold-600); width: 1.05em; height: 1.05em; flex: 0 0 auto; margin-top: .15em; }

/* Enlace "Área relacionada" al pie de los artículos */
.article-related { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.article-related a { font-weight: 700; color: var(--gold-600); }

/* ----------------------------- Asistente Virtual (chatbot) ----------------------------- */
.chat-widget { position: fixed; left: 20px; bottom: 20px; z-index: 95; }
.chat-launcher {
  display: inline-flex; align-items: center; gap: .5em; padding: 12px 18px 12px 14px;
  background: var(--blue-bright); color: #fff; border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--ff-sans); font-weight: 700; font-size: .95rem; min-height: 48px;
  box-shadow: 0 12px 30px -10px rgba(0, 118, 176, .7); transition: transform .15s, background .15s;
}
.chat-launcher:hover { transform: translateY(-2px); background: var(--blue); color: #fff; }
.chat-launcher .ic { width: 1.2em; height: 1.2em; }
.chat-widget.open .chat-launcher { display: none; }
.chat-panel {
  position: absolute; left: 0; bottom: 0; width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff; }
.chat-head-id { display: flex; align-items: center; gap: 10px; }
.chat-head-id strong { display: block; font-family: var(--ff-serif); font-size: 1rem; }
.chat-head-id span { font-size: .8rem; color: #cfe0f0; }
.chat-avatar { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: var(--green); color: #fff; flex: 0 0 auto; }
.chat-avatar .ic { width: 20px; height: 20px; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; min-width: 44px; min-height: 44px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: .92rem; line-height: 1.5; }
.chat-msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 3px; }
.chat-msg-user { align-self: flex-end; background: var(--blue-bright); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg-typing { color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--line-input); border-radius: 999px; font-family: var(--ff-sans); font-size: .95rem; color: var(--ink); }
.chat-form input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(0, 136, 203, .18); }
.chat-send { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; border: none; border-radius: 50%; background: var(--blue-bright); color: #fff; cursor: pointer; }
.chat-send:hover { background: var(--blue); }
.chat-send .ic { width: 20px; height: 20px; }
.chat-foot { margin: 0; padding: 0 14px 12px; font-size: .8rem; color: var(--muted); text-align: center; background: #fff; }
.chat-foot a { font-weight: 600; }
/* Que el chat no choque con el FAB de WhatsApp en mobile (FAB a la derecha, chat a la izquierda) */

/* ----------------------------- Responsive ----------------------------- */
/* Nav: colapsa a hamburguesa antes (9 items no entran en tablet) */
@media (max-width: 1040px) {
  .header-cta .ic + span { display: none; }
  .header-cta { padding: .6em; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 10px; margin-left: auto; order: 3;
    min-width: 44px; min-height: 44px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { margin-left: 0; }
  .nav-list {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .28s ease;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list a { padding: 13px 8px; border-radius: 8px; font-size: 1rem; }
  .nav-list a[aria-current="page"]::after { display: none; }
  .header-inner { gap: 10px; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .map-grid, .about-grid, .contact-grid, .content-grid { grid-template-columns: 1fr; }
  .content-aside, .about-photo { position: static; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid, .reviews-grid, .steps, .guides-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-cta .ic + span { display: none; }
  .header-cta { padding: .6em; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 10px; margin-left: auto; order: 3;
    min-width: 44px; min-height: 44px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { margin-left: 0; }
  .nav-list {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .28s ease; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list a { padding: 13px 8px; border-radius: 8px; font-size: 1rem; }
  .nav-list a[aria-current="page"]::after { display: none; }
  .header-inner { gap: 10px; }
  .features-grid, .areas-grid, .reviews-grid, .steps, .services-list, .guides-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .wa-fab { bottom: 16px; right: 16px; }
  body { scroll-padding-bottom: 80px; }
  /* Chat: en mobile el lanzador queda compacto (solo icono) a la izquierda; el panel ocupa casi todo el ancho */
  .chat-widget { left: 16px; bottom: 16px; }
  .chat-launcher-label { display: none; }
  .chat-launcher { padding: 0; width: 52px; height: 52px; justify-content: center; }
  .chat-panel { width: calc(100vw - 32px); max-height: calc(100vh - 90px); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 50px 0; }
  .hero { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
