/* =========================================================
   Dra. Belén Mendoza — Dermatología
   Hoja de estilos principal

   Sistema:
   - Bodoni Moda (títulos): misma familia didona del monograma B.M
   - Jost (texto): geométrica, como las mayúsculas del logo
   - Colores de marca usados como bloques sólidos, igual que en los
     archivos del logo (caramelo, topo, rosa topo)
   - Motivo: el lente / dermatoscopio (círculo) solo en el hero
   ========================================================= */

:root {
  /* Marca */
  --caramel: #9E6A38;
  --caramel-deep: #7E5229;   /* botones y enlaces sobre fondo claro (AA con blanco) */
  --taupe: #84726D;
  --rose: #BCAFAC;
  --rose-tint: #EFE8E5;
  --porcelain: #F8F5F4;
  --cacao: #2E2421;

  /* Roles */
  --bg: var(--porcelain);
  --surface: #ffffff;
  --ink: var(--cacao);
  --ink-soft: #66574F;
  --line: #DDD2CD;
  --wa: #25D366;

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Jost", "Futura", system-ui, sans-serif;

  --header-h: 84px;
  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .45em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
p  { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 7vw, 92px) 0; }
.section--tint { background: var(--rose-tint); }

.section-intro { max-width: 560px; margin-bottom: 36px; }
.section-intro p { color: var(--ink-soft); font-size: 1.05rem; }
.section-intro--light p { color: rgba(255, 255, 255, .78); }
.center-link { text-align: center; margin: 48px 0 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }
.btn--primary { background: var(--caramel-deep); color: #fff; }
.btn--primary:hover { background: var(--cacao); }
.btn--outline { border-color: var(--caramel-deep); color: var(--caramel-deep); }
.btn--outline:hover { background: var(--caramel-deep); color: #fff; }
.btn--light { background: #fff; color: var(--cacao); }
.btn--light:hover { background: var(--rose); }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--cacao); }

.link-quiet {
  font-weight: 500;
  color: var(--caramel-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-quiet:hover { color: var(--cacao); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248, 245, 244, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  font-size: .95rem;
  color: var(--ink);
  transition: color .2s;
}
.nav__link:hover { color: var(--caramel-deep); }
.nav__link.is-active { color: var(--caramel-deep); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
}
.nav__caret { width: 10px; height: 10px; transition: transform .2s; }

.has-submenu { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--surface);
  border-top: 2px solid var(--caramel);
  box-shadow: 0 18px 40px rgba(46, 36, 33, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.submenu a { display: block; padding: 10px 20px; font-size: .95rem; }
.submenu a:hover { background: var(--rose-tint); color: var(--caramel-deep); }
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-submenu:hover .nav__caret,
.has-submenu.is-open .nav__caret { transform: rotate(180deg); }

.header-cta { margin-left: 10px; padding: 11px 20px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span { display: block; height: 1.5px; margin: 6px 0; background: var(--cacao); transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Placeholder de fotos (temporal) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--rose-tint);
  color: var(--taupe);
  font-size: .9rem;
  overflow: hidden;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Línea pequeña sobre el titular y fila de áreas (igual que la línea del logo) */
.hero__kicker { font-size: 1rem; color: var(--caramel-deep); margin-bottom: 18px; }
.disciplines { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; color: var(--taupe); font-size: .95rem; }
.disciplines li + li::before { content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 14px; vertical-align: -1px; background: var(--rose); }

/* ---------- Portada: imagen a todo el ancho ---------- */
.cover {
  position: relative;
  min-height: clamp(520px, 82vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cacao);
  color: #fff;
}
.cover__media { position: absolute; inset: 0; }
.cover__media img,
.cover__media video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
/* Degradado para que el texto se lea sobre cualquier foto */
.cover__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(46, 36, 33, .85) 0%, rgba(46, 36, 33, .6) 38%, rgba(46, 36, 33, 0) 72%);
}
.cover__content { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.cover__kicker { font-family: var(--font-body); font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--rose); margin: 0 0 18px; }
.cover__title { font-family: var(--font-display); font-size: clamp(2.9rem, 6.6vw, 5.6rem); line-height: 1.08; letter-spacing: -0.01em; color: #fff; max-width: 9ch; margin: 0 0 26px; }
.cover__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .86); max-width: 42ch; }
.cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; }
.link-light { color: #fff; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .6); padding-bottom: 2px; }
.link-light:hover { border-color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .cover__media img { animation: kenburns 9s ease-out both; }
  .cover__content > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .cover__content > :nth-child(2) { animation-delay: .15s; }
  .cover__content > :nth-child(3) { animation-delay: .3s; }
  .cover__content > :nth-child(4) { animation-delay: .45s; }
}
@keyframes kenburns { from { transform: scale(1.18) translateX(2%); } to { transform: none; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* ---------- La doctora (resumen en el Inicio) ---------- */
.intro-dra { padding: clamp(56px, 7vw, 92px) 0; }
.intro-dra__grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro-dra__photo { position: relative; aspect-ratio: 4 / 5; }
.intro-dra__photo::before { content: ""; position: absolute; inset: -6% 8% 6% -6%; background: var(--rose-tint); }
.intro-dra__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.intro-dra__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 50ch; }
.facts { margin: 30px 0 34px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); font-size: .92rem; }
.facts dd { margin: 0; }

/* ---------- Servicios en cuadros ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tile {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: var(--cacao);
  color: #fff;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 36, 33, 0) 35%, rgba(46, 36, 33, .82) 100%);
  transition: background-color .3s;
}
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; }
.tile__name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
.tile__desc { font-size: .93rem; color: rgba(255, 255, 255, .82); }
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { background-color: rgba(126, 82, 41, .25); }

/* ---------- Novedades: carrete ---------- */
.reel__stage { position: relative; aspect-ratio: 16 / 7.5; overflow: hidden; background: var(--cacao); }
.reel__item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.reel__item.is-active { opacity: 1; visibility: visible; }
.reel__item img { width: 100%; height: 100%; object-fit: cover; }
.reel__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(46, 36, 33, .88) 0%, rgba(46, 36, 33, .2) 55%, rgba(46, 36, 33, 0) 100%); }
.reel__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(24px, 4vw, 48px); color: #fff; max-width: 720px; }
.reel__caption h3 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 8px; }
.reel__caption p { margin: 0; color: rgba(255, 255, 255, .85); }
.reel__caption .reel__meta { display: flex; gap: 12px; margin-bottom: 10px; font-size: .93rem; }
.reel__meta span { color: var(--rose); }
@media (prefers-reduced-motion: no-preference) {
  .reel__item.is-active img { animation: reel-drift 7s ease-out both; }
}
@keyframes reel-drift { from { transform: scale(1.08); } to { transform: none; } }

