/*
Theme Name: Aura
Theme URI: https://centroaura.cl
Author: Héctor Vielma
Description: Tema a medida para Centro Aura (Quilpué). Liviano, sin page builder, accesible y optimizado para móviles.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: aura
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #1c2a4a;
  --ink-2: #4b5674;
  --ink-3: #737c94;
  --bg: #fffaf3;
  --paper: #ffffff;
  --tint: #f6f0e6;
  --line: #ebe2d4;

  --blue: #2a9fde; --blue-d: #136fa8; --blue-t: #e5f3fb;
  --red: #e83b35; --red-d: #c0261f; --red-t: #fde8e6;
  --green: #3baa35; --green-d: #23801f; --green-t: #e7f5e5;
  --yellow: #f2c500; --yellow-d: #8a6d00; --yellow-t: #fff6cc;
  --wa: #1fa855; --wa-d: #158443;

  --c: var(--blue); --c-d: var(--blue-d); --c-t: var(--blue-t);

  --f-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px; --r: 20px; --r-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(28, 42, 74, .06), 0 2px 8px rgba(28, 42, 74, .05);
  --shadow: 0 2px 6px rgba(28, 42, 74, .05), 0 12px 32px -8px rgba(28, 42, 74, .14);
  --shadow-lg: 0 24px 60px -18px rgba(28, 42, 74, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --sec: clamp(64px, 9vw, 116px);
  --hdr-h: 76px;
}
.c-blue { --c: var(--blue); --c-d: var(--blue-d); --c-t: var(--blue-t); }
.c-red { --c: var(--red); --c-d: var(--red-d); --c-t: var(--red-t); }
.c-green { --c: var(--green); --c-d: var(--green-d); --c-t: var(--green-t); }
.c-yellow { --c: var(--yellow); --c-d: var(--yellow-d); --c-t: var(--yellow-t); }
.c-ink { --c: var(--ink); --c-d: var(--ink); --c-t: #e9ebf1; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 1.35rem + 1.9vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow-t); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow, .narrow { max-width: 780px; }
.center { text-align: center; }
.ico { flex: none; }
.section { padding: var(--sec) 0; }
.tint { background: var(--tint); }

/* ---------- Eyebrow (piezas del logo) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.eyebrow .dots { display: inline-grid; grid-template-columns: repeat(4, 8px); gap: 3px; }
.eyebrow .dots i { height: 8px; border-radius: 2.5px; background: var(--red); }
.eyebrow .dots i:nth-child(2) { background: var(--green); }
.eyebrow .dots i:nth-child(3) { background: var(--blue); }
.eyebrow .dots i:nth-child(4) { background: var(--yellow); }
.eyebrow[class*="c-"] .dots i { background: var(--c); opacity: .35; }
.eyebrow[class*="c-"] .dots i:first-child { opacity: 1; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue-d); color: #fff; box-shadow: 0 6px 18px -6px rgba(19, 111, 168, .55); }
.btn-primary:hover { background: #0f5d8e; color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-d); color: #fff; }
.btn-ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--yellow-t); color: var(--ink); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue-d); text-decoration: none; }
.link-arrow .ico { transition: transform .2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow.back:hover .ico { transform: translateX(-4px); }

/* ---------- Book (Agendar) ---------- */
.book { position: relative; }
.book summary { list-style: none; }
.book summary::-webkit-details-marker { display: none; }
.book summary .ico:last-child { transition: transform .2s; }
.book[open] summary .ico:last-child { transform: rotate(180deg); }
.book-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: 300px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; transform-origin: top right; animation: pop .18s var(--ease); }
.hero-book .book-menu, .area-hero .book-menu { left: 0; right: auto; transform-origin: top left; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.book-opt { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.book-opt:hover { background: var(--tint); color: var(--ink); }
.book-opt strong { display: block; font-size: 1rem; }
.book-opt small { display: block; color: var(--ink-3); font-size: .85rem; }
.bo-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.wa .bo-ico { background: #e3f6ea; color: var(--wa-d); }
.ap .bo-ico { background: var(--blue-t); color: var(--blue-d); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .25s; }
/* El desenfoque va en un pseudo-elemento: en el propio header convertiría al menú móvil (fixed) en hijo atrapado. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 250, 243, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(28, 42, 74, .25); }
.hdr { display: flex; align-items: center; gap: 24px; height: var(--hdr-h); }
.brand img { width: 128px; mix-blend-mode: multiply; }
.nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a { display: block; white-space: nowrap; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; }
.menu a:hover { background: var(--tint); color: var(--ink); }
.menu a[aria-current] { color: var(--blue-d); }
.menu > li > a[aria-current]::after { content: ""; display: block; height: 3px; border-radius: 3px; background: var(--blue); margin-top: 2px; }
.sub-toggle { display: none; }
.sub { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 12px; }
.sw { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
.nav-toggle, .nav-mobile-extra { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; border-radius: 50%; background: radial-gradient(closest-side, var(--blue-t), transparent); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 32px; padding-top: 24px; border-top: 1px dashed var(--line); }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; gap: 6px; }
.hero-facts span:not(.stars) { color: var(--ink-3); font-size: .9rem; }
.stars { display: inline-flex; color: #f5b301; gap: 1px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; }
.ha { position: absolute; margin: 0; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--tint); }
.ha img { width: 100%; height: 100%; object-fit: cover; }
.ha-1 { inset: 4% 22% 22% 4%; border-radius: 44% 56% 40% 60% / 50% 42% 58% 50%; }
.ha-2 { width: 42%; aspect-ratio: 1; right: 0; top: 12%; border-radius: var(--r-lg); border: 6px solid #fff; }
.ha-3 { width: 46%; aspect-ratio: 4 / 3; right: 6%; bottom: 0; border-radius: var(--r-lg); border: 6px solid #fff; }
.piece { position: absolute; width: 38px; height: 38px; border-radius: 10px; }
.piece::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: inherit; right: -7px; top: 12px; }
.p-red { background: var(--red); left: 0; bottom: 14%; transform: rotate(-12deg); }
.p-green { background: var(--green); left: 40%; top: 0; transform: rotate(8deg); }
.p-blue { background: var(--blue); right: 46%; bottom: 4%; transform: rotate(16deg); }
.p-yellow { background: var(--yellow); right: 2%; top: 2%; transform: rotate(-6deg); width: 28px; height: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .piece { animation: float 7s ease-in-out infinite; }
  .p-green { animation-delay: -2s; } .p-blue { animation-delay: -4s; } .p-yellow { animation-delay: -5s; }
  @keyframes float { 50% { translate: 0 -8px; } }
}

/* ---------- Section heads ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head.center { margin-inline: auto; }
.sec-head p { color: var(--ink-2); font-size: 1.08rem; }
.sec-head.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head.split h2 { margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about p { color: var(--ink-2); }
.about strong { color: var(--ink); }
.video-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; background: var(--ink); position: relative; }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; border: 0; padding: 0; background: none; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .6s var(--ease), opacity .3s; }
.video-poster:hover img { transform: scale(1.04); opacity: .7; }
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); box-shadow: 0 0 0 12px rgba(255, 255, 255, .25); transition: transform .25s var(--ease); }
.video-poster:hover .play { transform: scale(1.08); }
.video-label { position: absolute; left: 20px; bottom: 16px; color: #fff; font: 600 1.1rem var(--f-display); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: end; }
.mosaic img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
.mosaic img:last-child { aspect-ratio: 1; margin-bottom: 40px; }

/* ---------- Centers ---------- */
.centers { background: var(--tint); }
.centers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.center-card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border-top: 6px solid var(--c); }
.carousel { position: relative; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; background: var(--c-t); }
.car-track::-webkit-scrollbar { display: none; }
.car-track li { flex: 0 0 100%; scroll-snap-align: start; }
.car-track img { width: 100%; height: 100%; object-fit: cover; }
.car-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: background .2s; }
.car-btn:hover { background: #fff; }
.car-btn.prev { left: 12px; } .car-btn.next { right: 12px; }
.center-body { padding: clamp(22px, 3vw, 36px); }
.center-kicker { font: 800 .78rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-d); margin-bottom: 10px; }
.center-body h3 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem); }
.center-tag { font-weight: 700; color: var(--ink); }
.center-body > p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--c-t); color: var(--c-d); font-weight: 800; font-size: .88rem; text-decoration: none; }
.chip:hover { background: var(--c); color: #fff; }
.c-yellow .chip:hover, .chip.c-yellow:hover { color: var(--ink); }

/* Accordions */
.acc { border-top: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 800; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { transition: transform .25s var(--ease); color: var(--ink-3); }
.acc[open] summary .ico { transform: rotate(180deg); }
.acc summary:hover { color: var(--blue-d); }
.enfoque { display: grid; gap: 10px; padding-bottom: 18px; color: var(--ink-2); }
.enfoque li { padding-left: 18px; position: relative; }
.enfoque li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.enfoque strong { color: var(--ink); }
.acc-map { padding-bottom: 18px; }
.acc-map p { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; color: var(--ink-2); }
.map-slot iframe { width: 100%; height: 240px; border: 0; border-radius: var(--r); margin: 8px 0 12px; background: var(--tint); }

/* ---------- Areas ---------- */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.area-card a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.area-card a:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.area-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-t); position: relative; }
.area-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--c); }
.area-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.area-card a:hover .area-img img { transform: scale(1.06); }
.area-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.area-body p { color: var(--ink-2); font-size: .97rem; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--c-d); }
.more .ico { transition: transform .2s var(--ease); }
a:hover .more .ico { transform: translateX(4px); }

