/*
Theme Name: WeHelp Child
Template: generatepress
Author: WeHelp
Description: Theme child de WeHelp — marketplace de canguros y language buddies. Construido a medida sobre GeneratePress + ACF + Amelia.
Version: 1.0.0
*/

:root {
  color-scheme: light;
  --wh-primary: oklch(0.62 0.19 30);
  --wh-primary-ink: oklch(0.99 0.01 30);
  --wh-secondary: oklch(0.88 0.13 85);
  --wh-secondary-ink: oklch(0.3 0.06 60);
  --wh-accent: oklch(0.42 0.09 200);
  --wh-accent-ink: oklch(0.99 0.01 195);
  --wh-accent-soft: oklch(0.93 0.045 195);
  --wh-warm-soft: oklch(0.93 0.05 40);
  --wh-gold-soft: oklch(0.94 0.06 85);
  --wh-logo-pink: #F16D9C;
  --wh-logo-blue: #33B4D8;
  --wh-bg: oklch(0.995 0.008 235);
  --wh-bg-soft: oklch(0.975 0.012 235);
  --wh-ink: oklch(0.26 0.045 285);
  --wh-ink-soft: oklch(0.46 0.04 285);
  --wh-ink-muted: oklch(0.55 0.03 285);
  --wh-line: oklch(0.9 0.02 85);
  --wh-navy: oklch(0.28 0.05 285);
  --wh-navy-card: oklch(0.33 0.05 285);
  --wh-star: oklch(0.78 0.14 75);
  --wh-radius-sm: 12px;
  --wh-radius-md: 20px;
  --wh-radius-lg: 28px;
  --wh-radius-xl: 44px;
  --wh-radius-pill: 99px;
  --wh-shadow-soft: 0 10px 22px -18px oklch(0.3 0.05 285 / 0.55);
  --wh-shadow-med: 0 20px 44px -30px oklch(0.3 0.05 285 / 0.6);
  --wh-shadow-high: 0 30px 60px -34px oklch(0.3 0.05 285 / 0.55);
  --wh-ease: cubic-bezier(.2,.8,.2,1);
  --wh-font-heading: 'Baloo 2', system-ui, sans-serif;
  --wh-font-body: 'Figtree', system-ui, sans-serif;
}

@keyframes whFloat { 0%,100% { transform:translate(0,0) scale(1); } 50% { transform:translate(18px,-22px) scale(1.06); } }
@keyframes whCloud { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-15px); } }
/* Badges quietos en toda la web (antes "flotaban") — se dejan los @keyframes definidos porque
   algún elemento los referencia inline con animation:whBob(2)..., pero sin movimiento real. */
@keyframes whBob { 0%,100% { transform:translateY(0) rotate(0); } }
@keyframes whBob2 { 0%,100% { transform:translateY(0) rotate(0); } }
@keyframes whPulse { 0% { transform:scale(1); opacity:0.55; } 70% { transform:scale(2.2); opacity:0; } 100% { transform:scale(2.2); opacity:0; } }
@keyframes whBlink { 0%,100% { opacity:1; } 50% { opacity:0.25; } }
@keyframes whDraw { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes whWiggle { 0%,100% { transform:rotate(-1.6deg); } 50% { transform:rotate(1.6deg); } }
@keyframes whMarquee { from { transform:translate3d(0,0,0); } to { transform:translate3d(-50%,0,0); } }
@keyframes whDrift { from { transform:translateX(-35%); } to { transform:translateX(135%); } }
@keyframes whSpin { from { transform:rotate(0deg);} to { transform:rotate(360deg);} }

* { box-sizing: border-box; }
button { appearance: none; -webkit-appearance: none; font: inherit; background: none; color: inherit; }
html { scroll-behavior: smooth; }
body {
  background: var(--wh-bg);
  color: var(--wh-ink);
  font-family: var(--wh-font-body);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}
a { color: var(--wh-primary); text-decoration: none; transition: color .2s; }
a:hover { color: oklch(0.48 0.15 30); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--wh-font-heading);
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 0 0 .5em;
  color: var(--wh-ink);
}
.wh-container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 56px); }
.wh-section { padding: clamp(30px, 4vw, 66px) 0; }

/* ---------- Header ---------- */
.wh-header { position: sticky; top: 0; z-index: 60; padding: 12px clamp(14px, 3vw, 44px); }
.wh-header-bar {
  display: flex; align-items: center; gap: clamp(6px, 1vw, 16px); flex-wrap: wrap;
  padding: 10px 10px 10px 16px;
  background: oklch(1 0 0 / 0.86); backdrop-filter: blur(16px);
  border: 1.5px solid var(--wh-line); border-radius: 26px;
  box-shadow: 0 14px 34px -26px oklch(0.3 0.05 285 / 0.5);
}.wh-logo img { display: block; height: 42px; width: auto; transition: transform .35s var(--wh-ease); }
.wh-logo:hover img { transform: scale(1.06) rotate(-2deg); }
.wh-nav { display: flex; align-items: center; gap: 0; flex: 1 1 auto; font-size: 14px; font-weight: 600; white-space: nowrap; }
.wh-nav a { color: oklch(0.34 0.045 285); padding: 8px 10px; border-radius: var(--wh-radius-pill); transition: background .25s, color .25s; }
.wh-nav a:hover { background: oklch(0.93 0.035 85); color: oklch(0.2 0.04 285); }
.wh-header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap; white-space: nowrap; }

