/* =============================================================
   Lucía Rivoiro · Abogada — styles.css
   Arquetipo: Editorial Light Cream (adaptado a la identidad LR)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #fbf6f2;   /* crema exacta del logo */
  --bg-2:       #f2e9df;   /* arena */
  --bg-3:       #ebe0d3;
  --paper:      #ffffff;
  --ink:        #16130f;
  --ink-soft:   #2c2620;
  --ink-mute:   #6d6357;
  --accent:     #a8896a;   /* camel del logo */
  --accent-ink: #7a5c3e;   /* camel oscuro, legible en texto pequeño */
  --line:       rgba(22, 19, 15, 0.13);
  --line-soft:  rgba(22, 19, 15, 0.07);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.25rem, 4.5vw, 3.25rem);
  --maxw: 1240px;
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.01em; font-weight: 400; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .65rem 1.1rem; background: var(--ink); color: var(--bg);
  border-radius: 6px; font-size: .85rem; letter-spacing: .04em;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

.section {
  padding-block: clamp(4.5rem, 11vh, 8.5rem);
  position: relative;
}

.section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 46ch;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.03;
  color: var(--ink);
  font-weight: 400;
}
.section-title em { font-style: italic; color: var(--accent-ink); }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--ink-mute);
  max-width: 54ch;
}

/* =============================================================
   4. Componentes — botones
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: .95em 1.7em;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .45s var(--ease-out), color .45s var(--ease-out),
              border-color .45s var(--ease-out), transform .45s var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-ink); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(22,19,15,.04); }

.btn-arrow { transition: transform .45s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* enlace con subrayado que se dibuja */
.link-line {
  position: relative;
  display: inline-block;
  color: var(--ink);
  padding-bottom: 2px;
}
.link-line::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease-out), visibility .7s;
  /* Red de seguridad: se oculta sola a los 4,5 s aunque falle el JS */
  animation: splashSafety .01s 4.5s forwards;
}
.splash img {
  width: clamp(84px, 14vw, 122px);
  opacity: 0;
  animation: splashMark 1.5s .1s var(--ease-out) forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashMark {
  0%   { opacity: 0; transform: translateY(10px) scale(.97); }
  40%  { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}
@keyframes splashSafety {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* =============================================================
   6. Navegación
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out),
              border-color .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(251, 246, 242, .88);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
@supports not (backdrop-filter: blur(4px)) {
  .nav.is-stuck { background: var(--bg); }
}

.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 34px; height: auto; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-role {
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: none; }

.nav-burger {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-burger {
  transition: border-color .5s var(--ease-soft), background .5s var(--ease-soft);
}
.nav-burger:hover { border-color: var(--ink); }
.nav-burger .bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}
.nav-burger .bars span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .55s var(--ease-soft), opacity .3s var(--ease-soft),
              width .55s var(--ease-soft);
}
.nav-burger .bars span:nth-child(1) { top: 0; }
.nav-burger .bars span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 72%; }
.nav-burger .bars span:nth-child(3) { bottom: 0; }

.nav.is-open .nav-burger { background: var(--ink); border-color: var(--ink); }
.nav.is-open .nav-burger .bars span { background: var(--bg); }
.nav.is-open .nav-burger .bars span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.nav.is-open .nav-burger .bars span:nth-child(2) { opacity: 0; width: 0; }
.nav.is-open .nav-burger .bars span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 3rem;
  display: grid;
  align-content: center;
  gap: .2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s var(--ease-soft), visibility .55s;
}
.menu.is-open { opacity: 1; visibility: visible; }

.menu a,
.menu .menu-foot {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: 0s;
}
.menu.is-open a,
.menu.is-open .menu-foot {
  opacity: 1;
  transform: none;
  transition-delay: calc(120ms + var(--i, 0) * 55ms);
}

.menu a {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 8vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
  padding-block: .55rem;
  border-bottom: 1px solid var(--line-soft);
}
.menu a:last-of-type { border-bottom: 0; }
.menu .menu-foot {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-mute);
  display: grid;
  gap: .45rem;
}
.menu .menu-foot a {
  font-family: var(--sans);
  font-size: .92rem;
  border-bottom: 0;
  padding-block: 0;
  opacity: 1;
  transform: none;
  color: var(--ink);
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 7vh, 4.5rem));
  padding-bottom: clamp(3rem, 9vh, 6rem);
  overflow: clip;
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.6rem;
}
.hero-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 90px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 7.4vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 15ch;
}
.hero-title .em-line {
  font-style: italic;
  color: var(--accent-ink);
}

