/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --ink: #1a1209;
  --bark: #2d1f0e;
  --earth: #6b4a28;
  --sand: #c4a882;
  --cream: #f5f0e8;
  --mist: #ede8df;
  --sage: #5c7a5c;
  --sage-light: #8aad8a;
  --teal: #2c5f5f;
  --gold: #c9a84c;
  --gold-light: #e8d5a0;
  --white: #fdfcf9;
  --r: .4s cubic-bezier(.16,1,.3,1);
}

body {
  font-family: 'Syne', sans-serif;
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .1s, width .3s var(--r), height .3s var(--r), background .3s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .15s, width .4s var(--r), height .4s var(--r), opacity .3s;
}

body:hover .cursor { opacity: 1; }
a:hover ~ .cursor, button:hover ~ .cursor { width: 20px; height: 20px; }

/* ── LOADING SCREEN ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-text {
  font-family: 'Cormorant', serif;
  font-size: 48px;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.3s forwards;
}

.loader-bar-wrap {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.loader-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  animation: loadBar 1.8s ease forwards;
}

@keyframes loadBar { to { width: 100%; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 500;
  padding: 24px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 16px 56px;
  background: rgba(26,18,9,0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-name {
  font-family: 'Cormorant', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.nav-sub {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--r);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 10px 24px !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

.nav-cta::after { display: none !important; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  /* En iPhone, 100vh mide como si la barra del navegador no estuviera,
     asi que el bloque queda mas alto que lo visible y el final del
     contenido cae bajo el pliegue. dvh mide lo que de verdad se ve.
     Safari lo entiende desde la 15.4; el que no, se queda con la vh de
     arriba y se comporta como hasta ahora. */
  height: 100dvh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.08);
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,18,9,0.85) 0%,
    rgba(26,18,9,0.4) 50%,
    rgba(26,18,9,0.2) 100%
  );
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--ink), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 56px 80px;
  max-width: 800px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  opacity: 0;
  animation: slideUp 0.8s ease 2s forwards;
}

.eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.eyebrow-text {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.hero-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 32px;
  opacity: 0;
  animation: slideUp 0.9s ease 2.2s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
  display: block;
}

.hero-title .word-island {
  position: relative;
  display: inline-block;
}

.hero-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245,240,232,0.7);
  font-weight: 400;
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0;
  animation: slideUp 0.9s ease 2.4s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: slideUp 0.9s ease 2.6s forwards;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  padding: 16px 36px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s var(--r);
}

.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline-w {
  border: 1px solid rgba(245,240,232,0.3);
  color: var(--cream);
  padding: 16px 36px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s var(--r);
  background: transparent;
}

.btn-outline-w:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-credentials {
  position: absolute;
  right: 56px;
  bottom: 80px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  animation: slideLeft 0.9s ease 2.8s forwards;
}

.cred-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cred-name {
  font-family: 'Cormorant', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  text-align: right;
}

.cred-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 3.2s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.7); }
}

.scroll-text {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  transform: rotate(90deg);
  margin-top: 8px;
}

/* ── MARQUEE ── */
.marquee-section {
  background: var(--gold);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.4;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--r), transform 0.9s var(--r);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── ABOUT SECTION ── */
.about-section {
  background: var(--cream);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.about-img-wrap {
  position: relative;
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.about-img-wrap:hover .about-img { transform: scale(1); }

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(245,240,232,0.1), transparent);
}

.about-content {
  padding: 100px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-tag {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--earth);
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--earth);
}

.about-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 32px;
}

.about-title em {
  font-style: italic;
  color: var(--earth);
}

.about-quote {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: var(--teal);
  line-height: 1.6;
  border-left: 2px solid var(--sage-light);
  padding-left: 24px;
  margin: 32px 0;
}

.about-body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(26,18,9,0.65);
  font-weight: 400;
  margin-bottom: 40px;
}

.credentials-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(26,18,9,0.1);
}

.cred-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(26,18,9,0.08);
  transition: background 0.2s;
}

.cred-row:hover { background: rgba(26,18,9,0.02); }

.cred-number {
  font-family: 'Cormorant', serif;
  font-size: 13px;
  color: var(--sand);
  font-weight: 400;
  flex-shrink: 0;
  margin-top: 2px;
}

.cred-info {}

.cred-institution {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.cred-role {
  font-size: 12px;
  color: var(--earth);
  letter-spacing: 0.05em;
}

/* ── SERVICES ── */
.services-section {
  background: var(--bark);
  padding: 120px 56px;
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}

.services-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
}

.services-title em { font-style: italic; color: var(--gold-light); }

.services-sub {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(196,168,130,0.7);
  font-weight: 400;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(196,168,130,0.1);
}

.service-card {
  background: var(--bark);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--r);
  cursor: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 0;
  background: var(--gold);
  transition: height 0.5s var(--r);
}

.service-card:hover::before { height: 100%; }
.service-card:hover { background: rgba(45,31,14,0.8); }

.service-number {
  font-family: 'Cormorant', serif;
  font-size: 64px;
  font-weight: 300;
  color: rgba(196,168,130,0.08);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.4s;
}

.service-card:hover .service-number { color: rgba(201,168,76,0.15); }