.wh-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--wh-font-heading); font-weight: 700; border: 0; border-radius: var(--wh-radius-pill); cursor: pointer; transition: transform .3s var(--wh-ease), box-shadow .3s, background .25s; text-align: center; }
.wh-btn:hover { transform: translateY(-3px) scale(1.02); }
.wh-btn-lg { font-size: 18px; padding: 13px 24px; }
.wh-btn-md { font-size: 14px; padding: 9px 14px; }
.wh-btn-primary { background: var(--wh-primary); color: var(--wh-primary-ink); box-shadow: 0 12px 26px -14px oklch(0.62 0.19 30 / 0.6); }
.wh-btn-primary:hover, .wh-btn-primary:active { background: var(--wh-primary); color: var(--wh-primary-ink); box-shadow: 0 16px 30px -14px oklch(0.62 0.19 30 / 0.75); }
.wh-btn-secondary { background: var(--wh-secondary); color: var(--wh-secondary-ink); }
.wh-btn-secondary:hover, .wh-btn-secondary:active { background: var(--wh-secondary); color: var(--wh-secondary-ink); box-shadow: 0 12px 26px -14px oklch(0.75 0.14 70 / 0.9); }
.wh-btn-accent { background: var(--wh-accent); color: var(--wh-accent-ink); }
.wh-btn-accent:hover, .wh-btn-accent:active { background: var(--wh-accent); color: var(--wh-accent-ink); box-shadow: 0 12px 26px -14px oklch(0.42 0.09 200 / 0.8); }
.wh-btn-ghost { background: none; color: var(--wh-ink); border: 1.5px solid var(--wh-line); }
.wh-btn-ghost:hover { background: none; color: var(--wh-ink); border-color: var(--wh-primary); }
.wh-btn-ghost:active { background: none; color: var(--wh-ink); }

.wh-search-btn { font-family: var(--wh-font-heading); font-weight: 700; font-size: 16px; color: var(--wh-primary-ink); background: var(--wh-primary); border: 0; border-radius: 13px; padding: 6px 20px; cursor: pointer; transition: transform .3s var(--wh-ease), box-shadow .3s; }
.wh-search-btn:hover { background: var(--wh-primary); color: var(--wh-primary-ink); transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 30px -14px oklch(0.62 0.19 30 / .75); }

/* Buscador de los listados (Canguros/Language Buddy) — el mockup usa el acento teal, no el rojo del hero */
.wh-search-btn-accent { font-family: var(--wh-font-heading); font-weight: 700; font-size: 18px; color: var(--wh-accent-ink); background: var(--wh-accent); border: 0; border-radius: 18px; padding: 13px 24px; cursor: pointer; transition: transform .3s var(--wh-ease), box-shadow .3s; }
.wh-search-btn-accent:hover { background: var(--wh-accent); color: var(--wh-accent-ink); transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 30px -14px oklch(0.42 0.09 200 / .75); }

.wh-cta-buddy { background: oklch(0.94 0.035 85); }
.wh-cta-buddy:hover { background: oklch(0.9 0.06 85); }
.wh-cta-sitter { background: oklch(0.93 0.035 195); }
.wh-cta-sitter:hover { background: oklch(0.89 0.055 195); }

.wh-num-badge { transition: transform .45s cubic-bezier(.2,.9,.2,1); }

.wh-progress-track { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 80; background: transparent; pointer-events: none; }
.wh-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, oklch(0.68 0.17 30), oklch(0.85 0.14 85), oklch(0.64 0.11 195)); border-radius: 0 99px 99px 0; transition: width .08s linear; }

/* Marco de foto con el mismo degradado que la barra de progreso — borde fino de color */
@property --wh-frame-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.wh-gradient-frame { padding: 3px; background: conic-gradient(from var(--wh-frame-angle), oklch(0.68 0.17 30), oklch(0.85 0.14 85), oklch(0.64 0.11 195), oklch(0.68 0.17 30)); animation: whFrameRotate 6s linear infinite; }
@keyframes whFrameRotate { to { --wh-frame-angle: 360deg; } }

/* Bandera en círculo completo, recortada con object-fit:cover (foto real, no emoji) */
.wh-flag-circle { display: block; border-radius: 99px; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--wh-line); flex: 0 0 auto; }
/* Idioma nativo (siempre el primero del array 'idiomas', ver assets/js/main.js) — mismo anillo
   blanco de separación, pero el borde exterior en dorado, más grueso, con un brillo suave
   alrededor y (en las tarjetas) un tamaño algo mayor que el resto para que destaque de verdad. */
.wh-flag-circle.wh-flag-native { box-shadow: 0 0 0 3px oklch(0.72 0.13 200), 0 0 10px 2px oklch(0.72 0.13 200 / .55); }