/* revelado por líneas con máscara */
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.15s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.is-ready .line-mask > span { transform: none; }

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  color: var(--accent-ink);
  max-width: 34ch;
  margin-top: 1.6rem;
}

.hero-text {
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  color: var(--ink-mute);
  max-width: 46ch;
  margin-top: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.4rem;
}

/* retrato en arco — eco del logotipo */
.portal {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 4px 4px;
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 40px 90px -50px rgba(22, 19, 15, .55);
}
.portal img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 22%;
  transform: translateY(var(--py, 0px));
  will-change: transform;
}
.portal-figure { position: relative; }
/* arco decorativo camel, desplazado */
.portal-figure::before {
  content: "";
  position: absolute;
  left: -22px; right: 30px; top: 26px; bottom: 42px;
  border: 1px solid var(--accent);
  border-radius: 999px 999px 4px 4px;
  opacity: .55;
  pointer-events: none;
  z-index: -1;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: .82rem;
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: .02em;
}

/* =============================================================
   8. Barra de confianza
   ============================================================= */
.trust {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(242, 233, 223, .5);
}
.trust-grid {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
}
.trust-item {
  background: var(--bg);
  padding: 1.9rem clamp(1rem, 2.4vw, 2rem);
  display: grid;
  gap: .35rem;
}
.trust-item h2 {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--ink);
}
.trust-item p { font-size: .9rem; color: var(--ink-mute); }

/* =============================================================
   9. Perfil
   ============================================================= */
.perfil-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.perfil-photo {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-3);
}
.perfil-photo img { width: 100%; }

.slideshow {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-3);
  overflow: hidden;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.6s var(--ease-soft), transform 6s linear;
}
.slideshow .slide.is-active { opacity: 1; transform: scale(1); }

.slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  gap: .45rem;
  z-index: 2;
}
.slideshow-dots button {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: rgba(251, 246, 242, .45);
  transition: background .5s var(--ease-soft);
}
.slideshow-dots button[aria-current="true"] { background: var(--bg); }
.perfil-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1.4rem 1.1rem;
  background: linear-gradient(to top, rgba(22,19,15,.62), transparent);
  color: var(--bg);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.perfil-body p + p { margin-top: 1.15rem; }
.perfil-body p { font-size: 1.03rem; }
.firma {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--accent-ink);
  margin-top: 2rem;
}
.firma-role {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: .45rem;
}
.perfil-facts {
  margin-top: 2.4rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.perfil-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
}
.perfil-facts dt { color: var(--ink-mute); }
.perfil-facts dd { color: var(--ink); text-align: right; }

/* =============================================================
   10. Áreas de práctica
   ============================================================= */
.areas { border-top: 1px solid var(--line); }
.area {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem 1.4rem;
  align-items: baseline;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}
.area::before {
  content: "";
  position: absolute;
  inset: 0 clamp(-1.4rem, -1.6vw, -.8rem);
  background: var(--bg-2);
  opacity: 0;
  transition: opacity .55s var(--ease-soft);
  z-index: -1;
  border-radius: 4px;
  pointer-events: none;
}
.area-num {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--accent);
  transition: color .5s var(--ease-out);
}
.area-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  color: var(--ink);
  line-height: 1.12;
}
.area-desc {
  grid-column: 2;
  color: var(--ink-mute);
  font-size: .96rem;
  max-width: 62ch;
  margin-top: .45rem;
}

.area-title,
.area-num {
  transition: transform .55s var(--ease-soft), color .55s var(--ease-soft);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .area:hover::before { opacity: .75; }
  .area:hover .area-num { color: var(--accent-ink); transform: translateX(3px); }
  .area:hover .area-title { transform: translateX(6px); }
}

/* =============================================================
   11. Método
   ============================================================= */