.service-name {
  font-family: 'Cormorant', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-desc {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(196,168,130,0.6);
  font-weight: 400;
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s var(--r);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── PHOTO BREAK ── */
.photo-break {
  position: relative;
  height: 70vh;
  height: 70dvh;
  overflow: hidden;
}

.photo-break-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  transform: translateY(-10%);
  will-change: transform;
}

.photo-break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,18,9,0.6) 0%,
    rgba(26,18,9,0.2) 50%,
    rgba(26,18,9,0.7) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-break-text {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.photo-break-text em { color: var(--gold-light); }

/* ── WHY PR ── */
.why-section {
  background: var(--teal);
  padding: 120px 56px;
  position: relative;
  overflow: hidden;
}

.why-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--ink));
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.why-left {}

.why-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 32px;
}

.why-title em { font-style: italic; color: var(--gold-light); }

.why-body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(237,232,223,0.65);
  margin-bottom: 48px;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(237,232,223,0.1);
}

.why-card {
  background: rgba(44,95,95,0.6);
  padding: 32px 28px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}

.why-card:hover { background: rgba(44,95,95,0.9); }

.why-card-num {
  font-family: 'Cormorant', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.why-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.why-card-text {
  font-size: 12px;
  color: rgba(237,232,223,0.55);
  line-height: 1.6;
}

/* ── TEAM PHOTO ── */
.team-section {
  background: var(--ink);
  padding: 120px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.team-img-stack {
  position: relative;
  height: 600px;
}

.team-img-main {
  position: absolute;
  top: 0; left: 0;
  width: 80%;
  height: 85%;
  object-fit: cover;
  object-position: center 20%;
}

.team-img-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  height: 55%;
  object-fit: cover;
  object-position: center;
  border: 6px solid var(--ink);
}

.team-gold-line {
  position: absolute;
  top: -20px; left: -20px;
  width: 80px; height: 80px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.team-content {}

.team-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
}

.team-title em { font-style: italic; color: var(--gold-light); }

.team-body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(196,168,130,0.6);
  margin-bottom: 48px;
}

.team-members {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.member-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(196,168,130,0.1);
}

.member-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
  flex-shrink: 0;
}

.member-name {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 4px;
}

.member-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── PROCESS ── */
.process-section {
  background: var(--mist);
  color: var(--ink);
  padding: 120px 56px;
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
}

.process-title em { font-style: italic; color: var(--earth); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-line {
  position: absolute;
  top: 40px;
  left: 12.5%;
  width: 75%;
  height: 1px;
  background: linear-gradient(90deg, var(--sand), var(--earth), var(--teal), var(--bark));
  opacity: 0.3;
}

.step {
  padding: 0 32px;
  text-align: center;
  position: relative;
}

.step-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
  background: var(--mist);
  transition: all 0.4s var(--r);
  cursor: none;
}

.step-ring:hover {
  border-color: var(--earth);
  background: var(--earth);
}

.step-num {
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--earth);
  transition: color 0.4s;
}

.step-ring:hover .step-num { color: var(--cream); }

.step-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.step-desc {
  font-size: 13px;
  color: rgba(26,18,9,0.55);
  line-height: 1.65;
}

/* ── BOOKING ── */
.booking-section {
  background: var(--ink);
  padding: 120px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  position: relative;
}

.booking-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.booking-left {}

.booking-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 24px;
}

.booking-title em { font-style: italic; color: var(--gold-light); }

.booking-body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(196,168,130,0.6);
  margin-bottom: 48px;
}

.booking-price {
  display: inline-flex;
  flex-direction: column;
  background: var(--bark);
  padding: 28px 36px;
  border-left: 3px solid var(--gold);
  margin-bottom: 48px;
}

.price-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.price-amount {
  font-family: 'Cormorant', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
}

.price-note {
  font-size: 12px;
  color: rgba(196,168,130,0.5);
  margin-top: 6px;
}
/* Que el monto se abona al tratamiento es lo que convierte el precio
   de un gasto en un adelanto. Va mas marcado que la nota de al lado. */
/* Campo de archivos del portal de referidos. El input nativo se ve
   distinto en cada navegador, asi que se le da un marco propio para
   que no desentone con el resto del formulario. */
