/* ═══════════════════════════════════════════════════════════
   Elena Hernández — Psicóloga · Hoja de estilos compartida
   v10 · Diseño propio para móvil · Paleta 100% de la identidad de marca
   Rosa #F194B4 · Azul #C4DAFA · Granate #A63D5A
   Oliva #87B37A · Amarillo #FFFC98 · Fondo #FAFAFA
   (no se usa ningún color fuera de la paleta)
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* ── Paleta de marca (única fuente de color) ── */
  --rosa:      #F194B4;
  --azul:      #C4DAFA;
  --granate:   #A63D5A;
  --olive:     #87B37A;
  --amarillo:  #FFFC98;

  /* ── Color de acento para TEXTO ──
     El azul pastel #C4DAFA solo sirve como FONDO. Como texto da 1,36:1 sobre
     el fondo claro y 1,26:1 sobre el cream, y el mínimo legible es 3:1: en
     móvil desaparece. Petición de Elena (revisión v4) — opción C2: todo el
     texto y las líneas de acento sobre fondo claro pasan al granate (5,85:1).
     Sobre fondo granate u oscuro el azul SÍ se lee (4,29:1) y ahí se conserva. */
  --acento:    var(--granate);

  /* ── Neutros ── */
  --bg:        #FAFAFA;
  --cream:     #F7EFF1;
  --white:     #FFFFFF;
  --ink:       #3A2E32;
  --ink-soft:  #6E5A60;
  --line:      #EADFE2;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max:   1180px;

  --shadow-soft: 0 18px 50px -24px rgba(58,46,50,.35);
  --shadow-card: 0 14px 40px -20px rgba(166,61,90,.30);
  --radius:    18px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
[id] { scroll-margin-top: 96px; }