.wh-mobile-header { display: none; position: sticky; top: 0; z-index: 60; padding: 10px 14px; }
.wh-burger { display: flex; flex-direction: column; justify-content: center; gap: 4.5px; width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 16px; background: var(--wh-accent); cursor: pointer; }
.wh-burger span { display: block; height: 2.5px; border-radius: 9px; background: var(--wh-accent-ink); }

.wh-mobile-panel { position: fixed; top: 0; right: 0; height: 100vh; z-index: 90; width: min(86%, 330px); display: flex; flex-direction: column; gap: 18px; padding: 18px 20px 26px; background: var(--wh-bg); box-shadow: -24px 0 60px -30px oklch(0.26 0.045 285 / 0.6); transform: translateX(106%); transition: transform .42s var(--wh-ease); overflow-y: auto; }
.wh-mobile-panel.is-open { transform: translateX(0); }
.wh-mobile-overlay { position: fixed; inset: 0; z-index: 88; background: oklch(0.26 0.045 285 / 0.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .38s, visibility .38s; }
.wh-mobile-overlay.is-open { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
  .wh-nav, .wh-header-actions { display: none; }
  .wh-mobile-header { display: block; }
  .wh-header { display: none; }
}
@media (min-width: 901px) {
  .wh-mobile-header { display: none; }
}

/* Hero de la home: columna de texto con ancho fijo (no "auto-fit", que en pantallas muy anchas
   crea columnas fantasma vacías y estrecha el texto) — mismo padding lateral que el resto de la
   web (sin max-width ni margin:auto propios, para no desalinearse del margen general del sitio).
   Por debajo de 1080px (tablet incluida) pasa a una sola columna, con la imagen arriba. */
.wh-hero-grid {
  grid-template-columns: minmax(0,800px) 1fr;
  grid-template-areas: "chiph1 media" "promo promo";
}
[data-hero-media] { max-width: 620px; margin-left: auto; }
.wh-hero-search { display: flex; }
@media (max-width: 1080px) {
  /* Móvil/tablet: título principal (con sus botones) y luego el título de "también por
     videollamada" — la imagen queda arriba de todo. El buscador solo se muestra en desktop. */
  .wh-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "chiph1" "promo";
  }
  [data-hero-media] { margin-bottom: 8px; max-width: 100%; margin-left: 0; }
  .wh-hero-search { display: none; }
}
@media (max-width: 680px) {
  /* En móvil el bloque "también por videollamada" pierde su tarjeta blanca — queda como texto
     suelto, igual que el título de arriba. */
  .wh-hero-promo { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
}
/* 2px menos que el valor inline, pero solo en desktop (>1080px) — en tablet/móvil se queda el
   tamaño original del inline style. */
@media (min-width: 1081px) {
  .wh-hero-online-title { font-size: clamp(28px,3.85vw,46px) !important; }
}

/* ---------- Buttons chips ---------- */
.wh-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; padding: 7px 14px; border-radius: var(--wh-radius-pill); }
.wh-chip-warm { color: oklch(0.42 0.13 30); background: var(--wh-warm-soft); }
.wh-chip-accent { color: oklch(0.36 0.07 210); background: var(--wh-accent-soft); }
.wh-dot { position: relative; display: flex; }
.wh-dot span:first-child { width: 8px; height: 8px; border-radius: 99px; background: var(--wh-primary); }
.wh-dot span:last-child { position: absolute; inset: 0; border-radius: 99px; background: var(--wh-primary); animation: whPulse 2.4s ease-out infinite; }
.wh-dot-light span:first-child, .wh-dot-light span:last-child { background: #fff; }

.wh-close-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid var(--wh-line); border-radius: 14px; background: #fff; color: var(--wh-ink); font-size: 19px; line-height: 1; cursor: pointer; transition: border-color .2s; }
.wh-close-btn:hover, .wh-close-btn:active, .wh-close-btn:focus { background: #fff; color: var(--wh-ink); border-color: var(--wh-primary); }

.wh-social-menu-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 99px; background: var(--wh-warm-soft); color: oklch(0.3 0.06 60); transition: transform .3s var(--wh-ease); }
.wh-social-menu-icon:hover { transform: translateY(-3px); color: oklch(0.3 0.06 60); }

/* ---------- Cards ---------- */
.wh-card {
  display: flex; flex-direction: column; color: inherit; background: oklch(1 0 0);
  border: 1.5px solid var(--wh-line); border-radius: 26px; overflow: hidden;
  box-shadow: var(--wh-shadow-soft); transition: transform .4s var(--wh-ease), box-shadow .4s;
}
.wh-card:hover { transform: translateY(-9px); box-shadow: 0 30px 50px -24px oklch(0.3 0.05 285 / 0.5); }
.wh-card-media { position: relative; flex: 0 0 auto; aspect-ratio: 1/1.02; overflow: hidden; background: var(--wh-warm-soft); display: flex; align-items: center; justify-content: center; }
.wh-card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--wh-ease); }
.wh-card:hover .wh-card-media > img { transform: scale(1.07); }
.wh-card-initials { position: relative; z-index: 1; font-family: var(--wh-font-heading); font-size: 38px; font-weight: 700; color: oklch(0.5 0.06 220); }

