/* Jost (SIL Open Font License, ver fonts/OFL.txt): fuente variable, cubre los pesos 300-500 */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/jost-latin.woff2') format('woff2');
}

:root {
  --cream: #fbf9f7;
  --sand: #f4f1eb;
  --rose: #c7b5b3;
  --rose-light: #ddd3d1;
  --accent: #0f5e63;
  --accent-dark: #0c4c50;
  --slate: #546378;
  --ink: #323b48;
  --muted: #6f6d69;
  --header-h: 76px;
  --font: 'Jost', system-ui, sans-serif;
}

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

html { scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2rem); line-height: 1.25; }
h3 { font-size: 1.25rem; line-height: 1.4; }
p { margin: 0 0 1em; line-height: 1.6; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1280px) { .container { padding: 0 66px; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px 8px;
  border-radius: 32px;
  background: var(--accent);
  color: var(--cream);
  font-weight: 400;
  text-decoration: none;
  transition: background .2s;
}
.btn::after { content: '»'; }
.btn:hover { background: var(--accent-dark); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: var(--accent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1;
}
.logo img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.logo .logo-title { width: auto; height: 36px; border-radius: 0; background: none; }
@media (max-width: 767px) { .logo .logo-title { height: 28px; } }

.menu { display: flex; gap: 24px; }
.menu a { color: #fff; text-decoration: none; font-weight: 400; }
.menu a:hover { color: var(--rose-light); }

.menu-toggle { display: none; }

@media (max-width: 1023px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle span { width: 24px; height: 2px; background: #fff; }
  .menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--accent);
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--header-h);
  background: var(--cream);
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 66px 64px;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.25;
  text-transform: uppercase;
}
.hero-role { display: block; margin-top: 24px; font-size: 1.25rem; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--slate); }
.hero-lead { max-width: 460px; margin-top: auto; font-size: 1.125rem; color: var(--muted); }
.hero-photo { position: relative; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 48px 20px; gap: 16px; }
  .hero-lead { margin-top: 16px; }
  .hero-photo img { position: static; aspect-ratio: 1; height: auto; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .hero-text { padding: 64px 40px; }
}

/* Band */
.band { padding: 64px 0; background: var(--slate); color: #fff; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.band-title { margin-bottom: 4px; font-size: 1.75rem; font-weight: 500; }
.band p:last-child:not(.band-title) { margin: 0; font-weight: 400; }
@media (max-width: 1023px) { .band-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 64px 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 1023px) { .split { grid-template-columns: 1fr; } .split .lined { margin-top: 24px; } }

.lined {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 24px;
  margin-top: 64px;
  color: var(--muted);
}
.lined::before {
  content: '';
  grid-row: 1 / span 10;
  height: 1px;
  margin-top: .8em;
  background: var(--accent);
}
.lined > * { grid-column: 2; }
@media (max-width: 767px) {
  .lined { grid-template-columns: 40px 1fr; column-gap: 16px; margin-top: 24px; }
}

.card { padding: 40px 24px; border-radius: 8px; background: var(--cream); }
.card p { color: var(--muted); }
.card h2, .card h3 { margin-bottom: 16px; }

/* Services */
.services-intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: stretch; }
.services-intro img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.services-intro .card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.services .card { background: var(--sand); }
.services .card p { margin: 0; }
@media (max-width: 1023px) { .services { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .services-intro { grid-template-columns: 1fr; }
  .services-intro img { aspect-ratio: 4 / 3; }
}

/* Testimonials */
#sobre-mi, #testimonios { background: var(--rose-light); --muted: #4f4d4a; }

.widget { margin-top: 32px; }
/* Hueco fijo para el widget de Doctoralia (carga diferida): evita saltos al navegar a #contacto */
#testimonios .widget { min-height: 340px; }
#testimonios .widget iframe { height: 340px !important; }

/* Footer */
.site-footer { padding: 32px 0; background: var(--slate); color: #fff; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) {
  .footer-contact { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
}
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-weight: 400; text-decoration: none; }
.footer-contact svg { flex-shrink: 0; }
.footer-contact a:hover { color: var(--rose-light); text-decoration: underline; }
/* Oculto a la vista pero presente para lectores de pantalla y buscadores */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Barra inferior de reserva */
.booking-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 400;
}
@media (max-width: 767px) {
  .booking-bar span { flex-basis: 100%; text-align: center; }
}

/* Página 404 */
.not-found { min-height: 100vh; padding-top: calc(var(--header-h) + 64px); }
.not-found h1 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3rem); }
.not-found p { margin-bottom: 32px; }

/* Enlaces legales, tras Contacto */
.legal-links { padding: 16px 0; background: var(--ink); font-size: .875rem; }
.legal-links .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; }
.legal-links a { color: var(--rose-light); text-decoration: none; }
.legal-links a:hover { color: #fff; text-decoration: underline; }

/* Páginas legales */
.legal-page { padding-top: calc(var(--header-h) + 48px); }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-page h2 { margin: 40px 0 12px; font-size: 1.375rem; font-weight: 400; }
.legal-page li { margin-bottom: 8px; line-height: 1.6; }
.legal-page a:not(.btn) { color: var(--accent); }
.legal-updated { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.legal-back { margin-top: 48px; }

/* Contenido: Instagram y vídeos, siempre en vertical */
.content-list { display: grid; gap: 48px; max-width: 760px; margin-top: 40px; }
.content-item h3 { margin-bottom: 8px; font-size: 1.5rem; font-weight: 400; }
.social-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px 24px; border: 1px solid var(--accent); border-radius: 8px; color: var(--ink); font-weight: 400; text-decoration: none; }
.social-card svg { color: var(--accent); }
.social-card-cta { margin-left: auto; color: var(--accent); }
.social-card:hover { background: var(--cream); }
.yt-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; overflow: hidden; background: #000; }
.yt-note { max-width: 760px; margin: 32px 0 0; color: var(--muted); font-size: .875rem; }
#contenido .container { text-align: center; }
#contenido .content-list, #contenido .yt-note { margin-inline: auto; }
#contenido .social-card { justify-content: center; }
#contenido .social-card-cta { margin-left: 0; }