/* ---------- Evaluations band ---------- */
.evals-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.evals-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -200px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); }
.evals-band h2 { color: #fff; }
.evals-band p { color: #c6cde0; }
.evals-band .eyebrow { color: #c6cde0; }
.evals-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eval-pills { display: grid; gap: 12px; }
.eval-pills a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 18px; padding: 18px 22px; border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.eval-pills a:hover { background: rgba(255, 255, 255, .12); transform: translateX(4px); color: #fff; }
.eval-pills strong { font: 600 1.35rem var(--f-display); color: var(--c); min-width: 92px; }
.eval-pills span { color: #c6cde0; font-size: .95rem; }

/* ---------- Team ---------- */
.tt-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; background: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow); }
.tt-inner p { color: var(--ink-2); }
.avatars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.avatars li { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--tint); box-shadow: 0 0 0 4px #fff, var(--shadow-sm); }
.avatars li:nth-child(4n+1) { background: var(--red-t); } .avatars li:nth-child(4n+2) { background: var(--green-t); } .avatars li:nth-child(4n+3) { background: var(--blue-t); } .avatars li:nth-child(4n) { background: var(--yellow-t); }
.avatars img { width: 100%; height: 100%; object-fit: cover; }
.more-av { display: grid; place-items: center; font: 600 1.5rem var(--f-display); color: var(--ink-2); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 22px; }
.person { text-align: center; }
.person[hidden] { display: none; }
.person-ph { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--c-t); margin-bottom: 14px; position: relative; transition: transform .3s var(--ease); }
.person-ph::after { content: ""; position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 40%; height: 5px; border-radius: 5px 5px 0 0; background: var(--c); }
.person:hover .person-ph { transform: translateY(-4px); }
.person-ph img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.12rem; margin-bottom: 2px; }
.person .role { color: var(--c-d); font-weight: 800; font-size: .92rem; margin: 0; }
.c-ink .role { color: var(--ink-2); }
.person .extra { color: var(--ink-3); font-size: .85rem; margin: 2px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 800; font-size: .92rem; color: var(--ink); text-decoration: none; transition: .2s; }
.filter span { font-size: .78rem; background: var(--tint); border-radius: 999px; padding: 1px 8px; color: var(--ink-2); }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"], .filter[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter[aria-pressed="true"] span, .filter[aria-current] span { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Reviews ---------- */
.rating { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.review-grid { columns: 3 320px; column-gap: 22px; margin-bottom: 32px; }
.review { break-inside: avoid; background: var(--paper); border-radius: var(--r); padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.review .q { color: var(--blue); opacity: .3; display: block; margin-bottom: 6px; }
.review:nth-child(4n+2) .q { color: var(--green); } .review:nth-child(4n+3) .q { color: var(--red); } .review:nth-child(4n) .q { color: var(--yellow); opacity: .5; }
.review .q .ico { width: 40px; height: 40px; }
.review p { color: var(--ink-2); }
.who { display: flex; align-items: center; gap: 12px; margin: 0; }
.who strong { display: block; color: var(--ink); line-height: 1.3; }
.initial { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-t); color: var(--blue-d); font: 600 1.1rem var(--f-display); flex: none; }
.stars.sm { display: flex; }

/* ---------- News ---------- */
.news { background: var(--tint); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.post-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.pc-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--blue-t), var(--yellow-t)); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card a:hover .pc-img img { transform: scale(1.05); }
.pc-body { padding: 20px 22px 24px; }
.pc-body h3 { font-size: 1.18rem; }
.pc-body p:last-child { color: var(--ink-2); font-size: .95rem; margin: 0; }
.meta { font-size: .82rem; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.meta a { color: var(--ink-3); }
.pager { margin-top: 40px; }
.pager .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 800; padding: 0 10px; }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { color: var(--ink-3); }

/* ---------- Press ---------- */
.press { padding: 48px 0; border-block: 1px solid var(--line); background: var(--paper); }
.press-title { text-align: center; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 24px; }
.press-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px clamp(24px, 5vw, 56px); }
.press-logos img { height: 64px; width: auto; filter: grayscale(1); opacity: .7; transition: .25s; }
.press-logos a:hover img { filter: none; opacity: 1; transform: scale(1.04); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info > p { color: var(--ink-2); }
.contact-line { display: flex; gap: 14px; align-items: center; padding: 16px; margin-top: 12px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; transition: border-color .2s, transform .2s var(--ease); }
.contact-line:hover { border-color: var(--ink); color: var(--ink); transform: translateX(4px); }
.contact-line > span:first-child { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c-t); color: var(--c-d); flex: none; }
.contact-line small { display: block; font-weight: 600; color: var(--ink-3); font-size: .82rem; }
.wa-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); display: grid; gap: 14px; justify-items: start; border-top: 6px solid var(--wa); }
.wa-card h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin: 0; }
.wa-card p { color: var(--ink-2); margin: 0; }
.wa-card-ico { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: #e3f6ea; color: var(--wa-d); }
.wa-card-num { font: 600 clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem)/1.1 var(--f-display); color: var(--ink); text-decoration: none; margin: 4px 0 6px; }
.wa-card-num:hover { color: var(--wa-d); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 76px); background: var(--c-t); }
.page-hero h1 { margin-bottom: 14px; max-width: 16em; }
.page-hero .lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); max-width: 40em; margin: 0; }
.ph-piece { position: absolute; right: clamp(-60px, -2vw, 0px); top: 50%; translate: 0 -50%; width: clamp(140px, 22vw, 300px); aspect-ratio: 1; border-radius: 28%; background: var(--c); opacity: .14; rotate: 12deg; }
.ph-piece::after { content: ""; position: absolute; width: 36%; aspect-ratio: 1; border-radius: 50%; background: inherit; left: -18%; top: 32%; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; font-weight: 700; margin-bottom: 18px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Prose */
.prose { color: var(--ink-2); }
.prose .big { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); color: var(--ink); line-height: 1.55; font-weight: 600; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--r); margin: 1.5em 0; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { font-weight: 700; }
.prose figure { margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--blue); font-style: italic; color: var(--ink); }