.form-file {
  width: 100%;
  font-size: 13px;
  color: rgba(196,168,130,0.8);
  padding: 12px;
  border: 1px dashed rgba(201,168,76,0.3);
  border-radius: 8px;
  background: rgba(201,168,76,0.04);
  cursor: pointer;
}
.form-file::file-selector-button {
  font-family: 'Syne', sans-serif;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--gold); color: var(--ink);
  border: none; border-radius: 4px;
  padding: 8px 14px; margin-right: 12px; cursor: pointer;
}
.form-ayuda {
  margin: 8px 0 0; font-size: 11.5px; line-height: 1.6;
  color: rgba(196,168,130,0.5);
}
.archivo-lista {
  list-style: none; margin: 10px 0 0; padding: 0;
  font-size: 12px; line-height: 1.8; color: rgba(196,168,130,0.75);
}
.archivo-lista li::before { content: '· '; color: var(--gold); }
.archivo-lista .archivo-malo { color: #d08c74; }

.pago-btn {
  display: block;
  margin-top: 16px;
  background: var(--gold);
  color: var(--ink);
  padding: 14px 20px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s ease, transform .2s ease;
}
.pago-btn:hover { background: var(--gold-light); transform: translateY(-2px); }

.price-aplica {
  font-size: 12.5px;
  color: var(--gold);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(201,168,76,0.18);
  letter-spacing: 0.01em;
}

.promises {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promise {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.promise-mark {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.promise-text {
  font-size: 14px;
  color: rgba(196,168,130,0.7);
  line-height: 1.5;
}

/* Las tres puertas del contacto: paciente, observacion, empleo.
   Quien escribe no siempre es un paciente, y antes solo habia
   una entrada. Mismo lenguaje de la seccion oscura. */
.puertas { margin-top: 40px; }
.puertas-tag {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; font-weight: 600;
}
.puerta {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 0; border-top: 1px solid rgba(201,168,76,0.18);
  text-decoration: none; color: inherit;
  transition: border-color .25s ease;
}
.puerta:last-child { border-bottom: 1px solid rgba(201,168,76,0.18); }
.puerta-n {
  font-family: 'Cormorant', serif; font-size: 14px; color: var(--gold);
  flex: 0 0 auto; padding-top: 1px; letter-spacing: 0.08em;
}
.puerta strong {
  display: block; font-size: 14px; color: var(--cream);
  font-weight: 600; margin-bottom: 4px; letter-spacing: 0.01em;
}
.puerta span {
  display: block; font-size: 12.5px; line-height: 1.65;
  color: rgba(196,168,130,0.62);
}
a.puerta:hover { border-top-color: rgba(201,168,76,0.45); }
a.puerta:hover strong { color: var(--gold); }
a.puerta:hover span { color: rgba(196,168,130,0.85); }

/* ── FORM ── */
.booking-form {
  background: rgba(45,31,14,0.5);
  padding: 48px;
  border: 1px solid rgba(196,168,130,0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.form-heading {
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

/* Paciente nuevo o existente. La oficina tria por el asunto del correo,
   asi que esta respuesta decide el titulo del mensaje que les llega. */
.tipo-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tipo-op {
  display: block; cursor: pointer; position: relative;
  border: 1px solid rgba(201,168,76,0.22); border-radius: 8px;
  padding: 13px 14px; transition: border-color .2s ease, background .2s ease;
}
.tipo-op:hover { border-color: rgba(201,168,76,0.5); }
.tipo-op input {
  /* Oculto a la vista pero no al lector de pantalla ni al teclado.
     width/height en 0 hace que algunos lectores lo salten; 1px no. */
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.tipo-op span { display: block; }
.tipo-op strong {
  display: block; font-size: 13.5px; color: var(--cream);
  font-weight: 600; margin-bottom: 2px;
}
.tipo-op em {
  display: block; font-style: normal; font-size: 11.5px;
  color: rgba(196,168,130,0.6); line-height: 1.45;
}
.tipo-op:has(input:checked) {
  border-color: var(--gold); background: rgba(201,168,76,0.08);
}
.tipo-op input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 4px; }
.tipo-aviso {
  display: none; margin: 12px 0 0; font-size: 12.5px; line-height: 1.65;
  color: rgba(196,168,130,0.72);
  border-left: 1px solid rgba(201,168,76,0.3); padding-left: 12px;
}
.tipo-aviso.visible { display: block; }
.tipo-aviso a { color: var(--gold); }
@media (max-width: 560px) {
  .tipo-ops { grid-template-columns: 1fr; }
}

.form-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 10px;
  font-weight: 600;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(26,18,9,0.5);
  border: 1px solid rgba(196,168,130,0.15);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(196,168,130,0.3);
}

.form-select option { background: var(--bark); color: var(--cream); }

.form-textarea { min-height: 100px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  padding: 18px;
  border: none;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: none;
  margin-top: 8px;
  transition: all 0.3s var(--r);
}

.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.form-fine {
  font-size: 11px;
  color: rgba(196,168,130,0.35);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Mensajes del formulario. No tenian estilo ninguno: salian como
   parrafo suelto dentro de un formulario oscuro, asi que la
   confirmacion de "recibido" podia no leerse. */
.form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cream);
  background: rgba(201,168,76,0.08);
  border-left: 2px solid var(--gold);
}
.form-status:empty { display: none; }
.form-status a { color: var(--gold); text-decoration: underline; }
.form-status--ok {
  background: rgba(122,142,110,0.14);
  border-left-color: var(--sage, #7a8e6e);
}
.form-status--err {
  background: rgba(176,96,72,0.14);
  border-left-color: #b06048;
}

/* ── LOCATION ── */
.location-section {
  background: var(--cream);
  color: var(--ink);
  padding: 100px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.location-title {
  font-family: 'Cormorant', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 48px;
  line-height: 1.2;
}

.loc-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.loc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--earth);
  margin-top: 5px;
  flex-shrink: 0;
}

.loc-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 6px;
  font-weight: 600;
}

.loc-value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

.location-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(196,168,130,0.1);
  padding: 72px 56px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(196,168,130,0.08);
}

.footer-brand-name {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 6px;
}

.footer-brand-sub {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-brand-desc {
  font-size: 13px;
  color: rgba(196,168,130,0.4);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h5 {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(196,168,130,0.3);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
  font-size: 13px;
  color: rgba(196,168,130,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 11px;
  color: rgba(196,168,130,0.25);
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 20px 32px; }
  nav.scrolled { padding: 14px 32px; }
  .nav-links { gap: 24px; }
  .hero-content { padding: 0 32px 80px; }
  .hero-credentials { right: 32px; }
  .about-section { grid-template-columns: 1fr; }
  .about-img-wrap { height: 60vh; height: 60dvh; }
  .services-header { grid-template-columns: 1fr; gap: 32px; }
  .why-grid { grid-template-columns: 1fr; gap: 56px; }
  .team-section { grid-template-columns: 1fr; padding: 80px 32px; }
  .team-img-stack { height: 400px; }
  .booking-section { grid-template-columns: 1fr; gap: 56px; padding: 80px 32px; }
  .location-section { grid-template-columns: 1fr; padding: 80px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  /* Safari de iOS hace zoom sobre la pagina en cuanto se enfoca un
     campo cuya letra mide menos de 16px, y despues el visitante tiene
     que volver a alejar con los dedos. Pasaba en los cuatro
     formularios, el de reservar consulta incluido. A 16px no hay
     zoom. En escritorio se quedan en 14, que es donde se diseno. */
  .form-input, .form-select, .form-textarea { font-size: 16px; }
  /* A 0.3em el subtitulo pide 331px y no cabe en un telefono: se
     partia dejando "Rico" solo en la segunda linea. Ojo con medirlo
     sin desplazar la pagina: al bajar, nav pasa a .scrolled y su
     relleno lateral sube de 24 a 32px, asi que el hueco util cae de
     302 a 286px en una pantalla de 390. A 0.2em el texto pedia 293px
     y seguia partiendo en Safari justo despues del primer scroll.
     A 0.15em pide unos 276 y entra con holgura; el espacio duro de
     build.py mantiene "Puerto Rico" junto en los mas estrechos. */
  .nav-sub { letter-spacing: 0.12em; }
  .hero-content { padding: 0 24px 100px; }
  .hero-credentials { display: none; }
  .about-content { padding: 64px 32px; }
  .services-section { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-section { padding: 80px 24px; }
  .why-cards { grid-template-columns: 1fr; }
  .process-section { padding: 80px 24px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-line { display: none; }
  .booking-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ══════════════════════════════════════════════════════════════
   AMPLIACION: paginas interiores, menu movil, blog, tratamientos,
   resenas, empleo y tienda. Mismo lenguaje visual que la home.
   ══════════════════════════════════════════════════════════════ */

/* ── MENU MOVIL ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: none;
  z-index: 1002;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--cream);
  margin: 6px 0;
  transition: transform var(--r), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── IDIOMA ── */
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.lang-switch a { color: rgba(245,240,232,0.45); text-decoration: none; transition: color .3s; }
.lang-switch a:hover { color: var(--gold); }
.lang-switch a[aria-current="true"] { color: var(--gold); font-weight: 700; }
.lang-switch .sep { color: rgba(245,240,232,0.2); }

/* ── CABECERA DE PAGINA INTERIOR ── */
.page-head {
  padding: 180px 64px 80px;
  background: var(--ink);
  border-bottom: 1px solid rgba(196,168,130,0.1);
}
.page-head-inner { max-width: 900px; }
.page-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 24px;
}
.page-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.page-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 300; line-height: 1.05; color: var(--cream);
  letter-spacing: -0.02em;
}
.page-title em { font-style: italic; color: var(--gold-light); }
.page-lede {
  margin-top: 28px; max-width: 620px;
  font-size: 16px; line-height: 1.8; color: rgba(245,240,232,0.6);
}

/* ── MIGAS ── */
.crumbs { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 28px; }
.crumbs a { color: rgba(245,240,232,0.4); text-decoration: none; transition: color .3s; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: rgba(245,240,232,0.25); margin: 0 8px; }

/* ── CUERPO DE TEXTO LARGO ── */
.prose-wrap { padding: 80px 64px 100px; background: var(--cream); color: var(--ink); }
.prose { max-width: 720px; margin: 0 auto; }
.prose > * + * { margin-top: 24px; }
.prose h2 {
  font-family: 'Cormorant', serif; font-size: 34px; font-weight: 400;
  line-height: 1.2; margin-top: 64px; color: var(--bark);
}
.prose h3 {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--earth); margin-top: 44px;
}
.prose p  { font-size: 16px; line-height: 1.85; color: rgba(26,18,9,0.78); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { font-size: 16px; line-height: 1.85; color: rgba(26,18,9,0.78); margin-top: 10px; }
.prose li::marker { color: var(--sand); }
.prose strong { color: var(--bark); font-weight: 700; }
.prose a { color: var(--earth); text-underline-offset: 3px; }
.prose blockquote {
  border-left: 2px solid var(--sand); padding-left: 24px; margin-top: 40px;
  font-family: 'Cormorant', serif; font-size: 24px; font-style: italic;
  line-height: 1.5; color: var(--earth);
}
.prose-note {
  margin-top: 48px; padding: 24px 28px;
  background: rgba(107,74,40,0.06); border-left: 2px solid var(--sand);
  font-size: 14px; line-height: 1.75; color: rgba(26,18,9,0.7);
}

/* ── FICHA DE DATOS (tratamientos) ── */
.factbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr));
  gap: 1px; background: rgba(196,168,130,0.18);
  border: 1px solid rgba(196,168,130,0.18); margin-top: 48px;
}
.fact { background: var(--cream); padding: 24px 22px; }
.fact-label {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--earth); font-weight: 700; margin-bottom: 10px;
}
.fact-value { font-family: 'Cormorant', serif; font-size: 21px; line-height: 1.3; color: var(--bark); }

/* ── ACORDEON DE PREGUNTAS ── */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(196,168,130,0.25); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: none;
  padding: 26px 40px 26px 0; position: relative;
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 600;
  color: var(--bark); line-height: 1.45;
}
.faq-q::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 300; color: var(--sand); transition: transform var(--r);
}
.faq-item.open .faq-q::after { content: '–'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--r); }
.faq-a-inner { padding: 0 40px 28px 0; font-size: 15px; line-height: 1.8; color: rgba(26,18,9,0.72); }