/* Miniaturas como tira de película, con barra de progreso en la activa */
.reel__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.reel__thumb {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.reel__thumb img { width: 64px; height: 48px; object-fit: cover; opacity: .6; transition: opacity .3s; }
.reel__thumb span { font-size: .9rem; line-height: 1.3; color: var(--ink-soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.reel__thumb::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--caramel); }
.reel__thumb:hover img,
.reel__thumb.is-active img { opacity: 1; }
.reel__thumb.is-active span { color: var(--ink); }
.reel__thumb.is-active::after { width: 100%; }
.reel.is-playing .reel__thumb.is-active::after { animation: progress var(--reel-time, 6s) linear both; }
@keyframes progress { from { width: 0; } to { width: 100%; } }

/* ---------- Banda sobre la doctora (topo) ---------- */
.about-band { background: var(--taupe); color: #fff; padding: clamp(56px, 7vw, 92px) 0; }
.about-band h2 { color: #fff; }
.about-band__grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-band__photo { aspect-ratio: 4 / 5; overflow: hidden; }
.about-band__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.about-band__mono { width: 92px; height: auto; margin-bottom: 26px; opacity: .9; }
.about-band__text > p { color: rgba(255, 255, 255, .86); max-width: 52ch; }
.creds { margin: 30px 0 38px; border-top: 1px solid rgba(255, 255, 255, .25); }
.creds div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.creds dt { color: rgba(255, 255, 255, .7); font-size: .92rem; }
.creds dd { margin: 0; }

/* ---------- Banda final ---------- */
.cta-band { background: var(--rose); color: var(--cacao); text-align: center; padding: clamp(52px, 7vw, 84px) 0; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 46ch; margin: 0 auto 30px; color: #4A3C37; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 4.5vw, 56px); text-align: center; }
.page-hero p { max-width: 54ch; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; }
.page-hero--left { text-align: left; }
.page-hero--left p { margin: 0; }

/* ---------- Página Dra.: perfil ---------- */
.profile { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 92px); }
.profile__grid { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.profile__photo { position: relative; aspect-ratio: 3 / 4; }
.profile__photo::before {
  content: "";
  position: absolute;
  inset: 8% -8% -8% 8%;
  background: var(--rose);
}
.profile__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.profile h1 { font-size: clamp(2.8rem, 6vw, 5rem); max-width: 10ch; }
.profile__lead { font-size: 1.15rem; }
.profile__text > p { max-width: 54ch; color: var(--ink-soft); }
.profile .disciplines { margin: 28px 0 36px; }

/* Formación: sí es una secuencia, por eso lleva años */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 200px minmax(0, 1fr) 96px; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.timeline__year { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--caramel); line-height: 1; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
/* Foto pequeña de cada etapa */
.timeline__photo { width: 96px; aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 0 10px 24px rgba(46, 36, 33, .14); transform: rotate(2deg); transition: transform .3s; }
.timeline li:nth-child(even) .timeline__photo { transform: rotate(-2deg); }
.timeline__photo:hover { transform: rotate(0) scale(1.04); }
.timeline__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }


.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.split-intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
/* Sociedades: un bloque de color de la marca por sociedad, con la sigla en grande */
.societies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.society { display: flex; flex-direction: column; background: var(--surface); }
.society__mark {
  display: flex;
  align-items: flex-end;
  min-height: 150px;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: .02em;
  color: #fff;
}
.society--caramel .society__mark { background: var(--caramel); }
.society--taupe .society__mark { background: var(--taupe); }
.society--cacao .society__mark { background: var(--cacao); }
.society--rose .society__mark { background: var(--rose); color: var(--cacao); }
.society__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.society__body h3 { font-size: 1.2rem; margin: 0; }
.society__body p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* Trabajos presentados: cifras del CV + fichas por trabajo */
.pubs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 36px; }
.pubs-head .section-intro { margin-bottom: 0; }
.pubs-stats { display: flex; gap: 40px; margin: 0; }
.pubs-stats div { display: flex; flex-direction: column-reverse; }
.pubs-stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; color: var(--caramel); }
.pubs-stats dt { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }

.pubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pub { display: flex; flex-direction: column; gap: 14px; padding: 28px 30px; background: var(--surface); border-top: 2px solid var(--caramel); }
.pub h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0; flex: 1; }
.pub__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pub__tags span { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--rose-tint); color: var(--caramel-deep); }
.pub__event { display: flex; align-items: baseline; gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .93rem; }
.pub__event span { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }

.about-band--plain { background: var(--taupe); }
.events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.events li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.events span { display: inline-block; min-width: 64px; color: rgba(255, 255, 255, .7); }

/* ---------- Página Servicios ---------- */
.service-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-nav ul {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  scrollbar-width: none;
}
.service-nav a {
  display: block;
  white-space: nowrap;
  padding: 16px 0 14px;
  font-size: .95rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.service-nav a:hover { color: var(--ink); }
.service-nav a.is-active { color: var(--caramel-deep); border-color: var(--caramel); }

.service { padding: clamp(52px, 6.5vw, 84px) 0; }
.service--tint { background: var(--rose-tint); }
.service--dark { background: var(--cacao); color: #fff; }
.service--dark h2 { color: #fff; }
.service--dark p { color: rgba(255, 255, 255, .78); }
.service__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.service__grid--reverse .service__media { order: 2; }
.service__media { aspect-ratio: 5 / 4; width: 100%; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__text > p { max-width: 52ch; }
.service--dark .service__tag { color: var(--rose); margin-bottom: 10px; }

.treatments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  list-style: none;
  margin: 28px 0 38px;
  padding: 0;
}
.treatments li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.service--dark .treatments li { border-color: rgba(255, 255, 255, .16); }

/* ---------- Página Casos ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.case { background: var(--surface); }
.case[hidden] { display: none; }

/* Antes y después lado a lado: las fotos no siempre tienen el mismo encuadre */
.case__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--surface); }
.case__pair figure { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--rose-tint); }
.case__pair img { width: 100%; height: 100%; object-fit: cover; }
.case__pair figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 12px;
  font-size: .82rem;
  color: #fff;
  background: rgba(46, 36, 33, .72);
}
.case__pair figure + figure figcaption { background: var(--caramel-deep); }