/* Placeholder "de nubes" cuando aún no hay foto de perfil subida */
.wh-media-placeholder { position: absolute; inset: 0; background: linear-gradient(160deg, oklch(0.96 0.02 235), oklch(0.9 0.035 235)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wh-media-placeholder img { position: absolute; opacity: .75; pointer-events: none; animation: whCloud 9s ease-in-out infinite; }
.wh-media-placeholder img:last-of-type { animation-direction: reverse; animation-duration: 12s; }
.wh-card-media > img.wh-badge-verified { position: absolute; inset: auto 8px auto auto; top: 8px; right: 8px; width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 3px 7px oklch(0.2 0 0 / .45)); transition: none; }
.wh-card:hover .wh-card-media > img.wh-badge-verified { transform: none; }

/* Botón de favorito (corazón) — tarjetas y single pages, solo visible a familias con sesión */
.wh-fav-btn { position: absolute; bottom: 8px; right: 8px; z-index: 3; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 99px; background: oklch(1 0 0 / .92); backdrop-filter: blur(6px); color: oklch(0.55 0.02 285); box-shadow: 0 4px 14px -6px oklch(0.2 0 0 / .35); cursor: pointer; transition: transform .25s var(--wh-ease), color .2s; }
.wh-fav-btn:hover { transform: scale(1.1); }
.wh-fav-btn.is-active { color: var(--wh-primary); }
.wh-fav-btn.is-active:active, .wh-fav-btn:active { transform: scale(.92); }
.wh-fav-btn-static { position: static; }
.wh-fav-icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
.wh-badge-lang { position: absolute; left: 9px; top: 9px; display: flex; align-items: center; gap: 6px; background: oklch(1 0 0 / .94); padding: 4px 10px 4px 5px; border-radius: 99px; box-shadow: 0 4px 12px -6px oklch(0.2 0 0 / .4); font-size: 12px; font-weight: 800; }
.wh-badge-lang img { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; }
.wh-card-flags { position: absolute; left: 9px; top: 9px; display: flex; align-items: center; }
.wh-card-body { flex: 1; display: flex; flex-direction: column; padding: 13px 14px 14px; }
.wh-card-name { font-family: var(--wh-font-heading); font-size: 17.5px; font-weight: 600; line-height: 1.2; }
.wh-card-city { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; color: var(--wh-ink-muted); }
.wh-card-city svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--wh-ink-muted); }
.wh-card-nationality { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--wh-ink-muted); }
.wh-card-nationality-flag { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.wh-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 11px; border-top: 1.5px dashed var(--wh-line); }
.wh-stars { font-size: 12.5px; letter-spacing: .5px; color: var(--wh-star); }
.wh-price-pill { font-family: var(--wh-font-heading); font-size: 15px; font-weight: 700; color: var(--wh-secondary-ink); background: var(--wh-secondary); padding: 3px 12px; border-radius: 99px; transition: transform .4s var(--wh-ease); }
.wh-card:hover .wh-price-pill { transform: scale(1.08) rotate(-3deg); }
.wh-price-pill.wh-price-accent { color: oklch(0.28 0.06 210); background: var(--wh-accent-soft); }

/* ---------- Marquee / rail ---------- */
.wh-rail { display: flex; gap: 16px; overflow-x: auto; padding: 6px clamp(18px,4vw,56px) 18px; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; }
.wh-rail::-webkit-scrollbar { display: none; }
.wh-rail[data-rail-auto], .wh-rail[data-rail-auto-mobile] { scroll-snap-type: none; scroll-behavior: auto; } /* el snap y el scroll suave frenan el scrollLeft del auto-scroll frame a frame (Safari) */
.wh-rail .wh-card { flex: 0 0 clamp(208px, 21vw, 248px); scroll-snap-align: start; }
.wh-marquee-track { display: flex; width: max-content; }
.wh-marquee-anim { animation: whMarquee 34s linear infinite; }

/* ---------- Detalles de motion del preview ---------- */
.wh-chip-wiggle { animation: none; } /* eyebrows: quietos en toda la web, ver petición del negocio */
.wh-blink-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--wh-primary); animation: whBlink 1.6s ease-in-out infinite; }
.wh-underline-draw { position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.24em; background: var(--wh-secondary); border-radius: 99px; z-index: -1; transform-origin: left; animation: whDraw .9s .5s var(--wh-ease) both; }

/* ---------- Reveal ---------- */
/* Sin animación de entrada/salida al hacer scroll — el contenido se ve directamente, a petición del negocio. */
[data-reveal] { opacity: 1; transform: none; transition: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Aviso "aún sin horario" en la ficha de reserva ---------- */
.wh-noschedule-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 440px; padding: 36px 28px; background: var(--wh-bg-soft); border: 1.5px dashed var(--wh-line); border-radius: 24px; }
.wh-noschedule-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--wh-accent-soft); border-radius: 50%; animation: whNoScheduleBob 2.6s ease-in-out infinite; }
.wh-noschedule-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--wh-ink-soft); }
@keyframes whNoScheduleBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(-4deg); } }

