/* ===== footer ===== */
/* FOOTER (shared by all pages) */
footer {
  /* Un solo color (= azul marino + la antigua capa rgba(44,125,160,.7)), para que la ola encaje sin costura */
  background-color: #2C6699;
  color: var(--white, #ffffff);
  text-align: center;
  padding: 20px;
  position: relative;
  margin-top: 60px;
}
/* Ola en el borde superior: se mete 2px dentro del footer para que no se vea ninguna línea */
footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 2px); height: 26px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 50' preserveAspectRatio='none'%3E%3Cpath fill='%232C6699' d='M0 25 C200 0 400 0 600 25 S1000 50 1200 25 V50 H0Z'/%3E%3C/svg%3E") repeat-x 0 0 / 1200px 100%;
  animation: footer-ola 24s linear infinite;
}
@keyframes footer-ola { to { background-position: -1200px 0; } }
@media (prefers-reduced-motion: reduce) { footer::before { animation: none; } }
footer p { position: relative; z-index: 2; margin-bottom: 4px; }
footer a { color: var(--white, #ffffff); text-decoration: underline; }
.footer-item { white-space: nowrap; }
.footer-legal { font-size: 0.85em; opacity: 0.85; margin-top: 12px; }
.footer-credits { font-size: 0.75em; opacity: 0.75; margin-top: 6px; }

/* ===== header ===== */
/* HEADER (shared by all pages) */
header {
  background: var(--white, #ffffff);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent-color, #00A4E0);
  position: sticky;
  top: 0;
  z-index: 1000;
  line-height: 1.7;
}
header img { height: 60px; width: auto; display: block; }
nav a {
  position: relative;
  margin: 0 15px;
  text-decoration: none;
  color: var(--main-color, #2C2F88);
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover { color: var(--accent-color, #00A4E0); }
nav a[aria-current="page"] { color: var(--accent-color, #00A4E0); }
nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--accent-color, #00A4E0); }
.menu-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--main-color, #2C2F88); }
/* No blue tap/focus highlight on the ☰ after tapping; keyboard users still get the outline */
.menu-toggle { -webkit-tap-highlight-color: transparent; }
.menu-toggle:focus:not(:focus-visible) { outline: none; }
.menu { display: flex; gap: 20px; }
.menu-langs { display: none; }
.language-switcher-wrapper { position: relative; display: inline-block; }
#language-switcher {
  padding: 6px 36px 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--main-color, #2C2F88);
  background: var(--white, #ffffff);
  color: var(--main-color, #2C2F88);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 0.95rem;
}
#language-switcher:hover { border-color: var(--accent-color, #00A4E0); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
#language-switcher:focus { outline: none; border-color: var(--accent-color, #00A4E0); box-shadow: 0 0 0 2px rgba(0,164,224,0.3); }
.language-switcher-wrapper::after {
  content: '▾';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: var(--accent-color, #00A4E0);
}

.menu-under { display: none; }

/* Móvil: menú a pantalla completa que se abre en onda desde ☰ (la onda la genera menu.js) */
@media (max-width: 768px) {
  .menu-toggle { display: block; margin-left: auto; margin-right: 10px; position: relative; z-index: 1002; }
  .menu-toggle.is-open { color: #fff; }
  .menu {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1001;
    flex-direction: column;
    gap: 4px;
    padding: 80px 28px 28px;
    background: var(--main-color, #2C2F88);
    clip-path: circle(0 at 100% 0);
  }
  /* Lighter wave that opens just ahead of the menu (created and animated by menu.js) */
  .menu-under { display: block; position: fixed; inset: 0; z-index: 1000; background: #2A55A8; clip-path: circle(0 at 100% 0); }
  .menu a {
    margin: 0;
    padding: 8px 0;
    font-size: 22px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
  }
  .menu a[aria-current="page"] { color: #fff; text-decoration: underline; }
  .menu a[aria-current="page"]::after { display: none; }
  .menu.show a, .menu.show .menu-langs { opacity: 1; }
  .menu-langs { display: flex; gap: 8px; margin-top: auto; opacity: 0; transition: opacity 0.4s ease-in-out; }
  .menu-langs a { flex: 1; text-align: center; padding: 10px 0; font-size: 16px; border: 1px solid #fff; border-radius: 50px; }
  .menu-langs a[aria-current="page"] { background: #fff; color: var(--main-color, #2C2F88); text-decoration: none; }
  .language-switcher-wrapper { display: none; }
}

/* Entrada de los botones flotantes una vez por sesión del navegador (.fab-intro la pone el script del <head>).
   "backwards" suelta el transform al terminar para no romper el :hover. */
.fab-intro .call-float, .fab-intro .whatsapp-float { animation: fab-up .75s cubic-bezier(.34,1.56,.64,1) backwards; }
.fab-intro .whatsapp-float { animation-delay: .4s; }
.fab-intro .call-float { animation-delay: .55s; }
/* Escala en su sitio: un translate fuera de pantalla hace que el móvil aleje el zoom al cargar */
@keyframes fab-up { from { transform: scale(.3); opacity: 0; } }
/* Llamar sube desde detrás de Reservar: el desplazamiento es vertical y corto, no ensancha la página */
.fab-intro .call-float { animation-name: fab-rise; }
@keyframes fab-rise { from { transform: translateY(56px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fab-intro .call-float, .fab-intro .whatsapp-float { animation: none; }
}

/* ===== reviews widget ===== */
/* Google Reviews widget. Change the variables below to match your site. */
.gr-widget {
  --gr-bg: #ffffff;
  --gr-card: #f7f7f8;
  --gr-text: #1f1f1f;
  --gr-muted: #6b6b6b;
  --gr-star: #fbbc04;
  --gr-star-off: #d9d9d9;
  --gr-accent: #1a73e8;
  --gr-radius: 12px;
  font-family: inherit;
  color: var(--gr-text);
  background: var(--gr-bg);
  padding: 20px 0;
  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  .gr-widget.gr-auto-dark {
    --gr-bg: #121212; --gr-card: #1e1e1e; --gr-text: #eeeeee; --gr-muted: #a0a0a0; --gr-star-off: #444444; --gr-accent: #8ab4f8;
  }
}
.gr-widget *, .gr-widget *::before, .gr-widget *::after { box-sizing: border-box; }

.gr-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.gr-g { width: 40px; height: 40px; flex: none; }
.gr-summary { flex: 1; min-width: 180px; }
.gr-name { font-weight: 600; font-size: 1.1em; }
.gr-score { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gr-score strong { font-size: 1.2em; }
.gr-count { color: var(--gr-muted); font-size: .9em; }
.gr-btn {
  display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--gr-accent);
  color: #fff; text-decoration: none; font-size: .9em; font-weight: 500;
}
.gr-btn:hover { opacity: .9; }

.gr-stars { letter-spacing: 1px; white-space: nowrap; }
.gr-star { color: var(--gr-star-off); }
.gr-star.on { color: var(--gr-star); }

.gr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gr-card { background: var(--gr-card); border-radius: var(--gr-radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.gr-author { display: flex; align-items: center; gap: 10px; }
.gr-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.gr-initial { display: flex; align-items: center; justify-content: center; background: var(--gr-accent); color: #fff; font-weight: 600; }
.gr-author-name { font-weight: 600; }
.gr-author-name a { color: inherit; text-decoration: none; }
.gr-author-name a:hover { text-decoration: underline; }
.gr-date { color: var(--gr-muted); font-size: .85em; }
.gr-text {
  margin: 0; line-height: 1.5; font-size: .95em;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.gr-open .gr-text { -webkit-line-clamp: unset; display: block; }
.gr-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--gr-accent); cursor: pointer; font: inherit; font-size: .9em; }
.gr-error { color: var(--gr-muted); }

/* Phones: swipeable row of cards. */
@media (max-width: 600px) {
  .gr-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gr-card { flex: 0 0 85%; scroll-snap-align: start; }
}

/* ---- Optional styles: add one of these classes next to the widget ---- */

/* gr-carousel: white cards with shadow in one swipeable row (Elfsight-like). */
.gr-carousel { --gr-card: #ffffff; }
.gr-carousel .gr-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; }
.gr-carousel .gr-card { flex: 0 0 300px; scroll-snap-align: start; border: 1px solid #ececec; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.gr-track { position: relative; }
.gr-arrow { display: none; }
.gr-carousel .gr-arrow {
  display: flex; align-items: center; justify-content: center; position: absolute; top: 45%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--gr-accent); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); padding: 0 0 3px;
}
.gr-carousel .gr-track { padding: 0 46px; }
.gr-carousel .gr-list { scrollbar-width: none; }
.gr-carousel .gr-list::-webkit-scrollbar { display: none; }
.gr-carousel .gr-prev { left: 0; }
.gr-carousel .gr-next { right: 0; }
@media (max-width: 600px) {
  .gr-carousel .gr-card { flex-basis: 85%; }
  .gr-carousel .gr-arrow { display: none; }
  .gr-carousel .gr-track { padding: 0; }
}

/* gr-minimal: single column list, no card backgrounds. */
.gr-minimal .gr-list { display: block; max-width: 720px; }
.gr-minimal .gr-card { background: none; border-radius: 0; padding: 18px 0; border-bottom: 1px solid #e6e6e6; }
.gr-minimal .gr-card:last-child { border-bottom: 0; }
.gr-minimal .gr-btn { background: none; color: var(--gr-accent); border: 1px solid currentColor; }

/* gr-dark: dark section with gold accents. */
.gr-dark {
  --gr-bg: #15171c; --gr-card: #20232a; --gr-text: #f1f1f1; --gr-muted: #9aa0a6; --gr-star-off: #3c4048; --gr-accent: #d4a73c;
  padding: 24px; border-radius: var(--gr-radius);
}
.gr-dark .gr-btn { color: #15171c; }

/* gr-quotes: centred testimonial cards with a big quote mark, stars below the text. */
.gr-quotes { --gr-card: #ffffff; text-align: center; }
.gr-quotes .gr-header { justify-content: center; }
.gr-quotes .gr-summary { flex: none; min-width: 0; }
.gr-quotes .gr-score { justify-content: center; }
.gr-quotes .gr-card { border: 1px solid #ececec; align-items: center; padding-top: 10px; }
.gr-quotes .gr-card::before { order: -2; content: "\201C"; font-size: 3.5em; line-height: 1; color: var(--gr-accent); height: .55em; }
.gr-quotes .gr-text { order: -1; font-style: italic; }
.gr-quotes .gr-more { align-self: center; order: -1; }
.gr-quotes .gr-author { order: 1; flex-direction: column; gap: 4px; }

/* ===== reviews theme ===== */
/* Sport Massage Isabelle theme. Load after widget.css and add class="smi" to the widget.
   Colours and shapes copied from sportmassageisabelle.com (navy #2C2F88, cyan #00A4E0, gold #d4af37). */
.gr-widget.smi {
  --gr-bg: transparent;
  --gr-card: #ffffff;
  --gr-text: #333333;
  --gr-muted: #777777;
  --gr-accent: #00A4E0;
  --gr-radius: 18px;
  --smi-navy: #2C2F88;
  --smi-gold: #d4af37;
  font-family: 'Segoe UI', sans-serif;
}
.smi .gr-name { color: var(--smi-navy); }
.smi .gr-author-name { color: var(--smi-navy); }
.smi .gr-card { box-shadow: 0 8px 25px rgba(0,0,0,.08); transition: transform .3s ease, box-shadow .3s ease; }
.smi .gr-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,.12); }
.smi .gr-text { color: #555; line-height: 1.7; }
.smi .gr-more { font-weight: 600; }
.smi .gr-btn { background: var(--smi-navy); border-radius: 30px; padding: 12px 24px; font-weight: 700; transition: background .3s; }
.smi .gr-btn:hover { background: var(--gr-accent); opacity: 1; }
.smi .gr-initial { background: linear-gradient(to bottom right, var(--smi-navy), var(--gr-accent)); }
.smi.gr-carousel .gr-card { border: 0; }
/* Grid styles: 3 per row, a short last row is centred instead of left alone. */
@media (min-width: 601px) {
  .smi:not(.gr-carousel):not(.smi-big) .gr-list { display: flex; flex-wrap: wrap; justify-content: center; }
  .smi:not(.gr-carousel):not(.smi-big) .gr-card { flex: 0 1 calc((100% - 32px) / 3); }
}
.smi .gr-arrow { background: var(--smi-navy); }
.smi .gr-arrow:hover { background: var(--gr-accent); }

/* smi-gradient: blue band like the hero at the top of the site. */
.smi.smi-gradient {
  background: linear-gradient(to bottom right, var(--smi-navy), var(--gr-accent));
  padding: 32px 24px; border-radius: 18px;
}
.smi-gradient .gr-name, .smi-gradient .gr-score, .smi-gradient .gr-count { color: #fff; }
.smi-gradient .gr-star:not(.on) { color: rgba(255,255,255,.35); }
.smi-gradient .gr-card .gr-star:not(.on) { color: #d9d9d9; }
.smi-gradient .gr-btn { background: #fff; color: var(--smi-navy); }
.smi-gradient .gr-btn:hover { background: var(--gr-accent); color: #fff; }
.smi-gradient .gr-g { background: #fff; border-radius: 50%; padding: 6px; width: 44px; height: 44px; }
.smi-gradient .gr-arrow { background: #fff; color: var(--smi-navy); }

/* smi-signature: gold details like the "Ritual Signature" card. Use together with gr-quotes. */
.smi.smi-signature { --gr-accent: var(--smi-gold); --gr-star: var(--smi-gold); }
.smi-signature .gr-card { border: 2px solid var(--smi-gold); }
.smi-signature .gr-btn { background: var(--smi-gold); }
.smi-signature .gr-btn:hover { background: var(--smi-navy); }
.smi-signature .gr-more { color: var(--smi-navy); }
.smi-signature .gr-initial { background: var(--smi-gold); }

/* smi-big: large 5.0 score on the left, reviews on the right (desktop). */
@media (min-width: 900px) {
  .smi.smi-big { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
  .smi-big .gr-header { flex-direction: column; align-items: flex-start; position: sticky; top: 110px; margin: 0; }
  .smi-big .gr-score { flex-direction: column; align-items: flex-start; gap: 2px; }
  .smi-big .gr-score strong { font-size: 3.4em; line-height: 1; color: var(--smi-navy); }
  .smi-big .gr-score .gr-stars { font-size: 1.4em; }
  .smi-big .gr-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===== links ===== */
/* LINKS (shared by all pages) */
/* Color por defecto con especificidad 0: cualquier regla "a {}" de la página manda sobre esta */
:where(a) { color: var(--main-color, #2C2F88); }

/* Enlaces de texto: línea tenue siempre visible y otra sólida que crece al pasar el ratón.
   Los botones llevan clase, por eso :not([class]) los deja fuera. */
:where(p, li, label, footer, .info-item) a:not([class]) {
  text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat,
    linear-gradient(rgba(127, 127, 127, .45), rgba(127, 127, 127, .45)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 1px;
  transition: background-size .35s ease, color .3s ease;
}
:where(p, li, label, footer, .info-item) a:not([class]):hover,
:where(p, li, label, footer, .info-item) a:not([class]):focus-visible {
  text-decoration: none;
  background-size: 100% 1px, 100% 1px;
}

/* "Más sobre…" en tratamientos */
.more-link a { color: var(--main-color, #2C2F88); font-weight: 600; }
.more-link a:hover { color: var(--accent-color, #00A4E0); }

@media (prefers-reduced-motion: reduce) {
  :where(p, li, label, footer, .info-item) a:not([class]) { transition: none; }
}

/* ===== móvil: Llamar encima de Reservar, a la derecha ===== */
@media (max-width: 768px) and (pointer: coarse) {
  .call-float { bottom: 76px; right: 12px; padding: 12px 18px; }
  .whatsapp-float { right: 12px; padding: 12px 18px; }
  footer { padding-bottom: 140px; }
}

/* Author + last-updated line under service/price page H1s */
.page-meta { font-size: 0.9rem; opacity: 0.75; margin-top: 8px; }

/* ===== pantallas táctiles: enlaces sueltos y botones de al menos 44 px de alto ===== */
@media (pointer: coarse) {
  a.service-link, .more-link a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Pie: el subrayado (fondo) se queda en el texto aunque el enlace crezca con padding */
  .footer-item a, .footer-legal a { display: inline-block; padding: 13px 0; background-origin: content-box; background-clip: content-box; }
  .footer-legal a { padding: 14px 0; }
  footer p { margin-bottom: 0; }
  .menu-toggle { min-width: 44px; min-height: 44px; }
  .call-float, .whatsapp-float { min-height: 44px; box-sizing: border-box; }
  .more-link a { display: inline-block; padding: 12px 0; }
}
