/* ==========================================================================
   Dra. Ydelise Rodríguez Pichardo — Cardiología · draydeliserodriguez.es
   Hoja de estilos única del sitio. Sin dependencias externas.
   ========================================================================== */

/* ---- Fuentes auto-alojadas (variable, subconjunto latino) ---- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-var-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
}

/* ---- Variables de diseño ---- */
:root {
  --navy: #123a56;
  --navy-dark: #0d2c42;
  --navy-deep: #081e2e;
  --turquoise: #3ed0dc;
  --teal: #1798a7;
  --teal-soft: #e3f2f4;
  --sage-soft: #e9f2ec;
  --gold: #c9a24b;
  --gold-deep: #91722c;
  --line-soft: #cfe4e8;
  --bg: #f7fafa;
  --white: #ffffff;
  --ink: #24333f;
  --ink-soft: #55636e;
  --line: #e2e9ec;
  --ok: #2e7d5b;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 42, 60, 0.05), 0 10px 30px -12px rgba(18, 42, 60, 0.16);
  --shadow-lift: 0 2px 4px rgba(18, 42, 60, 0.06), 0 18px 44px -14px rgba(18, 58, 86, 0.30);
  --container: 1140px;
  --header-h: 4.5rem;
}

/* ---- Reset breve ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }
button { font: inherit; cursor: pointer; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* ==========================================================================
   Cabecera
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 9px; object-fit: contain; }
.brand-text { line-height: 1.15; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand-role {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 1vw, 0.75rem);
  list-style: none;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--teal-soft); color: var(--navy-dark); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
}
.lang-switch a, .lang-switch span {
  padding: 0.32rem 0.7rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang-switch [aria-current] {
  background: var(--navy);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--teal-soft); color: var(--navy-dark); transform: translateY(-2px); }
.btn-whatsapp { background: #1e9e50; color: #fff; }
.btn-whatsapp:hover { background: #157a3c; color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.92rem; }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: '';
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.75rem clamp(1.1rem, 4vw, 2rem) 1.25rem;
  }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .site-nav a { padding: 0.75rem 0.65rem; font-size: 1.05rem; }
  .site-nav .nav-cta { margin-top: 0.6rem; }
  .site-nav .nav-cta .btn { width: 100%; }
}
@media (min-width: 1024px) {
  .site-nav .nav-cta { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(56rem 34rem at 112% -14%, rgba(62, 208, 220, 0.16) 0%, transparent 64%),
    radial-gradient(44rem 28rem at -14% 110%, var(--sage-soft) 0%, transparent 62%),
    radial-gradient(30rem 20rem at 78% 96%, rgba(201, 162, 75, 0.10) 0%, transparent 65%),
    linear-gradient(180deg, #f3f8f9 0%, var(--bg) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.hero-eyebrow::before {
  content: '';
  width: 2.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.hero h1 { margin-bottom: 0.4rem; }
.hero-role {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.hero-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.18rem);
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.2rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.7rem;
  padding: 0;
  list-style: none;
}
.hero-badges li { flex: 1 1 0; min-width: 8.5rem; max-width: 12rem; }
.badge-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1.2;
}
.badge-label { font-size: 0.86rem; color: var(--ink-soft); }

.hero-figure { position: relative; justify-self: center; width: min(100%, 25rem); }
.hero-figure::before {
  content: '';
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--turquoise) 0%, var(--navy) 85%);
  opacity: 0.2;
  filter: blur(6px);
}
.hero-photo {
  position: relative;
  width: 100%;
  border-radius: 26px;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lift);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.hero-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: -0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.6rem 0.95rem;
  font-size: 0.85rem;
  line-height: 1.35;
}
.hero-card svg { flex: none; }
.hero-card strong { display: block; color: var(--navy); }

@media (max-width: 799px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { grid-row: 1; width: min(85%, 21rem); margin-bottom: 0.9rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */
.section { padding-block: clamp(3.4rem, 7vw, 5.5rem); }
.section-alt {
  background:
    radial-gradient(42rem 22rem at 108% 0%, rgba(62, 208, 220, 0.07) 0%, transparent 60%),
    radial-gradient(36rem 22rem at -8% 100%, rgba(201, 162, 75, 0.06) 0%, transparent 60%),
    var(--white);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.section-eyebrow::before {
  content: '';
  width: 1.8rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.section-head p { color: var(--ink-soft); margin-top: 0.8rem; }

/* ---- Sobre mí ---- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-text p { margin-bottom: 1rem; color: var(--ink); }
.about-text p:last-child { margin-bottom: 0; }
.about-quote {
  margin: 1.4rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--gold);
  background: var(--teal-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--navy-dark);
}
.milestones { display: grid; gap: 0.9rem; padding: 0; list-style: none; }
.milestone {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.section-alt .milestone { background: var(--bg); }
.milestone-icon {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--teal-soft) 0%, var(--sage-soft) 100%);
  color: var(--teal);
}
.milestone h3 { font-size: 1.02rem; font-family: var(--sans); font-weight: 600; }
.milestone p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.15rem; }

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

/* ---- Servicios ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-soft); }
.card-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--teal-soft) 0%, var(--sage-soft) 100%);
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.card h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.card p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---- Patologías (chips) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; list-style: none; }
.chips li {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy-dark);
}
.notice {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  background: #fdf3e7;
  border: 1px solid #f0d9b8;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: #6b4a1b;
}
.notice svg { flex: none; margin-top: 0.15rem; color: #b97f2a; }
.notice strong { color: #59390f; }

/* ---- Ubicaciones ---- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1.4rem;
}
.location-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.location-body { padding: 1.5rem 1.5rem 1.35rem; }
.location-city {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
}
.location-card h3 { margin: 0.3rem 0 0.75rem; font-size: 1.3rem; }
.location-meta { display: grid; gap: 0.45rem; padding: 0; list-style: none; font-size: 0.96rem; }
.location-meta li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-soft); }
.location-meta svg { flex: none; margin-top: 0.22rem; color: var(--teal); }
.location-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.map-facade {
  position: relative;
  margin-top: auto;
  aspect-ratio: 16 / 8.5;
  background:
    radial-gradient(18rem 9rem at 70% 20%, #f3e9e4 0%, transparent 70%),
    linear-gradient(150deg, #f6f1ed 0%, #ece3dd 100%);
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line);
}
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade picture { position: absolute; inset: 0; }
.map-photo { width: 100%; height: 100%; object-fit: cover; }
.map-load {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.map-load:hover { transform: translateY(-2px); }
.map-note {
  position: absolute;
  bottom: 0.55rem;
  z-index: 2;
  font-size: 0.72rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.12rem 0.65rem;
  border-radius: 999px;
}

/* ---- Seguros ---- */
.insurers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}
.insurers li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.94rem;
  font-weight: 500;
}
.insurers svg { flex: none; color: var(--ok); }
.insurers-note { margin-top: 1.4rem; color: var(--ink-soft); font-size: 0.97rem; max-width: 46rem; }

