/* Alma Viva Centro de Bienestar: sitio público */

@font-face { font-family: "Ranade"; src: url("fuentes/ranade-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Ranade"; src: url("fuentes/ranade-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Ranade"; src: url("fuentes/ranade-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fuentes/archivo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fuentes/archivo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fuentes/archivo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Colores de la marca */
  --verde: #154A42;
  --verde-hondo: #0F3832;
  --hoja: #D1DFA4;
  --hoja-honda: #BDD088;
  --salvia: #83916B;
  --salvia-texto: #5C6848;
  --crema: #F7F6DF;
  --blanco: #FFFFFF;
  --tinta: #26352F;
  --linea: #DCE3CC;

  --titulos: "Ranade", "Archivo", system-ui, sans-serif;
  --texto: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ancho: 1160px;
  --margen: 24px;
  --alto-cabecera: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 500;
  color: var(--verde);
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.625rem;
  line-height: 1.15;
}
p { margin: 0; }
.sin-corte { white-space: nowrap; }
.oculto {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
a { color: var(--verde); }

:focus-visible {
  outline: 3px solid var(--salvia);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id], article[id] { scroll-margin-top: calc(var(--alto-cabecera) + 16px); }

.marco {
  width: 100%;
  max-width: calc(var(--ancho) + 2 * var(--margen));
  margin-inline: auto;
  padding-inline: var(--margen);
}

.saltar {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--verde);
  color: var(--blanco);
  border-radius: 8px;
}
.saltar:focus { top: 12px; }

/* Botones y enlaces */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0 1.45em;
  border: 1.5px solid var(--verde);
  border-radius: 999px;
  font-family: var(--texto);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.boton svg { width: 1.2em; height: 1.2em; flex: none; }
.boton--lleno { background: var(--verde); color: var(--blanco); }
.boton--lleno:hover { background: var(--verde-hondo); border-color: var(--verde-hondo); }
.boton--borde { background: transparent; color: var(--verde); }
.boton--borde:hover { background: var(--hoja); }
.boton--chico { min-height: 42px; padding: 0 1.1em; font-size: 0.9375rem; }

.enlace {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  color: var(--verde);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--salvia);
}
.enlace:hover { text-decoration-color: var(--verde); }
.enlace svg { width: 1.1em; height: 1.1em; flex: none; }

/* Arco: la forma del logo (el arco «Mente • Cuerpo») enmarca las fotos */
.arco {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px;
}

/* Cabecera */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--linea);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.cabecera__fila {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--alto-cabecera);
}
.cabecera__logo { flex: none; border-radius: 6px; }
.cabecera__logo img { height: 46px; width: auto; }
.cabecera__nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.cabecera__nav a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--verde);
  text-decoration: none;
  padding: 6px 0;
}
.cabecera__nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--salvia); }

/* Portada */
.portada { padding-block: 64px 96px; }
.portada__fila {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 72px;
  align-items: center;
}
.portada h1 {
  font-size: clamp(2.75rem, 1.1rem + 4.9vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 10.5em;
}
.portada__bajada {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.5;
}
.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 40px;
}
.portada__imagen {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 440px;
  justify-self: end;
}
/* Un segundo arco verde hoja detrás de la ilustración */
.portada__imagen::before {
  content: "";
  position: absolute;
  inset: 22px 22px -22px -22px;
  background: var(--hoja);
  border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px;
}
.portada__imagen img { position: relative; box-shadow: 0 0 0 1px rgba(21, 74, 66, 0.12); }

/* Servicios */
.servicios { padding-block: 24px 104px; }
.servicios__fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  gap: 48px 72px;
  align-items: start;
}
.servicios__fila h2 { max-width: 8em; }
.servicio {
  padding-block: 30px;
  border-top: 1px solid var(--linea);
}
.servicio:first-child { padding-top: 6px; border-top: 0; }
.servicio:last-child { padding-bottom: 0; }
.servicio p { margin-top: 10px; max-width: 60ch; }
.servicio .servicio__quien {
  margin-top: 14px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--salvia-texto);
}
.servicio__quien a {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--salvia);
}

/* Enfoque: franja verde hoja con el símbolo del centro */
.enfoque {
  position: relative;
  overflow: hidden;
  background: var(--hoja);
  padding-block: 104px;
}
.enfoque::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 560px;
  aspect-ratio: 640 / 596;
  background: var(--hoja-honda);
  -webkit-mask: url("img/simbolo.png") center / contain no-repeat;
  mask: url("img/simbolo.png") center / contain no-repeat;
}
.enfoque blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
}
.enfoque blockquote p {
  font-family: var(--titulos);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.05rem + 2vw, 2.55rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--verde);
  max-width: 30ch;
  text-wrap: pretty;
}

