:root {
  --color-bg: #f7f4f0;
  --color-bg-soft: #f3efe9;
  --color-bg-light: #ffffff;

  --color-primary: #7aa696;
  --color-primary-soft: #9bb8aa;

  --color-accent: #d2a67a;
  --color-accent-soft: #e7c7a0;

  --color-text: #323232;
  --color-text-soft: #6b6b6b;

  --color-border-soft: rgba(0, 0, 0, 0.06);

  --shadow-soft: 0 14px 35px rgba(15, 19, 23, 0.08);
  --shadow-subtle: 0 10px 25px rgba(15, 19, 23, 0.05);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --header-height: 108px;
}

/* Fuente local: Philosopher */
@font-face {
  font-family: "Philosopher";
  src: url("assets/fonts/philosopher/Philosopher-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Philosopher";
  src: url("assets/fonts/philosopher/Philosopher-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Philosopher";
  src: url("assets/fonts/philosopher/Philosopher-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Philosopher";
  src: url("assets/fonts/philosopher/Philosopher-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  /* Compensa el header sticky al navegar por anclas (#inicio, #terapias, etc.) */
  scroll-padding-top: calc(var(--header-height) + 12px);
}

/* Enlace "Saltar al contenido" visible solo al foco (accesibilidad) */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, #fdfaf5 0, #f5f1ea 28%, #f2efe9 60%, #f0ede7 100%);
  -webkit-font-smoothing: antialiased;
}

/* Utilidades responsive */
.only-mobile {
  display: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
  background: transparent; /* mismo fondo en toda la página */
}

.section-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2.2rem;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
  color: #252525;
}

.section-subtitle {
  margin: 0;
  max-width: 520px;
  color: var(--color-text-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.section-header {
  margin-bottom: 3rem;
}

/* ===========================
   BOTONES
   =========================== */

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.35s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  color: #fdfdfd;
  box-shadow: 0 14px 32px rgba(77, 120, 104, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(77, 120, 104, 0.4);
  filter: brightness(1.02);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid rgba(122, 166, 150, 0.4);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  background: rgba(122, 166, 150, 0.06);
  transform: translateY(-1px);
}

/* ===========================
   HEADER
   =========================== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(247, 244, 240, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 18px 30px rgba(15, 19, 23, 0.12);
  background: rgba(246, 243, 238, 0.96);
}

.header-top,
.header-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 0.6rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.header-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.header-top__left {
  justify-self: flex-start;
  display: flex;
  align-items: center;
}

.header-top__center {
  justify-self: center;
  text-align: center;
}

.header-top__right {
  justify-self: flex-end;
  display: flex;
  justify-content: flex-end;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 0%, #ffffff 0, #f0ebe2 32%, #d6c6af 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(107, 92, 70, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5a4d3b;
  font-weight: 600;
}

.brand-name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #51443a;
  overflow-wrap: anywhere;
}

.header-bottom__left,
.header-bottom__right {
  height: 100%;
}

.header-bottom__center {
  display: flex;
  justify-content: center;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.3rem 0.4rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
  width: 21px;
  height: 2px;
  background: #4b4b4b;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav-toggle__line + .nav-toggle__line {
  margin-top: 4px;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 0;
  padding: 0.4rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(15, 19, 23, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #565656;
  position: relative;
  padding-bottom: 0.3rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transition: width 0.26s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-open .nav-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(59, 85, 70, 0.35), rgba(62, 49, 42, 0.4)),
    url("assets/img/backgroundlandscape.jpg");

  background-size: cover;
  background-position: center center;
  filter: grayscale(12%);
  transform: scale(1.02);
  transform-origin: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(246, 241, 232, 0.65) 0, rgba(27, 37, 32, 0.55) 55%, rgba(13, 16, 15, 0.88) 100%);
  mix-blend-mode: soft-light;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  padding: 5rem 1.5rem 4rem;
  transform: translateY(-17vh);
}

.hero__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}

.hero__subtitle {
  margin: 0 0 2rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(249, 245, 238, 0.9);
}

/* ===========================
   TERAPIAS - CARRUSEL INFINITO (imagen + texto)
   =========================== */

.section--terapias {
  padding-bottom: 4rem;
}

.therapies-carousel {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 1rem;
  overflow: hidden;
}

.therapies-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 50%;
  padding: 1.2rem 0; /* evita recorte al hacer hover */
}

.therapies-track {
  display: flex;
  will-change: transform;
  overflow: visible;
}

.therapies-set {
  display: flex;
  flex-shrink: 0;
  gap: 1.25rem;
  padding: 0 1.5rem;
  overflow: visible;
}

/* Tarjeta: imagen arriba, texto abajo (estilo referencia) */
.therapy-card {
  flex: 0 0 var(--therapy-card-width, 300px);
  width: var(--therapy-card-width, 300px);
  min-width: var(--therapy-card-width, 300px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0, #f9f4ec 60%, #f2ebdf 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
  transform-origin: center;
  will-change: transform;
}

.therapy-card__image-wrap {
  width: 100%;
  aspect-ratio: 400 / 260;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.therapy-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.therapy-card__body {
  padding: 1.25rem 1.2rem 1.4rem;
  background: transparent;
}

.therapy-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.therapy-card__text {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Hover: pausa el scroll (JS) y la card se agranda para facilitar lectura */
.therapy-card:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 20px 45px rgba(15, 19, 23, 0.18);
  z-index: 5;
}

/* Móvil: clase activada por tap (JS) */
.therapy-card.is-active {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 20px 45px rgba(15, 19, 23, 0.18);
  z-index: 6;
}

@media (max-width: 1024px) {
  .therapies-set {
    gap: 1rem;
    padding: 0 1rem;
  }

  .therapy-card {
    --therapy-card-width: 280px;
  }
}

@media (max-width: 768px) {
  .therapies-set {
    gap: 0.85rem;
    padding: 0 0.75rem;
  }

  .therapy-card {
    --therapy-card-width: 260px;
  }

  .therapy-card__body {
    padding: 1rem 1rem 1.2rem;
  }

  .therapy-card__title {
    font-size: 1rem;
  }

  .therapy-card__text {
    font-size: 0.85rem;
  }

  .therapy-card:hover {
    transform: translateY(-3px) scale(1.04);
  }
}

@media (max-width: 480px) {
  .therapy-card {
    --therapy-card-width: 240px;
  }
}

/* ===========================
   SOBRE LAS TERAPIAS
   =========================== */

.section--about {
  overflow: hidden;
}

.about-accordion {
  position: relative;
  z-index: 1;
}

.about-toggle {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: none; /* solo móvil */
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}

.about-toggle__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(122, 166, 150, 0.35);
  background: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(15, 19, 23, 0.08);
  position: relative;
  flex: 0 0 auto;
}

.about-toggle__icon::before,
.about-toggle__icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.about-toggle__icon::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.about-toggle[aria-expanded="true"] .about-toggle__icon::after {
  transform: rotate(0deg);
  opacity: 0;
}

@media (max-width: 768px) {
  .about-toggle {
    display: inline-flex;
  }

  .about-accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
}

.section-bg-orbits {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  z-index: 0;
}

.orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(122, 166, 150, 0.18);
}

.orbit--one {
  width: 560px;
  height: 560px;
  top: -8%;
  right: -22%;
}

.orbit--two {
  width: 320px;
  height: 320px;
  bottom: -14%;
  left: -10%;
  border-color: rgba(210, 166, 122, 0.26);
}

.info-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.6rem;
  align-items: center;
}

.info-layout__content p {
  color: var(--color-text-soft);
  line-height: 1.8;
  font-size: 0.98rem;
}

.info-layout__content p + p {
  margin-top: 1.05rem;
}

/* Badges */
.info-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.info-badge {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 166, 150, 0.5);
  color: #4f665b;
  background: rgba(240, 247, 242, 0.9);
}

.info-badge--light {
  border-color: rgba(210, 166, 122, 0.5);
  color: #7a6045;
  background: rgba(250, 242, 233, 0.9);
}

/* Highlights */
.info-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1.6rem 0 1rem;
}