/* ---- Blog ---- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.2rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.section-alt .post-card { background: var(--bg); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.post-tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.85rem;
}
.post-card h3 { margin-bottom: 0.5rem; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--navy); }
.post-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.post-more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--navy);
}
.post-more::after { content: ' →'; }

/* ---- Pedir cita ---- */
.booking {
  background:
    radial-gradient(50rem 28rem at 110% -20%, rgba(62, 208, 220, 0.18) 0%, transparent 62%),
    radial-gradient(38rem 24rem at -10% 115%, rgba(201, 162, 75, 0.14) 0%, transparent 60%),
    linear-gradient(165deg, #143d5c 0%, var(--navy-deep) 100%);
  color: #dbe9f2;
}
.booking .section-eyebrow { color: var(--gold); }
.booking h2, .booking h3 { color: #fff; }
.booking .section-head p { color: #c3d8e5; }
.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.1rem;
}
.booking-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.booking-card p { font-size: 0.93rem; color: #b9cfdd; margin-bottom: 0.5rem; }
.booking-card p a { color: #8fd7e0; }
.booking-card p a:hover { color: #b5e6ec; }
.booking-card .btn { margin-top: auto; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-soft); color: var(--navy-dark); transform: translateY(-2px); }
.booking-note { margin-top: 1.6rem; font-size: 0.92rem; color: #9db8c8; max-width: 44rem; }

/* ---- Contacto ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-list { display: grid; gap: 1rem; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: 0.2rem; color: var(--teal); }
.contact-list strong { display: block; font-size: 0.95rem; }
.contact-list a { font-size: 1.02rem; }
.contact-list small { display: block; color: var(--ink-soft); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: 0.35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.9rem; font-weight: 600; }
.form-field input, .form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.form-consent input { margin-top: 0.3rem; accent-color: var(--teal); width: 1.05rem; height: 1.05rem; flex: none; }
.form-submit { grid-column: 1 / -1; justify-self: start; }
.form-privacy-note { grid-column: 1 / -1; font-size: 0.8rem; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer {
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(62, 208, 220, 0.08) 0%, transparent 60%),
    var(--navy-deep);
  color: #c0cfda;
  padding-block: 3rem 2rem;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-role { color: var(--turquoise); }
.footer-brand p { margin-top: 0.8rem; max-width: 26rem; color: #9db4c2; }
.footer-brand p em { color: #e0c583; font-family: var(--serif); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-weight: 500;
}
.footer-social svg { color: var(--turquoise); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: #d3dee6; text-decoration: none; }
.site-footer a:hover { color: var(--turquoise); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #1f3c52;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #8fa6b5;
}
@media (max-width: 799px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---- Botón flotante WhatsApp ---- */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1e9e50;
  color: #fff;
  box-shadow: 0 6px 20px -4px rgba(20, 90, 50, 0.5);
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }

/* ==========================================================================
   Páginas interiores (blog, legales, gracias, 404)
   ========================================================================== */
.page-hero {
  background:
    radial-gradient(46rem 24rem at 108% -18%, rgba(62, 208, 220, 0.17) 0%, transparent 62%),
    radial-gradient(34rem 20rem at -8% 115%, rgba(201, 162, 75, 0.13) 0%, transparent 60%),
    linear-gradient(165deg, #143d5c 0%, var(--navy-deep) 100%);
  color: #dbe9f2;
  padding-block: clamp(2.6rem, 6vw, 4rem);
}
.page-hero h1 { color: #fff; max-width: 46rem; }
.page-hero p { max-width: 42rem; margin-top: 0.7rem; color: #c3d8e5; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; }
.breadcrumbs li + li::before { content: '›'; margin-right: 0.4rem; color: #7fa2b8; }
.breadcrumbs a { color: #cfe0ea; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1rem; font-size: 0.88rem; color: #9db8c8; }

.prose { max-width: 44rem; margin-inline: auto; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.4rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.45rem; }
.prose .lead { font-size: 1.16rem; color: var(--ink-soft); }
.prose blockquote {
  border-left: 4px solid var(--gold);
  background: var(--teal-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.3rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy-dark);
}
.references { font-size: 0.92rem; color: var(--ink-soft); }
.article-disclaimer {
  margin-top: 2.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.article-cta {
  margin-top: 2.2rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background:
    radial-gradient(24rem 12rem at 105% -20%, rgba(62, 208, 220, 0.18) 0%, transparent 65%),
    linear-gradient(165deg, #143d5c 0%, var(--navy-deep) 100%);
  color: #dbe9f2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.article-cta p { margin: 0; color: #fff; font-family: var(--serif); font-size: 1.15rem; max-width: 28rem; }

.status-page { text-align: center; padding-block: clamp(4rem, 10vw, 7rem); }
.status-page .status-icon { margin-inline: auto; margin-bottom: 1.4rem; color: var(--navy); }
.status-page p { max-width: 34rem; margin: 0.8rem auto 1.8rem; color: var(--ink-soft); }
.status-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---- Botón de tema claro/oscuro ---- */
.theme-toggle {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.theme-toggle:hover { color: var(--teal); border-color: var(--line-soft); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 520px) {
  .header-inner { gap: 0.55rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; }
  .brand-name { font-size: 0.92rem; }
  .theme-toggle { width: 2.1rem; height: 2.1rem; }
  .lang-switch a, .lang-switch span { padding: 0.28rem 0.5rem; }
}

/* ==========================================================================
   Modo oscuro (se activa con data-theme="dark"; el script de cabecera lo
   aplica según la preferencia guardada o la del sistema operativo)
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1a26;
  --white: #14293a;
  --ink: #e6edf3;
  --ink-soft: #a7bac6;
  --line: #213c50;
  --line-soft: #2b4f63;
  --teal-soft: #123240;
  --sage-soft: #12332c;
  --gold: #d4ad5a;
  --gold-deep: #dfbe77;
  --teal: #3bbdcc;
  --navy: #1e5a83;
  --navy-dark: #2a6f9e;
  --ok: #4ccb92;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 44px -14px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] a { color: #66c8d6; }
[data-theme="dark"] a:hover { color: #8fd9e3; }
[data-theme="dark"] .site-header { background: rgba(12, 26, 38, 0.88); }
[data-theme="dark"] .site-nav a { color: var(--ink); }
[data-theme="dark"] .site-nav a:hover { color: #8fd9e3; }
[data-theme="dark"] .lang-switch a { color: var(--ink-soft); }
[data-theme="dark"] .lang-switch [aria-current] { color: #fff; }
[data-theme="dark"] .hero {
  background:
    radial-gradient(56rem 34rem at 112% -14%, rgba(62, 208, 220, 0.10) 0%, transparent 64%),
    radial-gradient(44rem 28rem at -14% 110%, rgba(46, 125, 91, 0.12) 0%, transparent 62%),
    radial-gradient(30rem 20rem at 78% 96%, rgba(212, 173, 90, 0.07) 0%, transparent 65%),
    linear-gradient(180deg, #0e2130 0%, var(--bg) 100%);
}
[data-theme="dark"] .hero-photo { border-color: #1c3549; }
[data-theme="dark"] .hero-card strong { color: #8fd7e0; }
[data-theme="dark"] .section-alt {
  background:
    radial-gradient(42rem 22rem at 108% 0%, rgba(62, 208, 220, 0.06) 0%, transparent 60%),
    radial-gradient(36rem 22rem at -8% 100%, rgba(212, 173, 90, 0.05) 0%, transparent 60%),
    #10222f;
}
[data-theme="dark"] .btn-outline { border-color: #66c8d6; color: #66c8d6; }
[data-theme="dark"] .btn-outline:hover { color: #8fd9e3; }
[data-theme="dark"] .btn-light { background: #e6edf3; color: #0d2c42; }
[data-theme="dark"] .btn-light:hover { background: #cfe0ea; color: #0d2c42; }
[data-theme="dark"] .post-tag { color: #8fd7e0; }
[data-theme="dark"] .chips li { color: #cfe3ee; }
[data-theme="dark"] .about-quote, [data-theme="dark"] .prose blockquote { color: #e7cf9b; }
[data-theme="dark"] .location-city { color: var(--gold-deep); }
[data-theme="dark"] .map-facade {
  background:
    radial-gradient(18rem 9rem at 70% 20%, #16303f 0%, transparent 70%),
    linear-gradient(150deg, #122735 0%, #0e2130 100%);
}
[data-theme="dark"] .map-load { background: #14293a; color: #8fd7e0; border-color: var(--line-soft); }
[data-theme="dark"] .map-note { background: rgba(12, 26, 38, 0.85); color: var(--ink-soft); }
[data-theme="dark"] .notice { background: #2b2312; border-color: #57451e; color: #e3c886; }
[data-theme="dark"] .notice svg { color: #d4a94e; }
[data-theme="dark"] .notice strong { color: #f0d9a4; }
[data-theme="dark"] .form-field input:focus, [data-theme="dark"] .form-field textarea:focus { background: #102534; }
[data-theme="dark"] .status-page .status-icon { color: #66c8d6; }
[data-theme="dark"] .site-footer a { color: #d3dee6; }
[data-theme="dark"] .booking-card p { color: #b9cfdd; }

/* ---- Utilidades ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

@media print {
  .site-header, .wa-float, .site-footer, .map-facade, .hero-actions { display: none !important; }
  body { background: #fff; }
}