/* Equipo */
.equipo { padding-block: 112px 72px; }
.equipo__grilla {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 32px;
  margin-top: 56px;
}
.persona {
  display: flex;
  flex-direction: column;
}
.persona .arco { background: var(--crema); }
.persona h3 { margin-top: 24px; font-size: 1.5rem; }
.persona .persona__rol {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--salvia-texto);
}
.persona .persona__resumen { margin-top: 14px; font-size: 1rem; line-height: 1.55; }
.persona__acciones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
}
.persona__acciones .boton { min-height: 46px; padding: 0 1.2em; font-size: 0.97rem; }
.enlace--ig { font-size: 0.92rem; overflow-wrap: anywhere; }

/* «Formación y enfoque»: se despliega al tocarlo */
.persona__mas {
  margin-top: 22px;
  border-top: 1px solid var(--linea);
}
.persona__mas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--verde);
  cursor: pointer;
  list-style: none;
}
.persona__mas summary::-webkit-details-marker { display: none; }
.persona__mas summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.persona__mas[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.persona__mas summary:hover { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-color: var(--salvia); }
.persona__detalle { padding-bottom: 6px; font-size: 0.95rem; line-height: 1.55; }
.persona__detalle p + p { margin-top: 10px; }
.persona__detalle .persona__temas-titulo { margin-top: 16px; font-weight: 600; color: var(--verde); }
.persona__temas {
  margin: 8px 0 0;
  padding-left: 1.1em;
}
.persona__temas li + li { margin-top: 4px; }
.persona__temas li::marker { color: var(--salvia); }

/* Con subgrid, los botones de agendar quedan alineados aunque los textos midan distinto */
@media (min-width: 761px) {
  @supports (grid-template-rows: subgrid) {
    .equipo__grilla { row-gap: 0; }
    .persona {
      display: grid;
      grid-row: span 6;
      grid-template-rows: subgrid;
      row-gap: 0;
      padding-bottom: 48px;
    }
    .persona__acciones { margin-top: 0; }
  }
}

/* Tarifas */
.tarifas {
  background: var(--crema);
  padding-block: 104px;
}
.tarifas__intro {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 1.1rem;
}
.tarifas__fila {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: start;
  margin-top: 48px;
}
.tarifa h3 { font-size: 1.75rem; }
.tabla-envoltura { margin-top: 18px; overflow-x: auto; }
.tabla-precios {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.tabla-precios th,
.tabla-precios td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--linea);
  text-align: right;
  vertical-align: baseline;
}
.tabla-precios th:first-child,
.tabla-precios td:first-child { padding-left: 0; text-align: left; }
.tabla-precios th:last-child,
.tabla-precios td:last-child { padding-right: 0; }
.tabla-precios thead th {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--salvia-texto);
  border-bottom: 1.5px solid var(--verde);
}
.tabla-precios thead td { border-bottom: 1.5px solid var(--verde); }
.tabla-precios tbody th { font-weight: 500; color: var(--verde); }
.tabla-precios tbody td { font-size: 1.08rem; font-weight: 500; color: var(--tinta); white-space: nowrap; }
.tabla-precios--simple tbody tr:first-child th,
.tabla-precios--simple tbody tr:first-child td { border-top: 1.5px solid var(--verde); }
.tarifa .tarifa__extra { margin-top: 16px; }
.tarifa__extra strong { font-weight: 600; color: var(--verde); }
.tarifa__notas {
  margin: 14px 0 0;
  padding-left: 1.1em;
  font-size: 0.95rem;
  color: var(--salvia-texto);
}
.tarifa__notas li + li { margin-top: 6px; }
.tarifa__notas li::marker { color: var(--salvia); }
.tarifas__cierre {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--linea);
  font-weight: 500;
  color: var(--verde);
}

/* Visítanos */
.visita {
  background: var(--blanco);
  padding-block: 104px;
}
.visita__fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px 72px;
  align-items: start;
}
.visita address {
  display: flex;
  flex-direction: column;
  margin-block: 28px 30px;
  font-style: normal;
  font-size: 1.15rem;
}
.visita .visita__dir {
  font-family: var(--titulos);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.35rem);
  line-height: 1.15;
  color: var(--verde);
}
.visita__nota {
  margin-top: 22px;
  max-width: 36ch;
  color: var(--salvia-texto);
}
.contactos {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contactos li + li { border-top: 1px solid var(--linea); }
.contactos a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 20px;
  color: var(--verde);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}