/* ---------- Nosotros ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.mv-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.mv-num { font: 600 3.4rem/1 var(--f-display); color: var(--c-t); display: block; margin-bottom: 8px; }
.mv-card p { color: var(--ink-2); margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.v-piece { display: block; width: 40px; height: 40px; border-radius: 11px; background: var(--c); margin-bottom: 18px; position: relative; }
.v-piece::after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: inherit; right: -7px; top: 12px; }
.value p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* ---------- Area pages ---------- */
.area-rows { display: grid; gap: 24px; margin-top: 40px; }
.area-row a { display: grid; grid-template-columns: 380px 1fr; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); border-left: 6px solid var(--c); transition: transform .3s var(--ease), box-shadow .3s; }
.area-row a:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.ar-img { background: var(--c-t); min-height: 240px; }
.ar-img img { width: 100%; height: 100%; object-fit: cover; }
.ar-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.ar-body > p { color: var(--ink-2); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.mini-tags li { font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--c-t); color: var(--c-d); }
.area-hero { background: var(--c-t); padding: clamp(36px, 5vw, 64px) 0; overflow: hidden; }
.area-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.area-hero .lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); }
.where { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-d); font-size: .95rem; margin-bottom: 24px; }
.area-hero-img { margin: 0; border-radius: 42% 58% 46% 54% / 52% 44% 56% 48%; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-lg); border: 8px solid #fff; }
.area-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.area-detail .prose { max-width: 820px; font-size: 1.1rem; margin-bottom: 40px; }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list-card { background: var(--c-t); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); }
.list-card.soft { background: var(--paper); border: 1px solid var(--line); }
.list-card h2 { font-size: 1.45rem; margin-bottom: 18px; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ico { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--c); color: #fff; margin-top: 1px; }
.c-yellow .checks .ico { color: var(--ink); }
.list-card.soft .checks .ico { background: var(--ink); }
.area-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.area-mini a { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--paper); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 800; border: 1px solid var(--line); transition: .2s; }
.area-mini a .ico { margin-left: auto; transition: transform .2s var(--ease); }
.area-mini a:hover { border-color: var(--ink); color: var(--ink); }
.area-mini a:hover .ico { transform: translateX(4px); }