.info-highlight-item {
  min-width: 130px;
}

.info-highlight-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 19, 23, 0.08);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.info-highlight-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* Checklist */
.info-checklist {
  margin: 1.4rem 0 0;
  padding-left: 1.3rem;
  list-style: none;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.info-checklist li {
  position: relative;
  margin-bottom: 0.4rem;
  padding-left: 0.7rem;
}

.info-checklist li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  position: absolute;
  left: -0.4rem;
  top: 0.45rem;
}

/* Card lateral */
.info-layout__accent {
  display: flex;
  justify-content: flex-end;
}

.info-card {
  background: linear-gradient(145deg, #ffffff 0, #f5efe7 40%, #efe0cf 100%);
  border-radius: 26px;
  padding: 2.1rem 2rem;
  max-width: 320px;
  box-shadow: 0 20px 45px rgba(55, 46, 35, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.info-card__label {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #725842;
  margin: 0 0 0.8rem;
}

.info-card__text {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.1rem;
  color: #3a2f23;
}

.info-card__divider {
  margin: 1.4rem 0 1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(73, 54, 41, 0.5), rgba(255, 255, 255, 0.1));
}

.info-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.info-card__tags span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(202, 177, 149, 0.55);
}

/* ===========================
   FLORES DE BACH (layout)
   =========================== */

.bach-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 2.6rem;
  align-items: flex-start;
}