/* ── REJILLA DE TARJETAS (tratamientos, blog, productos) ── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 1px; background: rgba(196,168,130,0.12);
}
.card {
  background: var(--ink); padding: 44px 36px; text-decoration: none;
  display: flex; flex-direction: column; transition: background var(--r);
}
.card:hover { background: rgba(107,74,40,0.18); }
.card-kicker {
  font-size: 9px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 18px;
}
.card-title {
  font-family: 'Cormorant', serif; font-size: 27px; font-weight: 400;
  line-height: 1.25; color: var(--cream); margin-bottom: 14px;
}
.card-text { font-size: 14px; line-height: 1.75; color: rgba(245,240,232,0.55); flex: 1; }
.card-more {
  margin-top: 26px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.card-meta { font-size: 11px; letter-spacing: .1em; color: rgba(245,240,232,0.35); margin-bottom: 14px; }

/* ── SECCIONES GENERICAS ── */
.section-pad { padding: 100px 64px; }
.section-ink { background: var(--ink); color: var(--cream); }
.section-cream { background: var(--cream); color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 {
  font-family: 'Cormorant', serif; font-size: clamp(30px,4.2vw,46px);
  font-weight: 300; line-height: 1.15;
}
.section-head h2 em { font-style: italic; color: var(--gold-light); }
.section-cream .section-head h2 em { color: var(--earth); }
.section-head p { margin-top: 20px; font-size: 15px; line-height: 1.8; opacity: .62; }

/* ── RESENAS ── */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 24px;
}
.review {
  background: rgba(45,31,14,0.45); border: 1px solid rgba(196,168,130,0.12);
  padding: 32px 30px; display: flex; flex-direction: column;
}
.review-stars { color: var(--gold); letter-spacing: 3px; font-size: 13px; margin-bottom: 16px; }
.review-text {
  font-family: 'Cormorant', serif; font-size: 18px; font-style: italic;
  line-height: 1.6; color: rgba(245,240,232,0.85); flex: 1;
}
.review-author { margin-top: 22px; font-size: 12px; letter-spacing: .1em; color: var(--sand); }
.review-date { font-size: 10px; color: rgba(245,240,232,0.3); margin-top: 4px; }
.reviews-foot {
  margin-top: 36px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: rgba(245,240,232,0.45);
}
.reviews-empty {
  padding: 48px; text-align: center; border: 1px dashed rgba(196,168,130,0.3);
  font-size: 14px; color: rgba(245,240,232,0.45); line-height: 1.8;
}