.case__body { padding: 20px 24px 24px; }
.case__tag { margin: 0 0 6px; font-size: .85rem; color: var(--caramel-deep); }
.case__body h3 { font-size: 1.4rem; margin-bottom: 6px; }
.case__body p:last-child { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.note { text-align: center; font-size: .9rem; color: var(--ink-soft); margin-top: 40px; }

/* ---------- Página Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.info-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rose);
  color: var(--caramel-deep);
}
.info-item__icon svg { width: 20px; height: 20px; fill: currentColor; }
.info-item h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 500; margin: 0 0 4px; }
.info-item p { margin: 0; color: var(--ink-soft); }
.info-item a { color: var(--caramel-deep); }
.map { min-height: 440px; overflow: hidden; }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cacao); color: rgba(255, 255, 255, .72); padding: 72px 0 0; font-size: .95rem; }
.footer-logo { width: 180px; height: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: #fff; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; text-align: center; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .2s, border-color .2s;
}
.social a:hover { background: var(--caramel); border-color: var(--caramel); }
.social svg { width: 17px; height: 17px; fill: #fff; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .logo img { height: 38px; }
  .nav__link { padding: 10px 9px; }
  .nav__link.is-active::after { left: 9px; right: 9px; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 32px;
    background: var(--bg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-open .nav { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; padding: 16px 0; font-family: var(--font-display); font-size: 1.6rem; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .nav__link.is-active::after { display: none; }
  .submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 6px 0 12px;
    border: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .submenu a { padding: 10px 0; font-size: 1rem; }
  .has-submenu:hover .submenu { display: none; }
  .has-submenu.is-open .submenu { display: block; }
  .header-cta { margin: 28px 0 0; }

  .intro-dra__grid,
  .about-band__grid,
  .profile__grid,
  .split-intro,
  .service__grid,
  .contact-grid { grid-template-columns: 1fr; }
  .service__grid--reverse .service__media { order: 0; }
  .service__media,
  .about-band__photo { aspect-ratio: 4 / 3; }
  .profile__photo { max-width: 420px; margin-right: 8%; }

  .tiles { grid-template-columns: 1fr 1fr; }
  .societies { grid-template-columns: 1fr 1fr; }
  .pubs { grid-template-columns: 1fr; }
  .service__media { aspect-ratio: 4 / 3; max-height: none; }
  .reel__stage { aspect-ratio: 4 / 3; }
  .reel__thumb { grid-template-columns: 1fr; padding: 0; }
  .reel__thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .reel__thumb span { display: none; }
  .intro-dra__photo { max-width: 440px; }
  .timeline li { grid-template-columns: minmax(0, 1fr) 84px; gap: 8px 20px; }
  .timeline__year { grid-column: 1; }
  .timeline__body { grid-column: 1; }
  .timeline__photo { grid-column: 2; grid-row: 1 / span 2; width: 84px; }
  .events { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .society__mark { min-height: 110px; }
  .pubs-stats { gap: 24px; }
  .pub { padding: 22px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .cover { min-height: 560px; align-items: flex-end; }
  .cover__media::after { background: linear-gradient(0deg, rgba(46, 36, 33, .9) 0%, rgba(46, 36, 33, .55) 60%, rgba(46, 36, 33, .25) 100%); }
  .logo img { height: 34px; }
  body { font-size: 16px; }
  .treatments { grid-template-columns: 1fr; }
  .creds div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .disciplines { font-size: .86rem; }
  .disciplines li + li::before { margin: 0 9px; }
  .wa-float { right: 16px; bottom: 16px; }
}