/* Gallery */
.gallery-grid { columns: 4 220px; column-gap: 14px; }
.gallery-grid li { break-inside: avoid; margin-bottom: 14px; }
.gallery-grid a { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--tint); }
.gallery-grid img { width: 100%; transition: transform .5s var(--ease), opacity .3s; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(15, 22, 40, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 82vh; border-radius: 12px; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; margin: 0; color: #c6cde0; font-weight: 700; }

/* Evaluaciones */
.eval-tabs { position: sticky; top: calc(var(--hdr-h) + 8px); z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; padding: 8px; background: rgba(255, 250, 243, .92); backdrop-filter: blur(10px); border-radius: 999px; border: 1px solid var(--line); width: fit-content; }
.eval-tabs a { padding: 9px 18px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--ink); font-size: .95rem; }
.eval-tabs a:hover { background: var(--c-t); color: var(--c-d); }
.eval-list { display: grid; gap: 28px; }
.eval { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 4vw, 56px); background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--hdr-h) + 80px); }
.eval header { border-left: 6px solid var(--c); padding-left: 20px; align-self: start; }
.eval header p { color: var(--ink-2); margin: 0; }
.eval .acc:first-child { border-top: 0; }
.eval .acc summary { padding: 14px 0; font-size: 1.05rem; }
.acc-body { color: var(--ink-2); padding-bottom: 18px; }
.acc-body ol { padding-left: 1.2em; display: grid; gap: 8px; }
.acc-body .note { font-size: .92rem; background: var(--c-t); padding: 10px 14px; border-radius: 12px; margin-top: 12px; color: var(--ink); }