::selection { background: var(--granate); color: #fff; }
a { color: var(--granate); }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 2.5px solid var(--granate);
  outline-offset: 3px;
  border-radius: 3px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* Palabras destacadas en granate — petición de Elena (revisión v4, opción C2) */
.eyebrow {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--acento);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1.5px;
  background: var(--acento); display: inline-block;
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 400; color: var(--ink);
  line-height: 1.12; letter-spacing: -.01em;
  margin: 18px 0 22px;
}
.sec-title em { font-style: italic; color: var(--acento); }
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 60ch; line-height: 1.85; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 30px; min-height: 48px; border-radius: 100px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, filter .25s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--granate); color: #fff; }
.btn-primary:hover { filter: brightness(.92); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-ghost { border-color: var(--granate); color: var(--granate); background: transparent; }
.btn-ghost:hover { background: var(--granate); color: #fff; transform: translateY(-2px); }
.btn-soft { background: #fff; color: var(--granate); }
.btn-azul { background: var(--azul); color: var(--ink); }
.btn-azul:hover { filter: brightness(.95); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-soft:hover { background: var(--azul); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 14px 0;
  transition: background .4s var(--ease), box-shadow .4s, padding .4s;
}
nav.scrolled {
  background: rgba(250,250,250,.90);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 9px 0;
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo-img {
  display: block; height: 56px; width: auto;
  transition: height .4s var(--ease);
}
nav.scrolled .logo-img { height: 46px; }
.brand-name {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.02rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink); line-height: 1.25; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 500; color: var(--ink);
  text-decoration: none; letter-spacing: .02em; transition: color .2s;
  position: relative;
}
/* Área de clic de 29 px sin mover nada visualmente */
.nav-links a:not(.btn) { display: inline-block; padding: 6px 0; }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 1px;
  width: 0; height: 3px; background: var(--acento); transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a.active:not(.btn) { font-weight: 600; }
.nav-links a.active:not(.btn)::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 12px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--granate); border-radius: 2px; transition: .3s var(--ease); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif); font-size: 2rem; font-weight: 400;
  color: var(--ink); text-decoration: none; padding: 6px 4px;
}
.mobile-menu a.active { font-style: italic; border-bottom: 3px solid var(--acento); }
.mobile-close { position: absolute; top: 20px; right: 20px; background: none; border: none; cursor: pointer; padding: 12px; }
.mobile-menu-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.mobile-menu .mobile-menu-contact a {
  font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 100px;
  border: 1.5px solid var(--granate); color: var(--granate);
}
.mobile-menu-contact svg { width: 17px; height: 17px; stroke: var(--granate); }
.mobile-close svg { width: 30px; height: 30px; stroke: var(--granate); }
/* Un solo botón: al abrir el menú, las tres rayas se convierten en una X
   (antes la X del menú y la hamburguesa quedaban una encima de otra) */
.mobile-close { display: none; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open nav, body.menu-open nav.scrolled { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ── HERO (Home) ── */
.hero { position: relative; padding: 168px 0 90px; overflow: hidden; }
.hero-blob {
  position: absolute; z-index: 0; border-radius: 46% 54% 58% 42% / 50% 44% 56% 50%;
  filter: blur(2px);
}
.blob-1 { width: 620px; height: 620px; background: var(--azul); opacity: .30; top: -120px; right: -160px; }
.blob-2 { display: none; } /* círculo amarillo del hero retirado — petición de Elena */
.hero-inner {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.hero-text { text-align: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1;
  color: var(--ink); letter-spacing: -.01em; margin: 18px 0 6px;
}
.hero-name {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em;
  font-size: 1.35rem; color: var(--acento); margin-bottom: 22px;
}
.hero-tagline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05;
  color: var(--ink); letter-spacing: -.015em; margin: 0 0 34px;
}
.hero-tagline em { font-style: italic; color: var(--acento); }
.hero-desc { font-size: 1.1rem; color: var(--ink-soft); max-width: 44ch; line-height: 1.85; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* foto hero — arco */
.hero-photo { position: relative; display: flex; justify-content: center; }
.photo-arch {
  width: 100%; max-width: 560px; aspect-ratio: 3/2;
  border-radius: 26px;
  background: var(--azul);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-soft);
  display: flex; align-items: flex-end; justify-content: center;
}
.photo-arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.photo-ring {
  position: absolute; inset: -14px; z-index: -1;
  border: 1.5px solid var(--rosa); opacity: .5;
  border-radius: 34px;
}
.photo-badge {
  position: absolute; bottom: 26px; left: -26px;
  background: var(--white); border-radius: 14px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-soft);
}
.photo-badge .b-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.photo-badge .b-ic svg { width: 20px; height: 20px; stroke: var(--granate); }
.photo-badge strong { display: block; font-size: .86rem; color: var(--granate); font-weight: 600; }
.photo-badge span { font-size: .78rem; color: var(--ink-soft); }

/* ── CABECERA de página interior ── */
.page-hero {
  position: relative; overflow: hidden;
  padding: 170px 0 80px;
  background: var(--cream);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.08;
  color: var(--ink); letter-spacing: -.015em; margin: 20px 0 20px;
}
.page-hero h1 em { font-style: italic; color: var(--acento); }
.page-hero .lead { max-width: 62ch; }
.page-blob {
  position: absolute; z-index: 0; border-radius: 46% 54% 58% 42% / 50% 44% 56% 50%;
  filter: blur(2px);
}
.page-blob-1 { width: 460px; height: 460px; background: var(--azul); opacity: .35; top: -160px; right: -120px; }
.page-blob-2 { width: 220px; height: 220px; background: var(--olive); opacity: .3; bottom: -80px; left: -60px; border-radius: 50%; filter: blur(0); }

/* ── SECTIONS base ── */
section { padding: 100px 0; }
.about { background: var(--cream); }
.training { background: var(--cream); }
.section-cta-end { text-align: center; margin-top: 54px; }

/* ── SOBRE MÍ ── */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.about-photo { position: relative; }
.about-arch {
  width: 100%; aspect-ratio: 4/5; border-radius: 180px 180px 20px 20px;
  background: var(--azul);
  overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.about-arch img { width: 100%; height: 100%; object-fit: cover; }
.about-quote {
  position: absolute; bottom: -26px; right: -22px; max-width: 230px;
  background: var(--granate); color: #fff; padding: 22px 24px; border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.about-quote p { font-family: var(--serif); font-style: italic; font-size: 1.08rem; line-height: 1.45; margin-bottom: 8px; }
.about-quote span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.about-body p { margin-bottom: 18px; color: var(--ink); }
.about-body p:last-of-type { margin-bottom: 30px; }
.creds { display: grid; gap: 12px; }
.cred { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; color: var(--ink); }
.cred svg { width: 18px; height: 18px; stroke: var(--olive); flex-shrink: 0; margin-top: 3px; }

/* ── SERVICIOS ── */
.services-head { max-width: 620px; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }

/* Fotos de las salas — todas exactamente al mismo tamaño */
.card-photo {
  margin: -34px -30px 22px; aspect-ratio: 4/3;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden; background: var(--azul);
}
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-photo-blank { background: var(--azul); }

.card-ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
}
.card-ic svg { width: 25px; height: 25px; stroke-width: 1.6; }
.card h3, .card h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.card p { font-size: .9rem; color: var(--ink-soft); line-height: 1.7; }
.card-tag { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--granate); font-weight: 600; }
.card-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }

/* ── SITUACIONES (carrusel) ── */
.situations { background: var(--cream); }
.situations-head { max-width: 640px; margin-bottom: 44px; }
.sit-carousel { position: relative; }
.sit-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.sit-track::-webkit-scrollbar { display: none; }
.sit-card {
  scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.sit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.sit-num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 2.6rem; line-height: 1; color: var(--acento);
}
.sit-card p { font-size: .96rem; color: var(--ink-soft); line-height: 1.72; }
.sit-dots { display: flex; justify-content: center; gap: 2px; margin-top: 26px; flex-wrap: wrap; }
/* Área táctil de 24 px con el punto visual de 11 px */
.dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.dot::before {
  content: ''; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--granate); background: transparent;
  transition: background .25s, transform .25s;
}
.dot:hover::before { background: var(--azul); }
.dot.active::before { background: var(--granate); transform: scale(1.2); }
.sit-track:focus-visible, .cards-home:focus-visible { outline-offset: 6px; }

/* Flechas + contador: solo en móvil (ver bloque MÓVIL) */
.car-nav { display: none; }
@media (max-width: 900px){ .sit-track { grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 620px){ .sit-track { grid-auto-columns: 86%; } }

/* ── PROCESO (3 pasos) ── */
.process { background: var(--cream); }
.process-head { max-width: 640px; margin-bottom: 48px; }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.step-num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 2.8rem; line-height: 1; color: var(--acento);
  padding-bottom: 6px; border-bottom: 1.5px solid var(--line); margin-bottom: 6px;
}
.step h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); line-height: 1.28; }
.step p { font-size: .92rem; color: var(--ink-soft); line-height: 1.72; }
@media (max-width: 860px){ .process-steps { grid-template-columns: 1fr; } }