.metodo { background: var(--bg-2); }
.pasos {
  display: grid;
  gap: 2.4rem;
  counter-reset: paso;
}
.paso {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(22,19,15,.16);
}
.paso-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: .8rem;
}
.paso h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: .6rem;
}
.paso p { font-size: .96rem; color: var(--ink-mute); }

.metodo-cierre {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid rgba(22,19,15,.16);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 52ch;
}

/* =============================================================
   12. Preguntas frecuentes
   ============================================================= */
.faq-list { border-top: 1px solid var(--line); }
.faq {
  border-bottom: 1px solid var(--line);
  padding: .35rem 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.42rem);
  color: var(--ink);
  transition: color .4s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq-icon {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  align-self: center;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1px;
  background: var(--accent-ink);
  transform: translate(-50%, -50%);
  transition: transform .45s var(--ease-out), opacity .3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq-body {
  padding-bottom: 1.5rem;
  max-width: 68ch;
  color: var(--ink-mute);
  font-size: .98rem;
  animation: faqIn .55s var(--ease-out) both;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================================
   13. Contacto
   ============================================================= */
.contacto { background: var(--ink); color: rgba(251,246,242,.82); }
.contacto .section-title,
.contacto .area-title { color: var(--bg); }
.contacto .kicker { color: var(--accent); }
.contacto .lede { color: rgba(251,246,242,.62); }

.contacto-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(251,246,242,.55);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .98rem;
  color: var(--bg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(251,246,242,.22);
  padding: .7rem 0;
  border-radius: 0;
  transition: border-color .4s var(--ease-out);
  width: 100%;
}
.field select { color: var(--bg); }
.field select option { color: var(--ink); background: var(--bg); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(251,246,242,.3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 96px; }

.form .btn-primary {
  background: var(--accent);
  color: var(--ink);
  justify-self: start;
  margin-top: .6rem;
}
.form .btn-primary:hover { background: var(--bg); }

.wa-preview {
  margin-top: .4rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(251,246,242,.16);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  background: rgba(251,246,242,.045);
  display: grid;
  gap: .5rem;
}
.wa-preview-label {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(251,246,242,.45);
}
.wa-preview-text {
  font-size: .97rem;
  line-height: 1.6;
  color: rgba(251,246,242,.9);
  transition: opacity .35s var(--ease-soft);
}
.wa-preview-text.is-updating { opacity: .35; }

.form-note {
  font-size: .78rem;
  color: rgba(251,246,242,.45);
  max-width: 44ch;
}

.datos { display: grid; gap: 1.6rem; align-content: start; }
.dato {
  display: grid;
  gap: .3rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(251,246,242,.14);
}
.dato span {
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(251,246,242,.45);
}
.dato a, .dato p {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--bg);
}
.dato a { transition: color .4s var(--ease-out); }
.dato .dato-sub {
  font-family: var(--sans);
  font-size: .88rem;
  color: rgba(251,246,242,.6);
  margin-top: .15rem;
}
.dato .dato-sub:hover { color: var(--accent); }
.dato a:hover { color: var(--accent); }

/* =============================================================
   13b. Ubicación
   ============================================================= */
.ubicacion {
  background: var(--ink);
  color: rgba(251,246,242,.78);
  padding-top: 0;
}
.ubicacion .section-title { color: var(--bg); }
.ubicacion .kicker { color: var(--accent); }

.ubicacion-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.ubicacion-info address {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  color: var(--bg);
}

.ubicacion-datos {
  margin-top: 2rem;
  border-top: 1px solid rgba(251,246,242,.14);
}
.ubicacion-datos div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(251,246,242,.09);
  font-size: .92rem;
}
.ubicacion-datos dt { color: rgba(251,246,242,.5); }
.ubicacion-datos dd { color: var(--bg); text-align: right; }

.ubicacion-nota {
  margin-top: 1.4rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(251,246,242,.62);
  max-width: 42ch;
}

.ubicacion-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.2rem;
}
.ubicacion-acciones .btn-primary { background: var(--accent); color: var(--ink); }
.ubicacion-acciones .btn-primary:hover { background: var(--bg); }
.ubicacion-acciones .btn-ghost { border-color: rgba(251,246,242,.28); color: var(--bg); }
.ubicacion-acciones .btn-ghost:hover {
  border-color: var(--bg);
  background: rgba(251,246,242,.07);
}

