/* ===========================================================
   Clynia Reviews
   Look & feel heredado del design system de Clynia ("Clínica serena").
   Página limpia, a la espera de reseñas reales. Sin sistema de
   estrellas ni tarjetas de reseña: se añadirán cuando haya datos
   reales del portal y se decida el formato de presentación.
   =========================================================== */

:root {
  /* Marca (verde salvia) */
  --sage: #437066;
  --sage-700: #335a51;
  --sage-deep: #2c4a43;
  --sage-tint: #e9f1ec;
  --mist: #eef3f0;
  --tint: rgba(67, 112, 102, .09);

  /* Superficies y tinta */
  --canvas: #f6f8f6;
  --surface: #ffffff;
  --surface-2: #fbfcfb;
  --ink: #16201c;
  --ink-soft: #57625c;
  --muted: #6e7771;
  --line: #e7ece8;
  --line-soft: #f0f3f0;

  /* Forma */
  --r-pill: 999px;
  --r-control: 13px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(22, 32, 28, .05);
  --shadow-2: 0 1px 2px rgba(22, 32, 28, .05), 0 12px 30px rgba(22, 32, 28, .07);

  /* Tipografía */
  --serif: "Lora", Georgia, serif;
  --sans: "Raleway", system-ui, sans-serif;

  --maxw: 1080px;
  --pad: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--sage-700);
  padding: 10px 16px;
  border-radius: var(--r-control);
  z-index: 50;
}
.skip-link:focus { left: 12px; top: 12px; outline: 2px solid var(--sage); }

/* ---------- Header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.brand img { height: 26px; width: auto; }
.head-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--sage-700);
  transition: color .2s var(--ease);
}
.head-link:hover { color: var(--sage-deep); }

main.wrap { padding-bottom: 64px; }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 28px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
}
.hero__lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}

/* ---------- Estado a la espera de reseñas ---------- */
.reviews-empty {
  margin-top: 24px;
  padding: 48px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.reviews-empty h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.reviews-empty p {
  margin: 0 auto 22px;
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ---------- Transparencia ---------- */
.info {
  margin-top: 44px;
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.info__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--sage-deep);
}
.info__text {
  margin: 0;
  max-width: none;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; }
.faq__title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--sage); outline-offset: -2px; }
.faq__item p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ---------- CTA ---------- */
.cta {
  margin-top: 48px;
  padding: 40px 28px;
  text-align: center;
  background: var(--sage-tint);
  border-radius: var(--r-lg);
}
.cta__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--sage-deep);
}
.cta__text { margin: 8px 0 20px; color: var(--ink-soft); font-size: 15.5px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn--primary {
  background: linear-gradient(180deg, #4a786d, var(--sage) 55%, var(--sage-700));
  color: #fff;
  box-shadow: 0 8px 20px rgba(67, 112, 102, .28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(67, 112, 102, .34); }
.btn--primary:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-foot {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 28px;
}
.site-foot__legal {
  margin: 0 0 10px;
  max-width: 80ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: justify;
  hyphens: auto;
}
.site-foot__links { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.site-foot__links a { color: var(--sage-700); font-weight: 600; }
.site-foot__links a:hover { color: var(--sage-deep); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