/* Reservas */
.booking { padding-top: 40px; }
.booking-help { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.booking-help p { display: flex; gap: 10px; align-items: center; margin: 0; font-weight: 700; color: var(--ink-2); }
.booking-frame { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.booking-frame iframe { width: 100%; height: min(1200px, 160vh); border: 0; display: block; }

/* Article */
.article-head { padding: clamp(40px, 6vw, 72px) 0 32px; }
.article-head h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); }
.article-cover { margin: 0 auto 40px; max-width: 1000px; }
.article-cover img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.article-body { font-size: 1.1rem; }
.article-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 32px; padding-bottom: var(--sec); border-top: 1px solid var(--line); margin-top: 32px; }
.share { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-weight: 700; }
.share a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.share a:hover { border-color: var(--ink); }

/* CTA band */
.cta-band { padding: 0 0 var(--sec); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--blue-d); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-inner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 30%; background: rgba(255, 255, 255, .08); rotate: 18deg; }
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: #d7ebf8; margin: 0; max-width: 34em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: #c6cde0; padding: 64px 0 28px; margin-top: 40px; }
.foot-wave { position: absolute; left: 0; top: -59px; width: 100%; height: 60px; fill: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-brand img { width: 150px; border-radius: 10px; margin-bottom: 18px; }
.foot-brand p { font-size: .95rem; }
.foot-h { font: 800 .8rem/1 var(--f-body); color: #fff; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.foot-links { display: grid; gap: 8px; }
.site-footer a { color: #e4e8f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-centers { display: grid; gap: 18px; }
.foot-centers strong { display: block; color: #fff; padding-left: 14px; border-left: 3px solid var(--c); margin-bottom: 4px; }
.foot-centers a { display: flex; gap: 6px; align-items: flex-start; font-size: .95rem; padding-left: 17px; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social a:hover { background: rgba(255, 255, 255, .18); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; font-size: .88rem; }
.foot-bottom p { margin: 0; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 30px -6px rgba(31, 168, 85, .6); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --hdr-h: 68px; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); margin-left: 8px; }
  .nav-toggle .shut, body.nav-open .nav-toggle .open { display: none; }
  body.nav-open .nav-toggle .shut { display: block; }
  .hdr-book { margin-left: auto; }
  .nav { position: fixed; inset: var(--hdr-h) 0 0 0; background: var(--bg); padding: 16px 20px 32px; overflow-y: auto; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; margin: 0; }
  body.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu > li > a { flex: 1; font: 600 1.3rem var(--f-display); padding: 16px 4px; }
  .menu > li > a[aria-current]::after { display: none; }
  .sub-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--tint); border-radius: 12px; }
  .sub-toggle .ico { transition: transform .25s; }
  .has-sub.open .sub-toggle .ico { transform: rotate(180deg); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; width: 100%; background: none; }
  .has-sub.open .sub { display: block; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 24px; }
}
@media (max-width: 1060px) {
  .hero-grid, .about-grid, .evals-inner, .tt-inner, .contact-grid, .area-hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .centers-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .eval { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .area-row a { grid-template-columns: 280px 1fr; }
  .area-hero-img { max-width: 420px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hdr { gap: 10px; }
  .brand img { width: 104px; }
  .hdr-book summary { padding: 10px 14px; min-height: 44px; font-size: .92rem; }
  .hdr-book summary .ico:first-child { display: none; }
  .book-menu { width: min(300px, calc(100vw - 32px)); }
  .area-grid, .post-grid, .mv-grid, .values, .two-lists, .field-row, .foot-grid { grid-template-columns: 1fr; }
  .area-row a { grid-template-columns: 1fr; }
  .ar-img { min-height: 0; aspect-ratio: 16 / 9; }
  .hero-actions .btn, .hero-actions .book, .hero-actions .book summary { width: 100%; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .person h3 { font-size: 1rem; }
  .eval-tabs { border-radius: var(--r); width: 100%; position: static; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .press-logos img { height: 48px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .mosaic img:last-child { margin-bottom: 20px; }
  .lb-prev, .lb-next { top: auto !important; bottom: 12px; translate: none !important; }
}
@media (max-width: 380px) {
  .hdr-book summary { padding: 8px 12px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