/* Estas van después de [data-reveal] a propósito: mismos elementos combinan ambas
   clases y el hover necesita su propia duración de transición, más corta. */
.wh-hover-lift { transition: transform .35s var(--wh-ease); }
.wh-hover-lift:hover { transform: translateY(-8px); }
.wh-hover-lift:hover .wh-num-badge { transform: rotate(-8deg) scale(1.12); }
.wh-hover-lift.wh-card-navy { background: var(--wh-navy-card); transition: transform .4s var(--wh-ease), background .4s; }
.wh-hover-lift.wh-card-navy:hover { background: oklch(0.37 0.055 285); }
.wh-hover-slide { transition: transform .3s var(--wh-ease); }
.wh-hover-slide:hover { transform: translateX(6px); }

/* ---------- Clouds / blobs ---------- */
.wh-cloud { position: absolute; z-index: 0; pointer-events: none; animation: whCloud 10s ease-in-out infinite; }
.wh-blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(2px); pointer-events: none; animation: whFloat 18s ease-in-out infinite; }

/* ---------- Footer ---------- */
.wh-footer { position: relative; overflow: hidden; background: var(--wh-navy); color: oklch(0.93 0.02 85); border-radius: 44px 44px 0 0; padding: clamp(34px,4vw,60px) clamp(18px,4vw,56px) 26px; }
.wh-footer a { color: oklch(0.84 0.02 85); }
.wh-footer a:hover { color: var(--wh-accent); }
.wh-footer-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.wh-footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 20px; }
.wh-footer-logo img { height: 68px; }
.wh-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 15px; font-weight: 500; }
.wh-social { display: flex; gap: 12px; }
.wh-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 99px; background: var(--wh-navy-card); color: oklch(0.93 0.02 85); transition: transform .3s var(--wh-ease), background .3s; }
.wh-social a:hover { transform: translateY(-3px); background: var(--wh-accent); color: oklch(0.93 0.02 85); }

/* ---------- WhatsApp float ---------- */
.wh-whatsapp-fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 10px; font-family: var(--wh-font-heading); font-size: 17px; font-weight: 700; color: var(--wh-primary-ink); background: var(--wh-primary); padding: 13px 22px; border-radius: 99px; box-shadow: 0 18px 36px -16px oklch(0.62 0.19 30 / .75); transition: transform .3s var(--wh-ease); }
.wh-whatsapp-fab:hover { color: var(--wh-primary-ink); transform: translateY(-4px) scale(1.04); }

/* ---------- Forms (registro / login / verificación) ---------- */
.wh-form-shell { max-width: 640px; margin: 0 auto; }
.wh-form-card { background: #fff; border: 1.5px solid var(--wh-line); border-radius: var(--wh-radius-lg); padding: clamp(24px,3vw,40px); box-shadow: var(--wh-shadow-med); }
.wh-field { margin-bottom: 18px; }
.wh-field label { display: block; font-size: 13px; font-weight: 700; color: var(--wh-ink); margin-bottom: 6px; }
.wh-field .wh-hint { font-size: 12.5px; color: var(--wh-ink-muted); margin-top: 4px; }
.wh-hint-ok { color: oklch(0.45 0.12 150); font-weight: 600; }
.wh-hint-error { color: oklch(0.42 0.13 30); font-weight: 600; }
.wh-field input[type="text"], .wh-field input[type="email"], .wh-field input[type="password"], .wh-field input[type="number"], .wh-field input[type="tel"], .wh-field input[type="date"], .wh-field select, .wh-field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 16px; border: 1.5px solid var(--wh-line); border-radius: var(--wh-radius-sm); background: var(--wh-bg-soft); color: var(--wh-ink); transition: border-color .2s;
}
.wh-field input:focus, .wh-field select:focus, .wh-field textarea:focus { outline: none; border-color: var(--wh-accent); }
.wh-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; }
.wh-check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-check-chip { position: relative; }
.wh-check-chip input { position: absolute; opacity: 0; }
.wh-check-chip label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--wh-line); background: var(--wh-bg-soft); cursor: pointer; transition: all .2s; }
.wh-check-chip input:checked + label { background: var(--wh-accent-soft); border-color: var(--wh-accent); color: oklch(0.28 0.06 210); }

/* Pregunta Sí/No — dos radios reales, nunca un solo checkbox con una única opción posible */
.wh-yesno { display: flex; gap: 18px; padding-top: 4px; }
.wh-yesno label { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--wh-ink-soft); cursor: pointer; }
.wh-yesno input[type="radio"] { width: 17px; height: 17px; accent-color: var(--wh-accent); cursor: pointer; }

/* Checkbox normal + texto al lado (p.ej. aceptar términos) — NO es un chip/botón */
.wh-check-plain { display: flex; align-items: flex-start; gap: 10px; }
.wh-check-plain input[type="checkbox"] { position: relative; flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--wh-accent); cursor: pointer; }
.wh-check-plain label { font-size: 14.5px; line-height: 1.55; color: var(--wh-ink-soft); cursor: pointer; }
.wh-check-plain label a { color: var(--wh-accent); text-decoration: underline; }
.wh-photo-upload { display: flex; align-items: center; gap: 16px; }
.wh-photo-preview { width: 88px; height: 88px; border-radius: 20px; overflow: hidden; background: var(--wh-warm-soft); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1.5px solid var(--wh-line); }
.wh-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: none; }
.wh-photo-preview img.has-src { display: block; }
.wh-photo-placeholder { font-size: 30px; opacity: .4; }
.wh-photo-upload input[type="file"] { display: none; }
.wh-photo-upload-label { display: inline-flex; }