.contactos a > svg {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 13px;
  border-radius: 50%;
  background: var(--crema);
  border: 1px solid var(--linea);
}
.contactos a > span { min-width: 0; overflow-wrap: anywhere; }
.contactos a:hover > span { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-color: var(--salvia); }
.contactos li:first-child a { padding-top: 0; }
.contactos__que {
  display: block;
  margin-bottom: 2px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--salvia-texto);
}

/* Pie: el verde de la pared del centro, con su símbolo */
.pie {
  background: var(--verde);
  color: #E3EBCF;
  padding-block: 48px;
  font-size: 0.97rem;
}
.pie__fila {
  display: flex;
  align-items: center;
  gap: 24px;
}
.pie__simbolo {
  flex: none;
  width: 64px;
  aspect-ratio: 640 / 596;
  background: var(--hoja);
  -webkit-mask: url("img/simbolo.png") center / contain no-repeat;
  mask: url("img/simbolo.png") center / contain no-repeat;
}
.pie .pie__nombre {
  font-family: var(--titulos);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--hoja);
}
.pie .pie__legal { margin-top: 8px; font-size: 0.875rem; opacity: 0.8; }
.pie__app {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: var(--hoja);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(209, 223, 164, 0.5);
}
.pie__app:hover { text-decoration-color: var(--hoja); }
.pie__app svg { width: 1.15em; height: 1.15em; }
.pie :focus-visible { outline-color: var(--hoja); }

/* Botón flotante de WhatsApp (solo celular) */
.flotante {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  box-shadow: 0 6px 18px rgba(21, 74, 66, 0.35);
}
.flotante svg { width: 28px; height: 28px; }

/* Tableta */
@media (max-width: 1100px) {
  .equipo__grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
  .tarifas__fila { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1020px) {
  .portada__fila { gap: 48px; }
  .servicios__fila { grid-template-columns: minmax(0, 1fr); }
  .servicios__fila h2 { max-width: none; }
}

/* Celular */
@media (max-width: 760px) {
  :root { --margen: 16px; --alto-cabecera: 64px; }
  body { font-size: 1.0625rem; }
  .cabecera__fila { gap: 12px; justify-content: space-between; }
  .cabecera__nav { display: none; }
  .cabecera__logo img { height: 38px; }
  .boton--chico { min-height: 40px; padding: 0 0.95em; font-size: 0.9rem; gap: 0.45em; }

  .portada { padding-block: 36px 72px; }
  .portada__fila { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .portada__bajada { margin-top: 20px; }
  .acciones { margin-top: 30px; }
  .acciones .boton { width: 100%; }
  .portada__imagen { justify-self: end; max-width: calc(100% - 22px); }

  .servicios { padding-block: 8px 80px; }
  .servicios__fila { gap: 28px; }
  .servicio { padding-block: 26px; }

  .enfoque { padding-block: 72px 140px; }
  .enfoque::after { width: 300px; right: -40px; bottom: -70px; }

  .equipo { padding-block: 80px; }
  .equipo__grilla { grid-template-columns: minmax(0, 1fr); gap: 64px; margin-top: 40px; }
  .persona .arco { max-width: 400px; }
  .persona__acciones .boton { width: 100%; max-width: 400px; min-height: 50px; }

  .tarifas { padding-block: 80px; }
  .tarifas__intro { font-size: 1.05rem; }
  .tarifas__fila { margin-top: 36px; gap: 52px; }
  .tabla-precios th, .tabla-precios td { padding: 12px 6px; }
  .tabla-precios thead th { font-size: 0.82rem; }
  .tabla-precios tbody th { font-size: 0.95rem; }
  .tabla-precios tbody td { font-size: 0.98rem; }

  .visita { padding-block: 80px; }
  .visita__fila { grid-template-columns: minmax(0, 1fr); gap: 44px; }

  .pie { padding-block: 40px 104px; }
  .pie__fila { flex-wrap: wrap; align-items: flex-start; gap: 20px; }
  .pie__simbolo { width: 52px; }
  .pie__texto { flex: 1 1 200px; }
  .pie__app { margin-left: 0; flex-basis: 100%; }

  .flotante { display: flex; }
}

@media (max-width: 370px) {
  .cabecera__logo img { height: 32px; }
  .boton--chico svg { display: none; }
}

@media print {
  .cabecera, .flotante, .enfoque::after { display: none; }
}