/* ── PRODUCTOS ── */
.product { background: var(--ink); border: 1px solid rgba(196,168,130,0.12); padding: 32px 28px; }
.product-name { font-family: 'Cormorant', serif; font-size: 23px; color: var(--cream); margin-bottom: 10px; }
.product-desc { font-size: 13px; line-height: 1.7; color: rgba(245,240,232,0.5); min-height: 66px; }
.product-price {
  margin-top: 18px; font-family: 'Cormorant', serif; font-size: 27px; color: var(--gold);
}

/* ── FORMULARIOS REUTILIZABLES (empleo, shadowing) ── */
.form-panel {
  background: rgba(45,31,14,0.5); padding: 48px;
  border: 1px solid rgba(196,168,130,0.1); max-width: 720px;
}
.form-panel .form-label { color: var(--sand); }
.form-note { font-size: 12px; line-height: 1.7; color: rgba(245,240,232,0.4); margin-top: 18px; }

/* ── CINTA DE LLAMADA A LA ACCION ── */
.cta-band {
  padding: 90px 64px; background: var(--bark); text-align: center;
  border-top: 1px solid rgba(196,168,130,0.12);
}
.cta-band h2 {
  font-family: 'Cormorant', serif; font-size: clamp(30px,4.5vw,46px);
  font-weight: 300; color: var(--cream); line-height: 1.15;
}
.cta-band h2 em { font-style: italic; color: var(--gold-light); }
.cta-band p { margin: 20px auto 34px; max-width: 520px; font-size: 15px; line-height: 1.8; color: rgba(245,240,232,0.55); }