.wh-form-error { background: oklch(0.95 0.05 30); color: oklch(0.42 0.13 30); border-radius: var(--wh-radius-sm); padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.wh-form-success { background: var(--wh-accent-soft); color: oklch(0.28 0.06 210); border-radius: var(--wh-radius-sm); padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }

/* FAQ (página Contacto) — botón + panel animado con grid-template-rows (sin <details>, se anima al abrir Y cerrar) */
.wh-faq { background: #fff; border-left: 4px solid; border-radius: 4px 18px 18px 4px; overflow: hidden; box-shadow: var(--wh-shadow-soft); }
.wh-faq-summary { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border: 0; background: transparent; cursor: pointer; text-align: left; font-family: var(--wh-font-heading); font-weight: 700; color: var(--wh-ink); transition: background .2s; }
.wh-faq-summary:hover, .wh-faq-summary:focus { background: var(--wh-bg-soft); color: var(--wh-ink); }
.wh-faq-icon { flex: 0 0 auto; transition: transform .3s var(--wh-ease); font-size: 18px; }
.wh-faq.is-open .wh-faq-icon { transform: rotate(45deg); }
.wh-faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--wh-ease); }
.wh-faq.is-open .wh-faq-panel { grid-template-rows: 1fr; }
.wh-faq-panel > .wh-faq-body { overflow: hidden; min-height: 0; }
.wh-faq-body-inner { padding: 0 22px 20px; }
.wh-file-drop { border: 1.5px dashed var(--wh-line); border-radius: var(--wh-radius-md); padding: 20px; text-align: center; background: var(--wh-bg-soft); }
.wh-file-drop.has-file { border-color: var(--wh-accent); background: var(--wh-accent-soft); }
.wh-verify-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; }
.wh-verify-status.pending { color: oklch(0.42 0.13 30); background: var(--wh-warm-soft); }
.wh-verify-status.verified { color: var(--wh-accent); background: var(--wh-accent-soft); }
.wh-verify-status.rejected { color: oklch(0.5 0.17 30); background: oklch(0.95 0.05 30); }
.wh-verify-status.finished { color: var(--wh-ink-muted); background: var(--wh-bg-soft); }

/* ---------- Dashboard (panel canguro/buddy) ---------- */
.wh-dash { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.wh-dash-nav { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1.5px solid var(--wh-line); border-radius: var(--wh-radius-lg); padding: 18px; box-shadow: var(--wh-shadow-soft); }
.wh-dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; font-weight: 700; font-size: 14.5px; color: var(--wh-ink); }
.wh-dash-nav a:hover, .wh-dash-nav a.is-active { background: var(--wh-accent-soft); color: oklch(0.28 0.06 210); }
.wh-dash-panel { background: #fff; border: 1.5px solid var(--wh-line); border-radius: var(--wh-radius-lg); padding: clamp(20px,3vw,32px); box-shadow: var(--wh-shadow-soft); }

/* Select del menú del panel — solo se ve en móvil (ver regla @media más abajo), sustituye a la
   barra horizontal deslizable por dedo. Flecha propia dibujada con SVG para poder quitar la
   nativa del navegador y que el diseño no dependa del sistema operativo. */
.wh-dash-select-wrap { display: none; }
.wh-dash-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  font: inherit; font-weight: 700; font-size: 15px; color: var(--wh-ink);
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23444" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 16px center;
  border: 1.5px solid var(--wh-line); border-radius: var(--wh-radius-lg);
  padding: 14px 42px 14px 16px; box-shadow: var(--wh-shadow-soft);
}
.wh-dash-select:focus { outline: none; border-color: var(--wh-accent); }

@media (max-width: 860px) {
  .wh-dash { grid-template-columns: 1fr; }
  .wh-dash-nav { display: none; }
  .wh-dash-select-wrap { display: block; margin-bottom: 18px; }
}

/* ---------- Listado de canguros / language buddy (sidebar de filtros + grid) ---------- */
/* Un solo breakpoint (981px) para todo: por debajo, el aside está oculto (display:none),
   así que la columna de 300/340px no debe reservarse o el grid le roba el ancho al contenido. */
.wh-listing-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.wh-listing-layout > aside { position: static; }
.wh-listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 20px; }

.wh-listing-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .wh-listing-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .wh-listing-grid-3 { grid-template-columns: 1fr; } }