/* ── OPINIONES (widgets oficiales de Doctoralia) ── */
.reviews-layout { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: center; }
.reviews-aside { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.reviews-head .lead { margin-bottom: 0; }
/* El widget de Doctoralia ya trae su tarjeta: sin marco propio, con una forma
   orgánica azul de la marca detrás para integrarlo en el diseño */
.dl-card {
  position: relative; isolation: isolate;
  min-height: 330px; display: flex; align-items: center; justify-content: center;
}
.dl-card::before {
  content: ''; position: absolute; z-index: -1; inset: -8% 4%;
  background: var(--azul); opacity: .38;
  border-radius: 46% 54% 58% 42% / 50% 44% 56% 50%;
}
.dl-card > * { width: 100%; max-width: 400px; }
.dl-card iframe { display: block; width: 100% !important; border: 0; }
.reviews { overflow: hidden; }
.reviews-stage { min-width: 0; }
/* Enlace de reserva visible solo mientras el widget no ha cargado */
.dl-fallback {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 500; color: var(--granate); text-decoration: underline;
  text-underline-offset: 3px; min-height: 44px;
}
@media (max-width: 960px){
  .reviews-layout { grid-template-columns: 1fr; row-gap: 30px; }
  .reviews-aside { display: contents; }
  .reviews-stage { order: 2; }
  .reviews-links { order: 3; }
}

/* ── ENFOQUE ── */
.approach-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.approach-aside { position: sticky; top: 120px; }
/* Pilares: NO son pasos. Sin numerar y sin tarjeta, para no repetir
   el mismo componente que "¿Cómo será tu proceso?" de la home. */
.pillars { display: grid; gap: 0; }
.pillar {
  display: block; padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.pillar:first-child { padding-top: 4px; }
.pillar:last-child { border-bottom: none; padding-bottom: 4px; }
.pillar h3 {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 500;
  color: var(--ink); margin-bottom: 12px;
  position: relative; padding-left: 34px;
}
.pillar h3::before {
  content: ''; position: absolute; left: 0; top: .78em;
  width: 22px; height: 2px; background: var(--acento);
}
.pillar p { font-size: .96rem; color: var(--ink-soft); line-height: 1.8; padding-left: 34px; }
@media (max-width: 620px) {
  .pillar h3, .pillar p { padding-left: 0; }
  .pillar h3::before { position: static; display: block; margin-bottom: 14px; }
}

/* ── FORMACIÓN ── */
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 52px; }
.t-block + .t-block { margin-top: 38px; }
.t-block h3 {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1.5px solid var(--line);
}
.t-block h3 svg { width: 20px; height: 20px; stroke: var(--granate); }
.t-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.t-item:last-child { border-bottom: none; }
.t-item strong { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.t-item span { font-size: .84rem; color: var(--ink-soft); }

/* ── BLOG ── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.post-cover {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
}
.post-card:nth-child(1) .post-cover { background: var(--azul); }
.post-card:nth-child(2) .post-cover { background: var(--rosa); }
.post-card:nth-child(3) .post-cover { background: var(--olive); }
.post-cover svg { width: 54px; height: 54px; stroke: rgba(255,255,255,.9); stroke-width: 1.3; fill: none; }
.post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.post-meta { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.post-card h3, .post-card h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--ink); line-height: 1.25; }
.post-card p { font-size: .9rem; color: var(--ink-soft); line-height: 1.7; }
.post-soon {
  margin-top: auto;
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: var(--amarillo); color: var(--granate);
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

/* ── CTA ── */
.cta { padding: 0 0 100px; }
.cta-box {
  max-width: var(--max); margin: 0 auto;
  background: var(--granate);
  border-radius: 28px; padding: 76px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before, .cta-box::after { content: ''; position: absolute; border-radius: 50%; }
.cta-box::before { width: 300px; height: 300px; background: var(--rosa); opacity: .30; top: -120px; right: -80px; }
.cta-box::after { width: 220px; height: 220px; background: var(--azul); opacity: .16; bottom: -110px; left: -60px; }
.cta-box .inner { position: relative; z-index: 1; }
/* El azul sobre granate se conserva en el titular y la línea (texto grande, 4,29:1);
   la etiqueta pequeña pasa a blanco para llegar al 4,5:1 del texto pequeño. */
.cta-box .eyebrow { color: #fff; }
.cta-box .eyebrow::before { background: var(--azul); }
.cta-box h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem,3.8vw,3rem); color: #fff; line-height: 1.15; margin: 16px 0 18px; }
.cta-box h2 em { font-style: italic; color: var(--azul); }
.cta-box p { color: rgba(255,255,255,.92); max-width: 50ch; margin: 0 auto 36px; line-height: 1.8; }

/* ── CONTACTO ── */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-info { margin-top: 34px; display: grid; gap: 24px; }
.c-item { display: flex; gap: 16px; align-items: flex-start; }
.c-ic { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.c-ic svg { width: 21px; height: 21px; }
.c-item:nth-child(1) .c-ic { background: rgba(135,179,122,.30); } .c-item:nth-child(1) .c-ic svg { stroke: var(--ink); }
.c-item:nth-child(2) .c-ic { background: rgba(241,148,180,.30); } .c-item:nth-child(2) .c-ic svg { stroke: var(--granate); }
.c-item:nth-child(3) .c-ic { background: var(--azul); } .c-item:nth-child(3) .c-ic svg { stroke: var(--ink); }
.c-item:nth-child(4) .c-ic { background: var(--amarillo); } .c-item:nth-child(4) .c-ic svg { stroke: var(--ink); }
.c-text strong { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.c-text a, .c-text p { display: inline-block; font-size: .96rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.c-text a:hover { color: var(--granate); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-soft); }
form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { display: grid; gap: 6px; }
.fg label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.fg input, .fg select, .fg textarea {
  font-family: var(--sans); font-size: .94rem; color: var(--ink);
  padding: 14px 15px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--bg); outline: none; transition: border-color .2s, box-shadow .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(241,148,180,.22); }
.fg textarea { resize: vertical; min-height: 110px; }
.fg label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-status:empty { display: none; }
.form-status { font-size: .9rem; color: var(--ink); background: rgba(135,179,122,.22); border-radius: 10px; padding: 12px 14px; }
.form-note { font-size: .78rem; color: var(--ink-soft); line-height: 1.6; }
.form-note a { color: var(--granate); }
.btn-submit { justify-content: center; width: 100%; }
.fg { min-width: 0; }
.fg select { width: 100%; min-width: 0; }

/* ── FOOTER ── */
footer { background: var(--granate); color: rgba(255,255,255,.9); padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-brand-row { display: flex; align-items: center; gap: 14px; }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; height: 60px; width: auto; }
.footer-name {
  font-family: var(--serif); font-weight: 500; color: #fff;
  font-size: 1rem; letter-spacing: .17em; text-transform: uppercase; line-height: 1.3;
}
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-top: 16px; max-width: 36ch; }
.footer-col h3 { font-family: var(--sans); font-weight: 600; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: .88rem; color: rgba(255,255,255,.9); text-decoration: none; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--azul); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .78rem; }
.footer-bottom a { color: rgba(255,255,255,.9); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-bottom a:hover { color: var(--azul); }

/* ── WhatsApp flotante ── */
.mbar { display: none; }
.more-btn { display: none; }
/* en las opiniones el desplegable también se usa en escritorio */
.op-list + .more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; margin: 4px 0 0; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--granate);
}
.op-list + .more-btn svg { width: 18px; height: 18px; stroke: var(--granate); transition: transform .3s var(--ease); }
.op-list + .more-btn.is-open svg { transform: rotate(180deg); }
.has-more > p:last-of-type { margin-bottom: 18px; }
.more-extra p:last-of-type { margin-bottom: 30px; }

.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--olive); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft); text-decoration: none;
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .container, .nav-inner, .hero-inner { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 72px 0; }
  .hero { padding: 124px 0 64px; }
  .page-hero { padding: 132px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { order: -1; }
  .photo-badge { left: 0; }
  .logo-img { height: 48px; }
  nav.scrolled .logo-img { height: 42px; }
  .brand-name { font-size: .84rem; letter-spacing: .14em; }
  .about-grid, .approach-grid, .contact-grid, .training-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-aside { position: static; }
  .about-quote { position: static; margin-top: 30px; max-width: 100%; }
  .cards, .posts { grid-template-columns: 1fr; }
  .cta-box { padding: 56px 24px; border-radius: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .form-card { padding: 26px 22px; }
}
@media (max-width: 620px) {
  .container, .nav-inner, .hero-inner { padding-left: 20px; padding-right: 20px; }
  .row { grid-template-columns: 1fr; }
  .hero-btns { width: 100%; flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .hero h1 { font-size: 1.5rem; }
  .hero-tagline { font-size: 2.5rem; }
  .photo-arch { max-width: 420px; border-radius: 20px; }
  .photo-badge { bottom: -22px; left: 50%; transform: translateX(-50%);
                 padding: 10px 16px; white-space: nowrap; }
  .hero-photo { margin-bottom: 30px; }
  .card { padding: 26px 22px 24px; }
  .card-photo { margin: -26px -22px 20px; }
  .sit-card, .step { padding: 26px 22px; }
  .mobile-menu { gap: 20px; }
  .mobile-menu a { font-size: 1.7rem; }
  .about-arch { border-radius: 140px 140px 18px 18px; }
  .wa-float { bottom: 18px; right: 18px; }
}
@media (max-width: 400px) {
  .brand { gap: 10px; }
  .brand-name { font-size: .76rem; letter-spacing: .1em; white-space: normal; }
  .logo-img { height: 42px; }
}


/* ── Opiniones escritas (opiniones.json) ──
   Cada tarjeta lleva la estética de su plataforma. Son los únicos colores de
   la web fuera de la paleta de Elena, a propósito: identifican la fuente.
   Doctoralia #00A19A · Google #FBBC04 (estrellas), #202124 y #5F6368 (texto) */
.op-scores { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 4px; }
.op-score {
  display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 2px 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px;
}
.op-score .op-mark { width: 20px; height: 20px; grid-row: 1; }
.op-score-num { font-family: Roboto, Arial, sans-serif; font-size: 1.25rem; font-weight: 500; color: #202124; line-height: 1; }
.op-score-txt { grid-column: 1 / -1; font-family: Roboto, Arial, sans-serif; font-size: .8rem; color: #5F6368; }
.op-mark { display: block; flex-shrink: 0; }

.op-stars { letter-spacing: 1px; font-size: .95rem; line-height: 1; white-space: nowrap; }
.op-stars-google { color: #FBBC04; }
.op-stars-doctoralia { color: #00A19A; }
.op-stars-off { color: #DADCE0; }

.op-list { display: grid; gap: 14px; }
.op-card {
  background: #fff; border: 1px solid #DADCE0; border-radius: 8px;
  padding: 18px 20px 20px; display: grid; gap: 10px;
  font-family: Roboto, Arial, Helvetica, sans-serif;
}
.op-top { display: flex; align-items: center; gap: 12px; }
.op-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 500;
}
.op-who { flex: 1; min-width: 0; }
.op-who strong { display: block; font-size: .95rem; font-weight: 500; color: #202124; }
.op-verificada { font-size: .78rem; color: #00706A; }
.op-rate { display: flex; align-items: center; gap: 10px; }
.op-date { font-size: .8rem; color: #5F6368; }
.op-text { font-size: .95rem; line-height: 1.6; color: #202124; overflow-wrap: anywhere; }
.op-card .op-mark { width: 16px; height: 16px; }
.op-card { position: relative; }
.op-source {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: .82rem; font-weight: 500; color: #5F6368; letter-spacing: -.01em;
  text-decoration: none; min-height: 24px;
}
/* toda la tarjeta lleva a la reseña en su plataforma */
.op-source::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.op-card:hover { border-color: #BDC1C6; }
.op-source:hover { text-decoration: underline; }
.op-google .op-source:hover { color: #1558B0; }
.op-doctoralia .op-source { color: #00706A; }

/* Doctoralia: avatar en su verde, tarjeta más redondeada */
.op-doctoralia { border-radius: 10px; }
.op-doctoralia .op-avatar { background: #E3F5F3; color: #00706A; }
/* Google: avatar gris azulado y tipografía de sus fichas */
.op-google .op-avatar { background: #E8F0FE; color: #1558B0; }
.op-google .op-who strong { font-weight: 500; }

.op-list .more-item { display: none; }
.op-list.items-open .more-item { display: grid; }

/* ═══════════════════════════════════════════════════════════
   MÓVIL (≤ 760 px) — diseño propio, no una versión encogida
   · Hero con la foto a sangre y el texto montado encima
   · Textos largos con «Seguir leyendo»
   · Servicios y situaciones en carrusel con flechas y contador
   · Proceso como línea de tiempo
   · Barra de contacto fija abajo (Llamar · WhatsApp · Pedir cita)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .container, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .sec-title { font-size: 2.05rem; margin: 12px 0 18px; }
  .eyebrow { letter-spacing: .22em; }
  .eyebrow::before { width: 20px; }
  .lead { font-size: 1rem; }
  .reveal { transform: translateY(14px); }

  /* Nav */
  nav { padding: 10px 0; }
  nav.scrolled { padding: 6px 0; }
  .brand { min-height: 44px; }
  .logo-img { height: 44px; }
  nav.scrolled .logo-img { height: 40px; }
  .hamburger { width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; margin-right: -12px; }
  body.menu-open { overflow: hidden; }

  /* Hero */
  .hero { padding: 0 0 44px; }
  .hero-blob { display: none; }
  .hero-inner { padding: 0; gap: 0; }
  .hero-photo { order: -1; margin: 0; }
  .photo-arch {
    max-width: none; width: 100%; aspect-ratio: 1 / 1.08;
    border-radius: 0; box-shadow: none; background: var(--bg);
  }
  .photo-arch img { object-position: center 30%; }
  .photo-arch::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
    background: linear-gradient(to top, var(--bg) 8%, rgba(250,250,250,.75) 45%, rgba(250,250,250,0));
    pointer-events: none;
  }
  .photo-ring { display: none; }
  .photo-badge {
    top: 78px; bottom: auto; left: 16px; transform: none;
    padding: 7px 14px 7px 7px; gap: 9px; border-radius: 100px; white-space: nowrap;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .photo-badge .b-ic { width: 30px; height: 30px; }
  .photo-badge .b-ic svg { width: 16px; height: 16px; }
  .photo-badge strong { font-size: .8rem; line-height: 1.2; }
  .photo-badge span { font-size: .75rem; line-height: 1.2; }
  .hero-text { position: relative; z-index: 3; margin-top: -96px; padding: 0 20px; }
  .hero h1 { font-size: 1.5rem; margin: 0 0 4px; }
  .hero-name { font-size: 1.05rem; letter-spacing: .2em; margin-bottom: 14px; }
  .hero-tagline { font-size: 2.55rem; margin-bottom: 26px; }
  .hero-btns { gap: 10px; }

  /* Sobre mí / Cómo trabajo */
  .about-grid { gap: 30px; }
  .about-photo { width: 76%; margin: 0 auto; }
  .about-arch { border-radius: 999px 999px 18px 18px; }
  .approach-home .about-photo { width: 100%; }
  .approach-home .about-arch { aspect-ratio: 16 / 11; border-radius: 18px; }
  .approach-home .about-arch img { object-position: center 30%; }
  .about-body p { margin-bottom: 16px; }

  /* «Seguir leyendo» */
  .has-more:not(.more-open) .more-extra { display: none; }
  .has-more:not(.more-open) > p:has(+ .more-extra) {
    -webkit-mask-image: linear-gradient(#000 45%, transparent);
            mask-image: linear-gradient(#000 45%, transparent);
    margin-bottom: 0;
  }
  .more-btn {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0; margin: 0 0 18px;
    background: none; border: 0; cursor: pointer;
    font-family: var(--sans); font-size: .82rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--granate);
  }
  .more-btn svg { width: 18px; height: 18px; stroke: var(--granate); transition: transform .3s var(--ease); }
  .more-open .more-btn svg { transform: rotate(180deg); }
  .about-body .btn { width: 100%; }

  /* Carruseles */
  .sit-track, .cards-home {
    margin: 0 -20px; padding: 4px 20px 10px; scroll-padding: 0 20px;
    grid-auto-columns: 84%; gap: 12px;
  }
  .cards-home {
    display: grid; grid-auto-flow: column; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cards-home::-webkit-scrollbar { display: none; }
  .cards-home .card { scroll-snap-align: start; }
  .cards-home .card.reveal { opacity: 1; transform: none; }
  .sit-dots { display: none; }
  .car-nav { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
  .is-static .car-nav { display: none; }
  .car-btn {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
    border: 1.5px solid var(--granate); background: var(--white);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: opacity .2s, background .2s;
  }
  .car-btn svg { width: 20px; height: 20px; stroke: var(--granate); }
  .car-btn:disabled { opacity: .35; cursor: default; }
  .car-btn:not(:disabled):active { background: var(--cream); }
  .car-meter { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .car-count { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink); line-height: 1; }
  .car-progress { display: block; width: 100%; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .car-progress i { display: block; height: 100%; background: var(--granate); transform-origin: left; transform: scaleX(.1); transition: transform .3s var(--ease); }

  .situations-head, .services-head, .process-head { margin-bottom: 26px; }
  /* «Sobre mí» y «Situaciones» comparten fondo: sin doble margen entre ellas */
  .about + .situations { padding-top: 8px; }
  .sit-track { align-items: start; }
  .sit-card { padding: 24px 22px; gap: 10px; }
  .sit-num { font-size: 2.2rem; }
  .sit-card p { font-size: 1rem; color: var(--ink); }

  .card-photo { aspect-ratio: 16 / 10; }
  .card h3, .card h2 { font-size: 1.35rem; }
  .section-cta-end { margin-top: 26px; }
  .section-cta-end .btn { width: 100%; }

  /* Proceso: línea de tiempo */
  .process-steps { gap: 0; }
  .step {
    position: relative; background: none; border: 0; border-radius: 0;
    padding: 0 0 30px 66px; gap: 6px;
  }
  .step::before {
    content: ''; position: absolute; left: 23px; top: 52px; bottom: 4px;
    width: 1.5px; background: var(--rosa);
  }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
  .step:hover { transform: none; box-shadow: none; }
  .step-num {
    position: absolute; left: 0; top: 0;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--white); border: 1.5px solid var(--granate);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; padding: 0; margin: 0;
  }
  .step h3 { font-size: 1.3rem; padding-top: 10px; }
  .step p { font-size: .95rem; }

  /* Opiniones */
  .op-scores { gap: 10px; margin: 18px 0 2px; }
  .op-score { padding: 10px 14px; }
  .op-card { padding: 16px 16px 18px; }
  /* el enlace de la fuente gana alto táctil sin moverse de sitio */
  .op-source { min-height: 44px; padding: 10px 0; margin: -10px 0; }
  .op-text { font-size: .94rem; }
  .reviews-head .lead { margin-bottom: 0; }
  .reviews-layout { row-gap: 24px; }
  .dl-card { min-height: 340px; }
  .dl-card::before { inset: 6% -12%; }
  .reviews-links { flex-direction: column; }
  .reviews-links .btn { width: 100%; padding: 15px 16px; font-size: .78rem; letter-spacing: .03em; }

  /* CTA */
  .cta { padding: 0 20px 60px; }
  .cta-box { padding: 46px 22px; border-radius: 22px; }
  .cta-box h2 { font-size: 1.95rem; }
  .cta-box .btn { width: 100%; }
  .br-desk { display: none; }

  /* Contacto */
  .contact-grid { gap: 30px; }
  .contact-info { margin-top: 20px; gap: 10px; }
  .c-item {
    align-items: center; gap: 14px; padding: 10px 14px;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  }
  .c-ic { width: 42px; height: 42px; }
  .c-text a { display: flex; align-items: center; min-height: 44px; }
  .form-card { padding: 22px 18px; border-radius: 16px; }
  .fg input, .fg select, .fg textarea { font-size: 16px; }

  /* Pie */
  footer { padding: 48px 0 calc(100px + env(safe-area-inset-bottom)); }
  .footer-top { grid-template-columns: .8fr 1.2fr; gap: 26px 18px; padding-bottom: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col h3 { margin-bottom: 6px; }
  .footer-col a { margin: 0; padding: 11px 0; line-height: 22px; }
  .footer-col p { margin: 6px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 18px; }
  .footer-bottom a { padding: 12px 0; }

  /* Barra de contacto fija */
  .wa-float { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px;
    position: fixed; left: 10px; right: 10px; z-index: 160;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 20px;
    background: rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px -14px rgba(58,46,50,.45);
    transform: translateY(calc(100% + 24px)); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s;
  }
  .mbar.show { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .mbar-item {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 48px; border-radius: 14px;
    font-size: .88rem; font-weight: 600; color: var(--ink); text-decoration: none;
  }
  .mbar-item svg { width: 19px; height: 19px; stroke: var(--granate); flex-shrink: 0; }
  .mbar-item svg.mbar-wa { fill: var(--granate); stroke: none; }
  .mbar-item:hover { color: var(--ink); }
  .mbar-item:active { background: var(--cream); }
  .mbar-cta, .mbar-cta:hover { background: var(--granate); color: #fff; }
  .mbar-cta:active { background: var(--granate); filter: brightness(.94); }

  /* Cabeceras de páginas interiores */
  .page-hero { padding: 112px 0 44px; }
  .page-hero h1 { font-size: 2.45rem; margin: 12px 0 10px; }
  .page-blob-1 { width: 300px; height: 300px; top: -130px; right: -150px; }
  .page-blob-2 { width: 150px; height: 150px; bottom: -70px; left: -60px; }
  .post-cover { aspect-ratio: 16 / 8; }
}

/* En pantallas táctiles no hay «hover»: sin saltos de tarjetas al tocar */
@media (hover: none) {
  .card:hover, .sit-card:hover, .post-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .btn:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   MÓVIL · PULIDO (ronda 2)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  /* Portada: velo claro bajo la barra para que logo y menú se lean sobre la foto */
  .photo-arch::before {
    content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 120px;
    background: linear-gradient(rgba(250,250,250,.92), rgba(250,250,250,0));
    pointer-events: none;
  }
  /* Fundido inferior más largo: el titular descansa sobre fondo limpio */
  .photo-arch::after { height: 52%; background: linear-gradient(to top, var(--bg) 14%, rgba(250,250,250,.8) 48%, rgba(250,250,250,0)); }

  /* La colegiación pasa de píldora sobre la foto a sello discreto bajo los botones */
  .hero { padding-bottom: 34px; }
  .hero-inner { display: flex; flex-direction: column; }
  .hero-photo { display: contents; }
  .photo-arch { order: 1; }
  .hero-text { order: 2; }
  .photo-badge {
    position: relative; top: auto; left: auto; bottom: auto; transform: none;
    order: 3; align-self: center; margin: 22px auto 0;
    background: none; box-shadow: none; padding: 0; gap: 8px;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .photo-badge .b-ic { width: 28px; height: 28px; background: var(--cream); }
  .photo-badge > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
  .photo-badge strong { font-size: .8rem; }
  .photo-badge span { font-size: .78rem; }
  .photo-badge div span::before { content: '·'; margin-right: 6px; color: var(--ink-soft); }

  /* Botones: uno principal y el secundario como enlace, más ligero */
  .hero-btns .btn-ghost {
    border-color: transparent; background: none; min-height: 44px; padding: 10px 16px;
    text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  }
  .hero-btns .btn-ghost:hover, .hero-btns .btn-ghost:active { background: none; color: var(--ink); }

  /* Situaciones: lista legible en vez de carrusel */
  .sit-track {
    display: block; overflow: visible; margin: 0; padding: 0;
    border-top: 1px solid rgba(166,61,90,.16);
  }
  .sit-card {
    display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: baseline;
    background: none; border: 0; border-radius: 0; padding: 16px 0;
    border-bottom: 1px solid rgba(166,61,90,.16);
  }
  .sit-card:hover { transform: none; box-shadow: none; }
  .sit-num { font-size: 1.75rem; line-height: 1; }
  .sit-card p { font-size: 1rem; line-height: 1.6; color: var(--ink); }
  .sit-carousel .car-nav { display: none; }
  .has-more-items:not(.items-open) .more-item { display: none; }
  .more-btn-list { margin: 14px 0 0; }
  .more-btn-list.is-open svg { transform: rotate(180deg); }

  /* Servicios: etiqueta siempre abajo y texto algo mayor */
  .cards-home .card { display: flex; flex-direction: column; }
  .cards-home .card-tag { margin-top: auto; padding-top: 16px; }
  .card p { font-size: .95rem; line-height: 1.65; }
  .step p { font-size: .97rem; line-height: 1.7; color: var(--ink); }

  /* Contacto: solo parece botón lo que es botón (toda la ficha se puede pulsar) */
  .c-item { position: relative; }
  .c-item:not(:has(a)) { background: none; border-color: transparent; padding-top: 4px; padding-bottom: 4px; }
  .c-item:has(a) { padding-right: 40px; }
  .c-item:has(a)::after {
    content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
    border-top: 1.6px solid var(--granate); border-right: 1.6px solid var(--granate);
    transform: translateY(-50%) rotate(45deg); pointer-events: none;
  }
  .c-text a::before { content: ''; position: absolute; inset: 0; border-radius: 14px; }
  .c-item:has(a):active { background: var(--cream); }

  /* Cabeceras interiores: una sola forma suave, sin manchas cortadas */
  .page-blob-2 { display: none; }
  .page-blob-1 { width: 260px; height: 260px; top: -150px; right: -120px; opacity: .28; }

  /* CTA sin titular (Sobre mí): caja más compacta */
  .cta-box .inner:not(:has(h2)) .btn { margin-top: 14px; }
}
@media (max-width: 360px) {
  .photo-badge > div { flex-direction: column; align-items: flex-start; }
  .photo-badge div span::before { content: none; }
}

/* ── TABLETA (761–960 px): dos columnas donde caben, fotos contenidas ── */
@media (min-width: 761px) and (max-width: 960px) {
  .cards, .posts { grid-template-columns: repeat(2, 1fr); }
  .cards-home .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cards-home .card:last-child:nth-child(odd) .card-photo { aspect-ratio: 21 / 9; }
  .about-photo { max-width: 440px; margin: 0 auto; width: 100%; }
  .approach-home .about-photo { max-width: none; }
  .approach-home .about-arch { aspect-ratio: 16 / 10; border-radius: 22px; }
  .photo-arch { max-width: 620px; margin: 0 auto; }
  .contact-grid { gap: 40px; }
  .cta { padding: 0 24px 72px; }
}

/* ── Móviles muy estrechos (≤ 360 px) ── */
@media (max-width: 360px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-tagline { font-size: 2.3rem; }
  .mbar-item { font-size: .82rem; gap: 5px; }
}

/* ═══════════════════════════════════════════════════════════
   PÁGINAS LEGALES — formato estándar: una columna de texto sobrio
   ═══════════════════════════════════════════════════════════ */
.page-hero-legal { background: var(--bg); padding: 140px 0 8px; }
.page-hero-legal h1 {
  font-size: clamp(2.2rem, 4vw, 3rem); margin: 0 0 6px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.page-hero-legal .lead {
  font-size: .9rem; color: var(--ink-soft);
  max-width: 760px; margin: 0 auto;
}
.legal-section { padding: 28px 0 90px; }
.legal-wrap { max-width: 840px; }
.legal { max-width: 760px; margin: 0 auto; }
.legal p, .legal li, .legal td { color: var(--ink); line-height: 1.75; font-size: 1rem; }
.legal p { margin-bottom: 14px; }
.legal h2 {
  font-family: var(--sans); font-weight: 600; font-size: 1.2rem; line-height: 1.35;
  color: var(--ink); margin: 38px 0 12px;
}
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); margin: 22px 0 6px; }
.legal ul { margin: 0 0 16px 1.25em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--granate); text-underline-offset: 2px; }
.legal-list { list-style: disc; }

.legal-table-wrap { margin: 0 0 16px; overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal-table th { font-size: .9rem; font-weight: 600; background: var(--cream); color: var(--ink); }
.legal-table td { font-size: .95rem; line-height: 1.6; }

/* Datos que faltan: muy visibles para que no se publique sin rellenarlos */
.pendiente {
  background: var(--amarillo); color: var(--ink);
  outline: 1.5px dashed var(--granate); outline-offset: 1px;
  padding: 1px 6px; border-radius: 4px; font-weight: 600;
}

/* Casilla de consentimiento del formulario */
.fg-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.fg-check input {
  width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--granate); cursor: pointer;
}
.fg-check label { font-size: .85rem; line-height: 1.55; color: var(--ink); cursor: pointer; }
.fg-check a { color: var(--granate); }

.footer-bottom a[aria-current="page"], .footer-col a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .page-hero-legal { padding: 104px 0 4px; }
  .page-hero-legal h1 { font-size: 2rem; }
  .legal-section { padding: 16px 0 56px; }
  .legal h2 { font-size: 1.12rem; margin-top: 30px; }
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
  .legal-table td { border: 0; padding: 8px 12px; }
  .legal-table td:first-child { font-weight: 600; background: var(--cream); }
  .legal-table td:last-child::before { content: 'Base legal: '; font-weight: 600; }
  .fg-check input { width: 24px; height: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   HERO AMPLIADO (tableta y escritorio, ≥ 761 px) — petición de Elena
   Foto a lo ancho, en tarjeta redondeada, con el texto encima abajo a la
   izquierda sobre un velo oscuro. En móvil sigue el hero propio de móvil.
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 761px) {
  .hero { padding: 96px 0 0; overflow: visible; }
  .hero-blob { display: none; }
  .hero-inner {
    display: block; position: relative;
    max-width: 1920px; margin: 0 auto; padding: 0 24px;
  }
  .hero-photo { position: absolute; inset: 0 24px; display: block; }
  .photo-arch {
    width: 100%; max-width: none; height: 100%; aspect-ratio: auto;
    border-radius: 28px; box-shadow: none; background: #2a2226;
  }
  .photo-arch img { object-position: center 42%; }
  .photo-ring { display: none; }
  /* Texto a la DERECHA, donde solo hay pared, lámpara y cómoda — petición de
     Elena (18/09): antes el titular caía encima de ella. Elena ocupa del 27 %
     al 63 % del ancho de la foto; el texto empieza a partir del 62 %. */
  .photo-arch::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(to left, rgba(28,20,24,.80) 0%, rgba(28,20,24,.66) 26%, rgba(28,20,24,.30) 40%, rgba(28,20,24,.06) 52%, rgba(28,20,24,0) 60%),
      linear-gradient(to top, rgba(28,20,24,.30) 0%, rgba(28,20,24,0) 40%);
  }
  .hero-text {
    position: relative; z-index: 3; text-align: left;
    min-height: clamp(560px, calc(100vh - 120px), 860px);
    display: flex; flex-direction: column; justify-content: center;
    padding: 64px clamp(28px, 4vw, 96px) 64px 62%;
    max-width: none;
  }
  /* sombra suave y local detrás del texto (la pared del fondo es clara) */
  .hero-text::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    right: 0; top: 10%; width: 46%; height: 80%;
    background: radial-gradient(ellipse 62% 58% at 62% 50%, rgba(28,20,24,.55) 0%, rgba(28,20,24,.28) 52%, rgba(28,20,24,0) 80%);
  }
  .hero h1 {
    font-family: var(--sans); font-size: .9rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255,255,255,.92); margin: 0 0 10px;
  }
  .hero-name {
    font-size: 1.05rem; letter-spacing: .24em; color: var(--azul);
    margin-bottom: 18px;
  }
  .hero-tagline {
    font-size: clamp(2.6rem, 4.1vw, 4.6rem); line-height: 1.04;
    color: #fff; margin-bottom: 32px;
  }
  /* «Un espacio para / entenderte»: siempre en dos líneas */
  .hero-tagline em { display: block; }
  .hero-tagline em { color: var(--azul); }
  .hero-btns { justify-content: flex-start; }
  .hero-btns .btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
  .hero-btns .btn-ghost:hover { background: #fff; color: var(--granate); }
  /* sello de colegiación: arriba a la IZQUIERDA, sobre la puerta (el texto va a la derecha) */
  .photo-badge {
    right: auto; left: clamp(24px, 3vw, 44px); top: clamp(24px, 4vh, 40px); bottom: auto;
    transform: none;
    background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}
@media (min-width: 761px) and (max-width: 960px) {
  .hero-text { min-height: 620px; padding-left: 58%; }
  /* tarjeta estrecha: se acerca la foto anclada a la derecha para que Elena
     quede a la izquierda y el texto no le toque el pelo */
  .photo-arch img { transform: scale(1.3); transform-origin: 100% 38%; }
}