/* ── RESPONSIVE DE LO NUEVO ── */
@media (max-width: 1024px) {
  .page-head { padding: 150px 40px 64px; }
  .prose-wrap { padding: 64px 40px 80px; }
  .section-pad, .cta-band { padding: 80px 40px; }
}
/* El menu compacto no es solo del telefono: llega hasta 1199px.
   Los enlaces en linea piden 653px fijos y la marca necesita 331, asi
   que por debajo de 1200 no caben los dos. A 769 se partia en dos
   lineas el nombre del doctor y en tres el subtitulo, con el bloque a
   75px de alto; entre 1101 y 1198 se partia el subtitulo. Desde 1200
   cabe todo y los enlaces vuelven a la barra. */
@media (max-width: 1199px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: flex; position: fixed; inset: 0;
    background: var(--ink); flex-direction: column; justify-content: center;
    gap: 28px; padding: 40px; z-index: 1001;
    transform: translateX(100%); transition: transform var(--r), visibility var(--r);
    /* visibility evita que los enlaces cerrados sean enfocables con el teclado */
    visibility: hidden;
  }
  .nav-links.open { transform: translateX(0); visibility: visible; }
  /* Ver el comentario en site.js: sin esto el panel se mide contra el nav
     en vez de contra la pantalla y los primeros enlaces quedan fuera. */
  nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links a { font-size: 15px; }
}

@media (max-width: 768px) {
  .page-head { padding: 120px 24px 52px; }
  .prose-wrap { padding: 52px 24px 64px; }
  .section-pad, .cta-band { padding: 64px 24px; }
  .form-panel { padding: 32px 24px; }
  .card { padding: 34px 26px; }
}

/* ── MOVIMIENTO REDUCIDO ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* El texto del boton de la nav no debe romperse dentro de su borde */
.nav-cta { white-space: nowrap; }

/* Las tarjetas de servicio son enlaces: neutralizar el color azul y el
   subrayado que el navegador aplica por defecto a <a>. */
a.service-card { color: inherit; text-decoration: none; }

/* Retrato circular de cada doctor, en lugar del punto dorado */
.member-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.35);
}
.member-row--photo { align-items: center; }

/* Enlaces dentro de la banda "También Disponible": sin estilo de enlace */
.band-link { color: inherit; text-decoration: none; }
.band-link:hover { color: var(--gold); }

/* El panel del menu movil se aparca fuera de pantalla con translateX(100%).
   Eso extiende el area desplazable del documento aunque body la recorte:
   a 320px el scrollWidth salia 326. No se puede arrastrar la pagina, pero
   las herramientas de auditoria lo marcan como "contenido mas ancho que la
   pantalla". overflow-x: clip lo recorta en html sin crear un contenedor de
   scroll (a diferencia de hidden, que romperia position: sticky). */
html { overflow-x: clip; }

/* Ilustraciones de procedimiento. Diagramas SVG dibujados a mano: pesan
   unos pocos kB y se ven nitidos en cualquier pantalla. */
.ilustracion { margin: 56px 0; }
.ilu-titulo {
  font-family: 'Cormorant', serif; font-size: 26px; font-weight: 400;
  color: var(--bark); margin: 0 0 28px; line-height: 1.25;
}
.ilu-pasos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.ilu-paso { margin: 0; }
.ilu-marco {
  border: 1px solid rgba(107,74,40,0.18); border-radius: 8px;
  overflow: hidden; background: var(--cream);
}
.ilu-svg { display: block; width: 100%; height: auto; }
.ilu-paso figcaption {
  margin-top: 12px; font-size: 12.5px; line-height: 1.6;
  color: rgba(26,18,9,0.72);
}
.ilu-paso figcaption strong { color: var(--bark); font-weight: 600; }
.ilu-n {
  display: inline-block; width: 18px; height: 18px; line-height: 18px;
  text-align: center; border-radius: 50%; background: var(--gold);
  color: var(--ink); font-size: 11px; font-weight: 700; margin-right: 4px;
}
.ilu-nota {
  margin-top: 22px; font-size: 12px; line-height: 1.7;
  color: rgba(26,18,9,0.5); font-style: italic;
}

/* Fotos de casos reales. Reusa el marco y la tipografia de .ilustracion
   para que una foto clinica y un dibujo se lean como la misma cosa. */