.wh-listing-filters-aside { display: none; position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow-y: auto; flex-direction: column; gap: 20px; padding: 22px 22px 40px; background: #fff; border: 1.5px solid var(--wh-line); border-radius: 24px; box-shadow: var(--wh-shadow-med); }
.wh-listing-filters-aside form { display: flex; flex-direction: column; gap: 20px; }
.wh-filtros-inline-toggle { display: none; }
@media (min-width: 981px) {
  .wh-listing-layout { grid-template-columns: 340px 1fr; }
  .wh-listing-layout > aside { position: sticky; }
  .wh-listing-filters-aside { display: flex; }
}
@media (max-width: 980px) { .wh-filtros-inline-toggle { display: flex; } }

.wh-filter-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--wh-ink-muted); margin-bottom: 10px; }
.wh-filter-select { width: 100%; font: inherit; font-size: 15px; font-weight: 500; color: var(--wh-ink); background: var(--wh-bg-soft); border: 1.5px solid var(--wh-line); border-radius: 12px; padding: 9px 12px; }

.wh-chip-filter { display: inline-flex; cursor: pointer; }
.wh-chip-filter input { position: absolute; opacity: 0; pointer-events: none; }
.wh-chip-filter span { font-size: 14px; font-weight: 600; padding: 7px 15px; border-radius: 99px; border: 1.5px solid var(--wh-line); background: #fff; color: var(--wh-ink); transition: transform .2s, background .2s, border-color .2s, color .2s; }
.wh-chip-filter span:hover { transform: translateY(-2px); }
.wh-chip-filter input:checked + span { background: var(--wh-accent-soft); border-color: var(--wh-accent); color: oklch(0.28 0.06 210); }

.wh-toggle-filter { display: flex; cursor: pointer; }
.wh-toggle-filter input { position: absolute; opacity: 0; pointer-events: none; }
.wh-toggle-filter span { display: block; width: 100%; text-align: center; font-size: 14px; font-weight: 600; padding: 9px 0; border-radius: 12px; border: 1.5px solid var(--wh-line); background: #fff; color: oklch(0.28 0.06 210); transition: transform .2s, background .2s, border-color .2s; }
.wh-toggle-filter span:hover { transform: translateY(-2px); }
.wh-toggle-filter input:checked + span { background: var(--wh-accent-soft); border-color: var(--wh-accent); }

/* ---------- Perfil individual (foto + info, contenido + sidebar sticky) ---------- */
.wh-profile-media-grid { display: grid; grid-template-columns: minmax(240px,320px) 1fr; gap: clamp(24px,4vw,48px); align-items: start; }
@media (max-width: 680px) {
  .wh-profile-media-grid { grid-template-columns: 1fr; }
  /* El marco exterior (.wh-gradient-frame) debe llevar el MISMO aspect-ratio que la foto interior
     (aspect-ratio:3/3.6, inline en single-canguros.php y single-language_buddy.php) — si no coinciden,
     el marco reserva menos alto del que la foto realmente ocupa y esta se pinta por encima del nombre
     (bug visto en Safari/iOS, donde el desajuste sí se renderiza en vez de disimularse). */
  .wh-profile-media-grid > div:first-child { width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 3/3.6 !important; }
}

.wh-profile-content-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(240px,1fr); gap: clamp(24px,3vw,40px); align-items: start; }
.wh-profile-sidebar { position: sticky; top: 110px; }
.wh-sidebar-title-mobile { display: none; }
@media (max-width: 900px) {
  .wh-profile-content-grid { grid-template-columns: 1fr; }
  .wh-profile-sidebar { position: static; }
  /* En móvil el widget de reserva ("Haz tu reserva aquí ⬇️" + calendario) ya sale justo arriba
     de esta tarjeta en el flujo normal de la página — repetir su título y el botón "Reservar
     ahora" aquí es redundante. Se deja solo el aviso de seguridad y "Ver más perfiles", con un
     título propio para que el texto no quede huérfano. */
  .wh-sidebar-title-desktop { display: none; }
  .wh-sidebar-title-mobile { display: block; }
  .wh-sidebar-reservar-btn { display: none; }
}

/* ---------- Stat grid del perfil: nunca menos de 2 columnas en móvil ---------- */
.wh-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px,1fr)); gap: 1px; background: var(--wh-line); border: 1.5px solid var(--wh-line); border-radius: 20px; overflow: hidden; }
@media (max-width: 480px) { .wh-stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Salvaguardas generales de responsive ---------- */
html, body { max-width: 100%; overflow-x: clip; }
table { max-width: 100%; }
img, video { max-width: 100%; height: auto; }

@media (max-width: 480px) {
  h1 { font-size: clamp(26px, 8vw, 34px) !important; }
  .wh-container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Página de acceso: nube + sol + logotipo — coreografía con GSAP (ver login-animation.js) ---------- */
.wh-login-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,80px); align-items: center; width: 100%; max-width: 1080px; margin: 0 auto; }
.wh-login-scene { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.wh-login-cloud-wrap { position: relative; width: min(72%, 280px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.wh-login-sun-wrap { position: absolute; right: -8%; top: 6%; width: 62%; aspect-ratio: 1; z-index: 1; }
.wh-login-sun-glow { position: absolute; inset: -55%; border-radius: 50%; background: radial-gradient(circle, oklch(0.94 0.09 95 / .85) 0%, oklch(0.88 0.13 80 / .45) 38%, oklch(0.88 0.13 80 / 0) 72%); }
.wh-login-sun { position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #FFFAEA 0%, #FFE18A 42%, #FFB238 100%); box-shadow: 0 0 46px 12px oklch(0.87 0.14 85 / .5); }
.wh-login-cloud { position: relative; z-index: 2; width: 100%; height: auto; filter: drop-shadow(0 18px 22px oklch(0.3 0.03 260 / .18)) brightness(1.22) saturate(.7); }
.wh-login-word { display: flex; font-family: var(--wh-font-heading); font-weight: 800; font-size: clamp(28px,3.6vw,42px); }
.wh-login-word span { display: inline-block; }
.wh-login-card-wrap { position: relative; z-index: 2; }

/* Estado inicial oculto para lo que anima GSAP (login-animation.js) — igual que [data-reveal],
   si el JS no llega a ejecutarse por lo que sea, .wh-login-no-js los vuelve a mostrar. */
.wh-login-cloud, .wh-login-sun-wrap, .wh-login-word span { opacity: 0; }
.wh-login-no-js .wh-login-cloud, .wh-login-no-js .wh-login-sun-wrap, .wh-login-no-js .wh-login-word span { opacity: 1; }

@media (max-width: 860px) {
  .wh-login-grid { grid-template-columns: 1fr; gap: 28px; }
  .wh-login-scene { order: -1; gap: 12px; }
  .wh-login-cloud-wrap { width: min(48%, 170px); }
  .wh-login-word { font-size: clamp(20px,7vw,28px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Páginas legales ---------- */
.wh-legal-card { max-width: 780px; margin: 0 auto; background: #fff; border: 1.5px solid var(--wh-line); border-radius: 28px; padding: clamp(28px,4vw,52px); box-shadow: var(--wh-shadow-soft); }
.wh-legal-prose { color: var(--wh-ink-soft); font-size: 15.5px; line-height: 1.75; }
.wh-legal-prose h4, .wh-legal-prose h5, .wh-legal-prose h6 { font-family: var(--wh-font-heading); color: var(--wh-ink); font-weight: 700; line-height: 1.3; margin: 32px 0 12px; }
.wh-legal-prose h4 { font-size: 21px; }
.wh-legal-prose h5, .wh-legal-prose h6 { font-size: 17px; }
.wh-legal-prose > *:first-child { margin-top: 0; }
.wh-legal-prose p { margin: 0 0 14px; }
.wh-legal-prose ul, .wh-legal-prose ol { margin: 0 0 14px; padding-left: 22px; }
.wh-legal-prose li { margin-bottom: 6px; }
.wh-legal-prose strong, .wh-legal-prose b { color: var(--wh-ink); }
.wh-legal-prose a { color: var(--wh-accent); text-decoration: underline; }
.wh-legal-prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.wh-legal-prose table th, .wh-legal-prose table td { border: 1px solid var(--wh-line); padding: 8px 10px; text-align: left; }
.wh-legal-prose table th { background: var(--wh-bg-soft); font-family: var(--wh-font-heading); }

/* ---------- 404: nube de tormenta ---------- */
/* El degradado va en el body (clase error404 que añade WP), no en la sección — así empieza
   desde el borde superior de la página y se ve detrás de la cabecera flotante, no debajo. */
body.error404 { background: linear-gradient(180deg, oklch(0.9 0.02 250), oklch(0.97 0.008 235) 320px); }
.wh-404-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 1; animation: whFlashBg 6.4s ease-in-out infinite; }
.wh-404-scene { position: relative; width: 240px; height: 150px; margin: 0 auto 6px; }
.wh-404-cloud { position: absolute; left: 50%; top: 0; transform: translateX(-50%); animation: whCloud 5.5s ease-in-out infinite; filter: drop-shadow(0 18px 22px oklch(0.3 0.03 260 / .25)); }
.wh-404-bolt { position: absolute; opacity: 0; filter: drop-shadow(0 0 8px oklch(0.85 0.16 90 / .8)); }
.wh-404-bolt-1 { left: 42%; top: 68px; animation: whBoltFlash 6.4s ease-in-out infinite; }
.wh-404-bolt-2 { left: 60%; top: 78px; animation: whBoltFlash 6.4s ease-in-out infinite; animation-delay: .12s; }
.wh-404-rain { position: absolute; inset: 78px 0 0 0; overflow: hidden; height: 90px; }
.wh-404-rain span { position: absolute; top: -20px; width: 2px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, transparent, oklch(0.72 0.06 235)); animation-name: whRainFall; animation-timing-function: linear; animation-iteration-count: infinite; }

@keyframes whRainFall { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .8; } 100% { transform: translateY(96px); opacity: 0; } }
@keyframes whBoltFlash { 0%, 40% { opacity: 0; } 43% { opacity: 1; } 46% { opacity: .2; } 49% { opacity: 1; } 54% { opacity: 0; } 100% { opacity: 0; } }
@keyframes whFlashBg { 0%, 40% { opacity: 0; } 43% { opacity: .5; } 46% { opacity: .1; } 49% { opacity: .35; } 54% { opacity: 0; } 100% { opacity: 0; } }