.bach-grid__intro p {
  color: var(--color-text-soft);
  line-height: 1.8;
  font-size: 0.98rem;
}

.bach-grid__intro p + p {
  margin-top: 1.05rem;
}

.bach-badges {
  margin-bottom: 1rem;
}

.bach-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.bach-pill {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  box-shadow: 0 12px 30px rgba(126, 100, 145, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 190px;
}

.bach-pill--soft {
  background: rgba(250, 243, 253, 0.98);
  border-color: rgba(197, 175, 216, 0.65);
}

.bach-pill__title {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a547d;
}

.bach-pill__text {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.bach-grid__details {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.6rem;
}

.bach-panel {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 18px 38px rgba(122, 93, 143, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.98);
}

.bach-panel--light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), #f7eef8);
}

.bach-panel__title {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #5a4669;
}

.bach-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.bach-list li {
  position: relative;
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
}

.bach-list li::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 20%, #ffffff, var(--color-primary));
}

.bach-steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.6rem;
}

.bach-step {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.bach-step__badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-accent));
  color: #fff;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(129, 93, 149, 0.22);
  margin-top: 0.2rem;
}

.bach-step__title {
  margin: 0 0 0.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #5a4669;
}

.bach-step__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.bach-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.4rem;
}

.bach-cta-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  max-width: 340px;
}

/* ===========================
   UBICACIÓN
   =========================== */

.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.4rem;
  align-items: stretch;
}

.location-grid__map {
  min-height: 420px;
}

.map-wrapper {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

.location-grid__info {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.96);
}

.location-title {
  margin: 0 0 0.8rem;
}

.location-address {
  margin: 0 0 1.2rem;
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.location-address span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.schedule h4,
.contact-block h4 {
  margin: 0 0 0.7rem;
}

.schedule-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.schedule-list li:last-child {
  border-bottom: none;
}

.phone-number {
  margin: 0 0 0.9rem;
  font-weight: 500;
}

/* ===========================
   CONTACTO
   =========================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 2.4rem;
  align-items: flex-start;
}

.contact-layout__info p {
  color: var(--color-text-soft);
  line-height: 1.8;
  font-size: 0.98rem;
}

.contact-data {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
}

.contact-data li + li {
  margin-top: 0.4rem;
}

.contact-data span {
  font-weight: 500;
  margin-right: 0.4rem;
}

.contact-data a {
  color: var(--color-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-data a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.94);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--color-border-soft);
  font-family: inherit;
  font-size: 0.95rem;
  background: #faf7f3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(122, 166, 150, 0.8);
  box-shadow: 0 0 0 1px rgba(122, 166, 150, 0.18);
  background: #ffffff;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  background: #151819;
  color: #f6f3ee;
  padding-top: 3.2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
  padding-bottom: 1.9rem;
}

.footer-column h4 {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e6ded2;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-links li + li {
  margin-top: 0.4rem;
}

.footer-links a {
  color: #f6f3ee;
  text-decoration: none;
  opacity: 0.82;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-column--message {
  display: flex;
  align-items: center;
}

.footer-message {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.05rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem 1.6rem;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ===========================
   REVEAL
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .info-layout,
  .location-grid,
  .contact-layout,
  .bach-grid {
    grid-template-columns: 1fr;
  }

  .info-layout__accent {
    justify-content: flex-start;
  }

  .hero__content {
    padding-top: 4.2rem;
    padding-bottom: 3.4rem;
  }

  .header-top,
  .header-bottom {
    padding-inline: 1rem;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 132px;
  }

  .only-desktop {
    display: none;
  }

  .only-mobile {
    display: block;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.22em;
  }

  .header-top {
    grid-template-columns: auto 1fr auto;
    column-gap: 0.4rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    top: 115%;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.3rem;
    background: rgba(253, 250, 246, 0.96);
    border-radius: 18px;
    box-shadow: 0 18px 32px rgba(15, 19, 23, 0.18);
    transform-origin: top right;
    transform: scale(0.9) translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    min-width: 220px;
    z-index: 50;
  }

  .nav-open .nav-list {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }

  .nav-link {
    padding: 0.25rem 0;
  }

  .therapies-carousel {
    gap: 0.6rem;
  }

  .hero {
    /* En móvil, que el inicio ocupe toda la pantalla (sin “barra blanca”). */
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    align-items: center;
  }

  .hero__content {
    padding-top: 4.2rem;
    padding-bottom: 4.2rem;
    transform: translateY(-4vh);
  }

  .section {
    padding: 3.5rem 0;
  }

  .location-grid__map,
  .map-wrapper {
    min-height: 280px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .info-card {
    max-width: 100%;
  }

  .bach-cta-row {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero__title {
    letter-spacing: 0.16em;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .header-top,
  .header-bottom {
    padding-inline: 0.9rem;
  }
}