.caso-fotos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.caso-foto { margin: 0; }
.caso-img { display: block; width: 100%; height: auto; }
.caso-foto figcaption {
  margin-top: 12px; font-size: 12.5px; line-height: 1.6;
  color: rgba(26,18,9,0.72);
}
.caso-foto figcaption strong { color: var(--bark); font-weight: 600; }
@media (max-width: 700px) {
  .caso-fotos { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .ilu-pasos { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
}
/* Por debajo de 380 el hueco util cae de 271 a 256px o menos y ni
   con el espaciado al minimo entra: hay que bajar tambien el cuerpo.
   Medido en WebKit con la pagina desplazada, que es cuando nav pasa
   a .scrolled y el hueco se estrecha. */
@media (max-width: 380px) {
  .nav-sub { font-size: 8px; letter-spacing: 0.08em; }
}

/* 320px es el iPhone SE de primera generacion. Ahi el hueco baja
   a 216px y el texto pedia 220: se quedaba a cuatro. */
@media (max-width: 340px) {
  .nav-sub { letter-spacing: 0.04em; }
}

@media (max-width: 420px) {
  .ilu-pasos { grid-template-columns: 1fr; gap: 28px; }
  .ilu-marco { max-width: 280px; }
}

/* ── Encabezado de tratamiento con foto velada ──────────────────────
   La foto va detras del titulo, bajo un degradado que arranca opaco
   del lado del texto. En pantalla ancha el degradado es horizontal
   (el texto ocupa la izquierda); en movil tiene que ser vertical,
   porque el texto ocupa el ancho entero y un degradado horizontal lo
   deja peleando con la parte clara de la foto.
   La imagen es decorativa: el titulo ya dice de que trata la pagina. */
.page-head-foto { position: relative; overflow: hidden; }
.page-head-foto .page-head-inner { position: relative; z-index: 2; }

.velo { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.velo img {
  position: absolute; right: 0; top: 0; height: 100%; width: 62%;
  object-fit: cover;
  filter: grayscale(.35) brightness(.42) sepia(.35) saturate(.8);
}
.velo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    var(--ink) 0%, var(--ink) 34%,
    rgba(40,26,14,.90) 48%, rgba(40,26,14,.62) 72%, rgba(40,26,14,.55) 100%);
}

@media (max-width: 900px) {
  .velo img {
    width: 100%; height: 72%; top: 0;
    filter: grayscale(.4) brightness(.34) sepia(.35) saturate(.8);
  }
  .velo::after {
    background: linear-gradient(180deg,
      rgba(40,26,14,.72) 0%, rgba(40,26,14,.86) 38%,
      var(--ink) 72%, var(--ink) 100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .velo img { transition: none; }
}

/* ── Figuras al margen ──────────────────────────────────────────────
   La columna de prosa mide 720px. Hace falta 286px libres a cada lado
   para meter una figura de 230px con aire, o sea 1292px de hueco util.
   Por debajo de eso caen entre parrafos, que es lo que pasa en movil. */
.riel { margin: 34px auto; max-width: 420px; }
.riel .ilu-marco { display: block; }
.riel svg { width: 100%; height: auto; display: block; }

@media (min-width: 1320px) {
  .prose { position: relative; }
  .riel {
    position: absolute; width: 230px; max-width: none; margin: 0;
    margin-top: -6px;
  }
  .riel-der { right: -286px; }
  .riel-izq { left: -286px; }
  .riel figcaption { font-size: 11.5px; line-height: 1.5; }
}

/* ── TELEFONO APAISADO ──────────────────────────────────────────
   Con el telefono de lado la pantalla mide unos 390px de alto, pero
   el encabezado pedia 700 por su min-height. El boton de reservar
   quedaba entonces a 572px: mas de 300px de scroll para llegar a lo
   principal de la pagina. Por debajo de 500px de alto el encabezado
   se ajusta a su contenido, que son unos 410px, asi que el boton
   queda al alcance de un gesto. En escritorio no cambia nada: ahi la
   ventana pasa de 500px de alto. */
@media (max-height: 500px) {
  /* El padding de arriba es para librar la barra, que es fija y mide
     83px: sin el, el titular se dibujaba encima del nombre del doctor.
     El de abajo da aire al boton sin devolvernos al problema. */
  .hero { min-height: 0; height: auto; padding-top: 88px; padding-bottom: 12px; }
  /* Con 390px de alto y 92 ya gastados en librar la barra, el titular
     a 59px y los huecos de 24/32/48 dejaban el boton asomando por el
     borde. Titular mas corto y huecos mas juntos: solo aqui. */
  .hero-title { font-size: 42px; line-height: 1.04; margin-bottom: 20px; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-body { margin-bottom: 20px; }
}

/* ── SALTAR AL CONTENIDO ────────────────────────────────────────
   Quien navega con teclado tenia que recorrer todo el menu en cada
   una de las paginas antes de llegar al texto. Este enlace es el
   primero que recibe el tabulador: no se ve hasta que se enfoca, y
   entonces aparece arriba a la izquierda. Es un requisito de nivel A
   de las pautas de accesibilidad, y la traduccion ya estaba puesta en
   build.py desde hacia tiempo sin que nada la usara. */
.saltar {
  position: absolute; left: 12px; top: -200px;
  z-index: 2000; padding: 12px 20px;
  background: var(--gold); color: var(--ink);
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: top 0.18s ease;
}
.saltar:focus { top: 12px; outline: 2px solid var(--cream); outline-offset: 2px; }

/* ── PAGINA DE CONTACTO ─────────────────────────────────────────
   El orden visual sigue al de la pagina: lo directo primero, grande
   y pulsable, porque es lo que viene buscando casi todo el mundo. */
.contacto-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; max-width: 880px;
}
.contacto-via {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 28px; text-decoration: none;
  background: var(--bark); border: 1px solid rgba(201,168,76,0.22);
  border-radius: 3px; transition: border-color .2s, transform .2s;
  min-width: 0;
}
.contacto-via:hover { border-color: var(--gold); transform: translateY(-2px); }
.contacto-k {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.contacto-v {
  font-family: 'Cormorant', serif; font-size: 30px; line-height: 1.15;
  color: var(--cream); overflow-wrap: anywhere;
}
.contacto-mail { font-size: 21px; }
.contacto-nota {
  margin: 0 0 22px; font-size: 13.5px; color: rgba(245,240,232,0.5);
}
.contacto-rapido-h {
  font-family: 'Cormorant', serif; font-weight: 400; font-size: 28px;
  line-height: 1.15; margin: 0 0 8px; color: var(--cream);
}
.contacto-h2 {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 22px;
}
.contacto-sedes-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px; max-width: 880px;
}
/* .loc-value nacio para la banda clara de la portada y lleva tinta
   oscura: sobre este fondo desaparecia y solo se veian los rotulos. */
.contacto-sedes-grid .loc-label { color: var(--gold); }
.contacto-sedes-grid .loc-value { color: rgba(245,240,232,0.72); }
.contacto-sedes-grid .loc-item { display: flex; gap: 12px; align-items: flex-start; }

/* Las cuatro partes son una sola lectura, no cuatro secciones: con el
   relleno entero quedaban pantallas de vacio entre una y otra. */
.contacto-directo, .contacto-sedes, .contacto-video { padding-block: 40px; }
.contacto-directo { padding-top: 64px; }
.contacto-video { padding-bottom: 96px; }
.contacto-video-caja {
  max-width: 880px; padding: 34px 36px;
  background: var(--bark); border-left: 2px solid var(--gold);
  border-radius: 3px;
}
.contacto-video-tag {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.contacto-video-h {
  font-family: 'Cormorant', serif; font-weight: 400; font-size: 30px;
  line-height: 1.15; margin: 0 0 12px; color: var(--cream);
}
.contacto-video-p {
  color: rgba(245,240,232,0.68); max-width: 58ch; margin: 0 0 22px;
}
@media (max-width: 768px) {
  .contacto-grid, .contacto-sedes-grid { grid-template-columns: 1fr; }
  .contacto-v { font-size: 26px; }
  .contacto-mail { font-size: 18px; }
  .contacto-video-caja { padding: 26px 22px; }
}

/* Seis bloques de dos en dos: tres filas cuadradas. En cuatro
   columnas el ultimo quedaba solo con media fila vacia al lado. */
@media (min-width: 760px) {
  .contacto-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 759px) {
  .contacto-cards { grid-template-columns: 1fr; }
}

/* ── IMPRESION ──────────────────────────────────────────────────
   Un paciente imprime la hoja de primera visita o la direccion. La
   impresora no pinta los fondos, asi que las bandas oscuras salen en
   blanco con el texto crema encima: el nombre del doctor quedaba a
   1.13 de contraste y el titular a 1.03, es decir, invisibles. En
   papel todo pasa a tinta sobre blanco. Se quitan los adornos y lo
   que no sirve impreso, y se escribe la direccion de los enlaces de
   fuera, que en papel no se pueden pulsar. */
@media print {
  :root {
    --ink: #ffffff; --bark: #ffffff; --cream: #1a1209;
    --gold: #6b5310; --gold-light: #6b5310;
  }
  html, body { background: #fff !important; color: #1a1209 !important; }

  /* Nada de esto significa algo en papel. */
  nav, .nav-toggle, .nav-links, .cursor, .cursor-ring, .loader,
  .saltar, .marquee-section, .hero-bg, .velo, .page-head-foto,
  .pc-barra, .pc-controles, .pc-nav, .lang-switch, .footer-bottom,
  .scroll-hint, .hero-credentials, .photo-break { display: none !important; }

  /* Perseguir una por una las secciones de fondo oscuro no acaba
     nunca: cada seccion nueva vuelve a salir invisible. En papel
     todo es tinta sobre blanco, y luego se devuelve el color a lo
     poco que lo necesita. */
  *, *::before, *::after {
    background-image: none !important;
    background-color: transparent !important;
    color: #1a1209 !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }
  .btn-gold, .nav-cta, .pago-btn {
    background: #fff !important; color: #1a1209 !important;
    border: 1px solid #1a1209 !important;
  }
  a { color: #1a1209 !important; text-decoration: underline; }

  /* En papel un enlace no se pulsa: hay que poder leer a donde iba. */
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
  main a[href^="/"]::after { content: " (prosthodonticspr.com" attr(href) ")"; font-size: .85em; word-break: break-all; }
  main a[href^="mailto:"]::after, main a[href^="tel:"]::after { content: ""; }

  /* Que no se parta un bloque por la mitad entre dos hojas. */
  h1, h2, h3 { break-after: avoid-page; }
  li, .card, figure, .pc { break-inside: avoid-page; }
  img { max-width: 100% !important; }
  @page { margin: 16mm 14mm; }
}