/* El mapa se tiñe para entrar en la paleta del sitio */
.mapa {
  position: relative;
  min-height: 340px;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(251,246,242,.16);
  background: #2a2521;
}
.mapa-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  gap: .35rem;
  text-align: center;
  padding: 1.5rem;
  color: rgba(251,246,242,.6);
  font-size: .95rem;
}
.mapa-fallback-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--bg);
}
.mapa-fallback .btn {
  margin-top: 1.2rem;
  justify-self: center;
  border-color: rgba(251,246,242,.28);
  color: var(--bg);
}
.mapa-fallback .btn:hover { border-color: var(--bg); background: rgba(251,246,242,.07); }

.mapa iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #2a2521;
  filter: grayscale(1) sepia(.42) saturate(.85) brightness(.94) contrast(1.06);
  transition: filter .8s var(--ease-soft);
}
.mapa:hover iframe { filter: grayscale(.35) sepia(.14) saturate(1) brightness(1) contrast(1); }

/* =============================================================
   14. Footer
   ============================================================= */
.footer {
  background: var(--ink);
  color: rgba(251,246,242,.5);
  padding-bottom: 2.5rem;
}
.footer-inner {
  border-top: 1px solid rgba(251,246,242,.14);
  padding-top: 2.5rem;
  display: grid;
  gap: 1.8rem;
  align-items: center;
}
.footer img { width: 148px; opacity: 1; }
.footer-legal { font-size: .76rem; line-height: 1.7; max-width: 52ch; }
.footer-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-links a { transition: color .4s var(--ease-out); }
.footer-links a:hover { color: var(--accent); }

.footer-credit {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(251,246,242,.1);
  font-size: .74rem;
  letter-spacing: .04em;
  color: rgba(251,246,242,.42);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.footer-credit a {
  color: rgba(251,246,242,.72);
  border-bottom: 1px solid rgba(251,246,242,.25);
  padding-bottom: 1px;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.footer-credit a:hover { color: var(--accent); border-color: var(--accent); }

/* botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 800;
  width: 54px; height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 14px 34px -14px rgba(22,19,15,.55),
              0 0 0 1px rgba(251,246,242,.14);
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out),
              visibility .5s, background .4s var(--ease-out);
}
.wa-float.is-visible { opacity: 1; transform: none; visibility: visible; }
.wa-float:hover { background: var(--accent-ink); color: var(--bg); }
.wa-float:active { transform: scale(.96); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }

/* =============================================================
   15. Revelados al hacer scroll
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Defensa: un elemento con .reveal y data-split nunca queda invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* Sin JS todo el contenido debe verse */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .line-mask > span { transform: none; }
.no-js .splash { display: none; }

/* =============================================================
   16. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .pasos { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    gap: 2.5rem;
  }
  .footer-credit { grid-column: 1 / -1; margin-top: .6rem; }
}

@media (min-width: 960px) {
  :root { --nav-h: 88px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }

  .hero-grid {
    grid-template-columns: 1.08fr .92fr;
    gap: clamp(2rem, 5vw, 5rem);
  }
  .portal { margin-right: 0; }

  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item { padding-block: 2.3rem; }

  .perfil-grid { grid-template-columns: .82fr 1.18fr; gap: clamp(3rem, 6vw, 5.5rem); }
  .perfil-photo { position: sticky; top: calc(var(--nav-h) + 2rem); }

  .area { grid-template-columns: 90px 1fr 1.05fr; align-items: start; }
  .area-title { grid-column: 2; }
  .area-desc { grid-column: 3; margin-top: .35rem; }

  .contacto-grid { grid-template-columns: 1.15fr .85fr; }
  .ubicacion-grid { grid-template-columns: .82fr 1.18fr; }
  .mapa { aspect-ratio: auto; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(4rem, 6.4vw, 6.6rem); }
}

/* =============================================================
   17. Reduced motion — sólo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portal img { transform: none !important; }
  .slideshow .slide { transition-duration: .6s; transform: none !important; }
  .mapa iframe { transition: none; }
  .menu a, .menu .menu-foot { transition-delay: 0s !important; }
  .splash img { animation-duration: .4s; }
}
