/* ============================================================
   JOYFIT — Sistema de diseño
   Marca: petróleo #10252e · volt #d3f427 · verde #86c720
   ============================================================ */
:root {
    --ink: #10252e;
    --ink-2: #1b3540;
    --ink-3: #2c4a56;
    --volt: #d3f427;
    --volt-600: #c2e310;
    --green: #86c720;
    --green-600: #6faa14;
    --paper: #f6f7f3;
    --paper-2: #eef0ea;
    --white: #ffffff;
    --line: #e2e5dd;
    --muted: #5c6b70;
    --muted-2: #8a969a;

    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow: 0 10px 30px -12px rgba(16, 37, 46, .18);
    --shadow-lg: 0 30px 60px -20px rgba(16, 37, 46, .35);
    --shadow-volt: 0 14px 30px -10px rgba(134, 199, 32, .45);
    --container: 1200px;
    --ff-display: "Sora", "Segoe UI", system-ui, sans-serif;
    --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--ff-body);
    color: var(--ink);
    background: var(--white);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--volt); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-wide { max-width: 1360px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-sm { padding: clamp(40px, 5vw, 70px) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---- Eyebrow / kicker ---- */
.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-display); font-weight: 700; font-size: .82rem;
    letter-spacing: .1em; text-transform: none; margin-bottom: 16px;
    color: var(--green-600); /* color de los iconos + fallback */
    background: linear-gradient(90deg, #3f7d12, #6fae1a, #86c720, #d3f427, #86c720, #3f7d12);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fpShimmer 5s linear infinite;
}
.kicker.on-dark { color: var(--volt); }
@media (prefers-reduced-motion: reduce) { .kicker { animation: none; } }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--ff-display); font-weight: 700; font-size: 1rem;
    padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
    line-height: 1; white-space: nowrap;
}
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--volt); color: var(--ink); box-shadow: var(--shadow-volt); }
.btn-primary:hover { transform: translateY(-3px); background: var(--volt-600); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { transform: translateY(-3px); background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,.25); }
.btn-ghost.on-dark:hover { border-color: var(--volt); color: var(--volt); }
.btn-sm { padding: 11px 20px; font-size: .92rem; }
.btn-lg { padding: 18px 36px; font-size: 1.08rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-display); font-weight: 700; color: var(--ink); transition: gap .2s var(--ease), color .2s; }
.link-arrow .ic { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--green-600); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---- Chips ---- */
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
    border-radius: 999px; font-family: var(--ff-display); font-weight: 700; font-size: .78rem;
    letter-spacing: .02em; background: var(--paper-2); color: var(--ink);
}
.chip .ic { width: 15px; height: 15px; }
.chip-volt { background: var(--volt); color: var(--ink); }
.chip-outline { background: transparent; border: 1.5px solid var(--line); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(16,37,46,.3); }
.nav { display: flex; align-items: center; gap: 16px; height: 76px; }
.nav-logo { display: flex; align-items: center; margin-right: auto; flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; flex-shrink: 0; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 5px; padding: 10px 12px; border-radius: 10px;
    font-family: var(--ff-display); font-weight: 600; font-size: .93rem; color: var(--ink); white-space: nowrap;
    transition: background .18s, color .18s;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--paper); color: var(--green-600); }
.nav-link .caret { width: 14px; height: 14px; opacity: .6; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 6px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.nav-phone .ic { color: var(--green-600); }

/* dropdown */
.has-dropdown .dropdown {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); padding: 10px; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; font-weight: 600; font-size: .94rem; transition: background .15s; }
.dropdown a:hover { background: var(--paper); }
.dropdown a .ic { width: 20px; height: 20px; color: var(--green-600); flex: none; }
.dropdown a small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); }
/* Activities menu with a small photo thumbnail per activity */
.dropdown-activities a { padding: 8px 10px; }
.menu-thumb { width: 42px; height: 42px; border-radius: 11px; overflow: hidden; flex: none; box-shadow: 0 4px 10px -4px rgba(16,37,46,.4); }
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.dropdown-activities a:hover .menu-thumb img { transform: scale(1.12); }
.menu-name { display: flex; flex-direction: column; line-height: 1.2; }
.menu-name small { font-weight: 500; font-size: .74rem; color: var(--green-600); text-transform: uppercase; letter-spacing: .03em; }

.nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--ink); cursor: pointer; }

/* mobile drawer — oculto por defecto; el media query lo muestra en móvil */
.mobile-drawer { display: none; }
@media (max-width: 1150px) {
    .nav-menu, .nav-phone { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav { height: 66px; }
    .nav-logo img { height: 40px; }
    .mobile-drawer {
        position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 90;
        background: var(--ink); color: var(--white); transform: translateX(100%);
        transition: transform .35s var(--ease); padding: 24px; overflow-y: auto;
        display: flex; flex-direction: column;
    }
    .mobile-drawer.open { transform: translateX(0); }
    .drawer-backdrop { position: fixed; inset: 0; background: rgba(16,37,46,.5); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 89; }
    .drawer-backdrop.open { opacity: 1; visibility: visible; }
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.drawer-head img { height: 34px; }
.drawer-close { background: none; border: none; color: var(--white); cursor: pointer; padding: 6px; }
.drawer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a { display: block; padding: 14px 12px; font-family: var(--ff-display); font-weight: 600; font-size: 1.1rem; border-radius: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer-nav a:hover { color: var(--volt); }
.drawer-sub { padding-left: 14px; }
.drawer-sub a { font-size: .98rem; font-weight: 500; opacity: .85; border: none; padding: 9px 12px; }
.drawer-cta { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -12%; top: -20%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(211,244,39,.16), transparent 62%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: clamp(48px, 7vw, 96px) 0; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero h1 .hl { color: var(--volt); }
.hero-lead { font-size: 1.2rem; color: rgba(255,255,255,.8); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat { }
.stat .num { font-family: var(--ff-display); font-weight: 800; font-size: 2.2rem; color: var(--volt); line-height: 1; letter-spacing: -.03em; }
.stat .lbl { font-size: .88rem; color: rgba(255,255,255,.65); margin-top: 6px; }
.hero-media { position: relative; }
.hero-media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute; bottom: -22px; left: -22px; background: var(--volt); color: var(--ink);
    border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 210px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease); cursor: default;
}
.hero-badge:hover { transform: translateY(-8px) rotate(-2.5deg) scale(1.04); box-shadow: 0 22px 40px -10px rgba(16,37,46,.35); }
@media (prefers-reduced-motion: reduce) { .hero-badge:hover { transform: none; } }
.hero-badge .num { font-family: var(--ff-display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.hero-badge .txt { font-size: .82rem; font-weight: 600; margin-top: 4px; }
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-media { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* Full-bleed cinematic hero (original joyfit slider images) */
.hero-full { position: relative; min-height: min(92vh, 780px); display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--ink); }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .5s var(--ease); transform: scale(1.18); }
.hero-slide.active { opacity: 1; animation: heroZoom 2.9s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: scale(1.02); } }
.hero-full-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, rgba(16,37,46,.92) 0%, rgba(16,37,46,.72) 42%, rgba(16,37,46,.35) 100%); }
.hero-full-overlay::after { content: ""; position: absolute; right: -8%; top: -25%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(211,244,39,.18), transparent 62%); }
.hero-full-inner { position: relative; z-index: 2; max-width: 760px; padding-block: 60px; }
.hero-full h1 { color: var(--white); }
/* H1 SEO pequeño (keyword) + titular grande no-H1 */
.hero-eyebrow-h1 { display: inline-block; font-family: var(--ff-display); font-weight: 700; font-size: .9rem; line-height: 1.4; letter-spacing: .03em; text-transform: none; margin: 0 0 16px;
    background: linear-gradient(90deg, #86c720, #d3f427, #eaff7a, #a6e000, #d3f427, #86c720);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fpShimmer 5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hero-eyebrow-h1 { animation: none; } }
/* Salto de línea del H1 del hero solo en móvil ("… Tres Cantos" / "y San Sebastián…") */
.br-mobile { display: none; }
@media (max-width: 600px) { .br-mobile { display: inline; } }
.hero-title { font-family: var(--ff-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.08; letter-spacing: -.02em; color: var(--white); margin: 0 0 .5em; }
.hero-title .hl { color: var(--volt); }
.hero-full .hero-lead { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 30px; }
.hero-full .hero-stats { margin-top: 42px; gap: 40px; }
@media (max-width: 600px) { .hero-full { min-height: 88vh; } .hero-full .hero-stats { gap: 24px; } .hero-full .stat .num { font-size: 1.7rem; }
    .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
    .hero-eyebrow-h1 { font-size: .74rem; } .hero-full .hero-lead { font-size: .92rem; line-height: 1.5; } }
@media (prefers-reduced-motion: reduce) { .hero-slide.active { animation: none; transform: none; } }

/* marquee ticker */
.ticker { background: var(--volt); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
/* Seamless marquee: the item list is printed TWICE inside the track, so a
   translateX(-50%) loop lands exactly one copy over, with no empty gaps. */
.ticker-track { display: inline-flex; align-items: center; white-space: nowrap; padding: 13px 0; animation: ticker 46s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { flex: 0 0 auto; font-family: var(--ff-display); font-weight: 800; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; }
.ticker-sep { flex: 0 0 auto; margin: 0 26px; color: var(--green-600); font-size: .9rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* When a filter is active, center the visible cards (a partial last row / few results
   no longer sits lonely on the left). */
.grid.is-filtered { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-4.is-filtered > * { flex: 0 0 auto; width: calc((100% - 3 * 26px) / 4); }
.grid-3.is-filtered > * { flex: 0 0 auto; width: calc((100% - 2 * 26px) / 3); }
@media (max-width: 900px) { .grid-4.is-filtered > *, .grid-3.is-filtered > * { width: calc((100% - 26px) / 2); } }
@media (max-width: 620px) { .grid-4.is-filtered > *, .grid-3.is-filtered > * { width: 100%; } }

.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* Activity card */
/* overflow visible so the icon badge can pop OUT of the photo corner */
.act-card { position: relative; overflow: visible; }
.act-card .media { aspect-ratio: 4/3; overflow: hidden; position: relative; border-radius: var(--radius) var(--radius) 0 0; }
.act-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.act-card:hover .media img { transform: scale(1.07); }
.act-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,37,46,.6), transparent 55%); }
.act-card .cat { position: absolute; top: 14px; left: 14px; z-index: 2; }
.act-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); }
/* Badge protrudes from the top-right corner of the photo, ringed in white so it reads as a sticker */
.act-card .icon-badge { position: absolute; top: -20px; right: -16px; width: 56px; height: 56px; border-radius: 16px; background: var(--volt); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 22px -6px rgba(134,199,32,.65); z-index: 4; border: 4px solid var(--white); transition: transform .3s var(--ease); }
.act-card:hover .icon-badge { transform: rotate(-6deg) scale(1.06); }
.act-card .icon-badge .ic { width: 26px; height: 26px; }
.act-card h2, .act-card h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; }
.act-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.act-card .foot { margin-top: auto; padding-top: 12px; }

/* Foto principal de actividad: línea volt recorriendo el borde */
/* Rejilla 2 columnas responsive (contenido + lateral). Ratio por variables para
   conservar el desktop; colapsa a 1 columna en móvil. */
.split-grid { display: grid; grid-template-columns: var(--l, 1.2fr) var(--r, .9fr); gap: clamp(32px, 4vw, 52px); align-items: start; }
@media (max-width: 820px) { .split-grid { grid-template-columns: 1fr; gap: 30px; } }
body { overflow-x: clip; } /* evita scroll horizontal por elementos anchos en móvil */
.act-hero-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 44px; align-items: center; }
@media (max-width: 760px) {
    .act-hero-grid { grid-template-columns: 1fr; gap: 22px; }
    .act-hero-grid .hero-media { display: none; }   /* imagen decorativa fuera en móvil */
    .page-hero .hero-cta .btn { font-size: .95rem; padding: 13px 22px; }
    .page-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}
.act-hero-frame { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); padding: 3px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink); isolation: isolate; }
.act-hero-frame .ahf-glow { position: absolute; inset: -55%; z-index: 0; pointer-events: none; background: conic-gradient(from 0deg, transparent 0deg 264deg, rgba(211,244,39,.12) 296deg, var(--volt) 336deg, #f3ffc4 350deg, var(--volt) 360deg); animation: ahf-spin 3s linear infinite; }
.act-hero-frame img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; border-radius: calc(var(--radius-lg) - 3px); }
@keyframes ahf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .act-hero-frame .ahf-glow { animation: none; background: var(--volt); opacity: .3; } }

/* Center card */
.center-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: var(--white); min-height: 440px; display: flex; align-items: flex-end; }
.center-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; z-index: 0; transition: transform .7s var(--ease); }
@media (max-width: 760px) { .center-card img.bg { object-position: center top; } }
.center-card:hover img.bg { transform: scale(1.05); }
.center-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,37,46,.92) 8%, rgba(16,37,46,.35) 55%, rgba(16,37,46,.15)); z-index: 1; }
.center-card .inner { position: relative; z-index: 2; padding: 34px; width: 100%; }
.center-card h3 { color: var(--white); font-size: 1.7rem; margin-bottom: 6px; }
.center-card .addr { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.82); font-size: .95rem; margin-bottom: 18px; }
.center-card .addr .ic { color: var(--volt); flex: none; }
.center-card .mini-stats { display: flex; gap: 20px; margin-bottom: 22px; }
.center-card .mini-stats .num { font-family: var(--ff-display); font-weight: 800; color: var(--volt); font-size: 1.5rem; line-height: 1; }
.center-card .mini-stats .lbl { font-size: .78rem; color: rgba(255,255,255,.7); }

/* Feature / value tiles */
.value-tile { padding: 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .3s var(--ease), background .3s; }
.value-tile:hover { transform: translateY(-5px); background: var(--white); box-shadow: var(--shadow); }
.value-tile .ic-wrap { width: 56px; height: 56px; border-radius: 15px; background: var(--ink); color: var(--volt); display: grid; place-items: center; margin-bottom: 18px; }
.value-tile .ic-wrap .ic { width: 28px; height: 28px; }
.value-tile h3 { font-size: 1.25rem; }
.value-tile p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Bloque de marca "Porque entrenar cambia el cuerpo" + 6 razones */
.why-band { background: var(--ink); color: #fff; }
.why-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.why-intro-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; margin: 0; }
.why-intro-copy h2 .hl { color: var(--volt); }
.why-intro-copy p { color: rgba(255,255,255,.82); font-size: 1.18rem; margin: 20px 0 0; }
.why-intro-copy p .hl { color: var(--volt); font-weight: 700; }
.why-intro-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/10; }
.why-intro-frame img, .why-intro-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-intro-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,37,46,.85), transparent 55%); }
.why-claim { position: absolute; left: 24px; bottom: 22px; z-index: 2; font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.12; color: #fff; }
.why-claim .hl { color: var(--volt); }
/* Palabras resaltadas: arcoíris lima animado (mismo efecto que la banda de partners) */
.hl {
    background: linear-gradient(90deg, #86c720, #d3f427, #eaff7a, #a6e000, #d3f427, #86c720);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fpShimmer 5s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hl { animation: none; } }
@media (max-width: 820px) { .why-intro { grid-template-columns: 1fr; } }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.why-card:hover { transform: translateY(-5px); border-color: rgba(211,244,39,.45); }
.why-card-media { aspect-ratio: 16/10; overflow: hidden; }
.why-card-media img, .why-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.why-card:hover .why-card-media img { transform: scale(1.06); }
.why-card-body { padding: 22px 22px 26px; }
.why-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.why-num { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--volt); color: var(--volt); display: grid; place-items: center; font-family: var(--ff-display); font-weight: 800; font-size: 1rem; flex: none; }
.why-ic { color: var(--volt); display: inline-flex; }
.why-card h3 { color: #fff; font-size: 1.12rem; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 10px; }
.why-card p { color: rgba(255,255,255,.72); font-size: .94rem; margin: 0; line-height: 1.6; }
.why-card p strong { color: var(--volt); font-weight: 700; }

/* Sección Les Mills (centro oficial) */
.lesmills-band { background: var(--paper); }
.lesmills-video { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/9; max-height: 540px; }
.lesmills-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lesmills-video-cap { position: absolute; inset: auto 0 0 0; padding: clamp(24px, 4vw, 40px); background: linear-gradient(to top, rgba(16,37,46,.9), rgba(16,37,46,.25) 60%, transparent); color: #fff; }
.lesmills-video-cap h3 { color: #fff; margin: 12px 0 6px; font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
.lesmills-video-cap p { color: rgba(255,255,255,.85); margin: 0; max-width: 540px; font-size: 1.05rem; }
.lm-card { display: flex; flex-direction: column; overflow: hidden; }
.lm-media { aspect-ratio: 4/3; overflow: hidden; }
.lm-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lm-card:hover .lm-media img { transform: scale(1.06); }
.lm-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.lm-body h3 { margin: 0; font-size: 1.25rem; }

/* Service item */
.service-item { display: flex; gap: 15px; align-items: flex-start; padding: 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.service-item:hover { border-color: var(--green); transform: translateY(-3px); }
/* Instalaciones: 2 columnas en móvil (iconos de dos en dos), tarjeta apilada */
@media (max-width: 620px) {
    .grid-3.inst-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .inst-grid .service-item { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 12px; }
    .inst-grid .service-item h3 { font-size: .98rem; }
    .inst-grid .service-item p { font-size: .82rem; }
}
/* Horario en PDF: el iframe queda en blanco en móvil → se oculta y se ofrece botón */
.schedule-pdf-mobile { display: none; }
@media (max-width: 760px) {
    .schedule-embed.is-pdf { display: none; }
    .schedule-pdf-mobile { display: flex; width: 100%; justify-content: center; text-align: center; white-space: normal; margin-top: 4px; }
}
/* Cabecera de actividad: en móvil, la foto como fondo del hero (con oscurecido) */
@media (max-width: 760px) {
    .act-page-hero { background-image: linear-gradient(rgba(16,37,46,.55), rgba(16,37,46,.82)), var(--act-bg); background-size: cover; background-position: center top; }
}
.service-item .ic-wrap { width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2); color: var(--ink); display: grid; place-items: center; flex: none; }
.service-item h3 { margin: 0 0 3px; font-size: 1.02rem; }
.service-item p { margin: 0; font-size: .86rem; color: var(--muted); }

/* ============================================================
   BLOG
   ============================================================ */
.post-card .media { aspect-ratio: 16/10; overflow: hidden; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .media img { transform: scale(1.05); }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.post-card h3 { font-size: 1.18rem; line-height: 1.25; margin: 0; }
.post-card p { font-size: .92rem; color: var(--muted); margin: 0; flex: 1; }

/* Featured blog post — image fills the full card height (no gap under the photo) */
.blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; }
.blog-featured .bf-media { position: relative; overflow: hidden; min-height: 300px; }
.blog-featured .bf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-featured:hover .bf-media img { transform: scale(1.05); }
.blog-featured .bf-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
@media (max-width: 760px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured .bf-media { position: relative; min-height: 0; aspect-ratio: 16/9; }
}

/* Blog article body */
.article { max-width: 760px; margin-inline: auto; }
.article-body { font-size: 1.1rem; line-height: 1.78; }
.article-body h2 { margin-top: 1.6em; font-size: 1.7rem; }
.article-body h3 { margin-top: 1.4em; font-size: 1.32rem; }
.article-body h4 { margin-top: 1.2em; font-size: 1.1rem; }
.article-body p { margin: 0 0 1.15em; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body li::marker { color: var(--green-600); }
.article-body a { color: var(--green-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body img, .article-body figure { border-radius: var(--radius); margin: 1.6em 0; }
.article-body figure { margin-inline: 0; }
.article-body blockquote { margin: 1.6em 0; padding: 22px 26px; background: var(--paper); border-left: 4px solid var(--volt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-body blockquote p { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.article-body strong { color: var(--ink); }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
    font-family: var(--ff-display); font-weight: 700; font-size: .9rem; padding: 10px 18px;
    border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
    cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 7px;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-btn.active .ic { color: var(--volt); }
.filter-btn .ic { width: 16px; height: 16px; }

/* ============================================================
   PAGE HERO (interior)
   ============================================================ */
.page-hero { background: var(--ink); color: var(--white); padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 70px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -8%; top: -30%; width: 460px; height: 460px; background: radial-gradient(circle, rgba(211,244,39,.14), transparent 60%); }
.page-hero h1 { color: var(--white); position: relative; }
.page-hero .lead { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 640px; position: relative; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; position: relative; }
.breadcrumb a:hover { color: var(--volt); }
.breadcrumb span { opacity: .5; }

/* ============================================================
   TARIFAS
   ============================================================ */
.price-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.price-card.featured h3, .price-card.featured .price { color: var(--white); }
.price-card .plan-name { font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.price-card.featured .badge-top { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--volt); color: var(--ink); padding: 6px 16px; border-radius: 999px; font-family: var(--ff-display); font-weight: 700; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.price-card .price { font-family: var(--ff-display); font-weight: 800; font-size: 3.2rem; letter-spacing: -.03em; line-height: 1; margin: 16px 0 4px; }
.price-card .price sup { font-size: 1.4rem; top: -.7em; }
.price-card .price .per { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card.featured .price .per { color: rgba(255,255,255,.6); }
.price-card .note { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.price-card.featured .note { color: rgba(255,255,255,.65); }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.price-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.price-list .ic { color: var(--green-600); flex: none; }
.price-card.featured .price-list .ic { color: var(--volt); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
.gallery a.tall { grid-row: span 2; aspect-ratio: 1/2; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery a.tall { grid-row: span 1; aspect-ratio: 1; } }

/* SEO H1 on center pages — keyword-led, with a smaller secondary locality */
.center-h1 .h1-small { font-size: .48em; font-weight: 700; opacity: .82; letter-spacing: -.01em; }

/* Center page layouts */
.center-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.center-form-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .center-hero-grid, .center-form-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Homogeneous gallery — uniform tiles, clean and consistent */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid a { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid a::after { content: ""; position: absolute; inset: 0; background: rgba(16,37,46,0); transition: background .3s; }
.gallery-grid a:hover::after { background: rgba(16,37,46,.14); }
.gallery-grid a:hover img { transform: scale(1.07); }
@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Centered gallery — for activities with only 1 or 2 photos, so they don't sit lonely on one side */
.gallery-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.gallery-center a { flex: 0 1 460px; max-width: 460px; aspect-ratio: 4/3; position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-center a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-center a::after { content: ""; position: absolute; inset: 0; background: rgba(16,37,46,0); transition: background .3s; }
.gallery-center a:hover::after { background: rgba(16,37,46,.14); }
.gallery-center a:hover img { transform: scale(1.06); }
@media (max-width: 520px) { .gallery-center a { flex-basis: 100%; max-width: 100%; } }

/* Aesthetic mosaic gallery */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 172px; gap: 12px; }
.mosaic a { border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic a:hover img { transform: scale(1.08); }
.mosaic a::after { content: ""; position: absolute; inset: 0; background: rgba(16,37,46,0); transition: background .3s; }
.mosaic a:hover::after { background: rgba(16,37,46,.12); }
.mosaic .m0 { grid-column: span 2; grid-row: span 2; }
.mosaic .m3 { grid-row: span 2; }
.mosaic .m6 { grid-column: span 2; }
@media (max-width: 760px) {
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .mosaic .m0 { grid-column: span 2; grid-row: span 2; }
    .mosaic .m3, .mosaic .m6 { grid-column: auto; grid-row: auto; }
}

/* Access cards (reserva / horario / cómo llegar / socios) */
.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.access-card { display: flex; align-items: center; gap: 16px; text-align: left; width: 100%; padding: 22px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; font-family: inherit; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; color: var(--ink); }
.access-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow); }
.access-card .ic-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--volt); display: grid; place-items: center; flex: none; }
.access-card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.access-card p { margin: 0; font-size: .85rem; color: var(--muted); }
.access-card > .ic:last-child { margin-left: auto; color: var(--green-600); flex: none; }

/* Schedule embed (TrainingYM) */
.schedule-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.schedule-embed iframe { width: 100%; height: 680px; border: 0; display: block; }
@media (max-width: 640px) { .schedule-embed iframe { height: 560px; } }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(16,37,46,.62); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 20px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal { position: relative; width: 100%; max-width: 560px; background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); transform: translateY(24px) scale(.98); transition: transform .3s var(--ease); }
.modal-backdrop.open .modal { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 10px; border: none; background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.modal-close:hover { background: var(--paper-2); }
[data-show-when-asunto] { display: none; }

/* ============================================================
   CONTACT / FORMS
   ============================================================ */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--ff-display); font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--ff-body); font-size: 1rem; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(134,199,32,.14); outline: none; }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.field-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.field-consent a { color: var(--green-600); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.form-alert.ok { background: rgba(134,199,32,.14); color: #4a6b0e; border: 1px solid rgba(134,199,32,.4); }
.form-alert.err { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }

.contact-info-card { background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: 34px; }
.contact-info-card h3 { color: var(--white); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ic-wrap { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.08); color: var(--volt); display: grid; place-items: center; flex: none; }
.contact-line .lbl { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.contact-line a, .contact-line span.v { color: var(--white); font-weight: 600; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -6%; bottom: -40%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(211,244,39,.16), transparent 60%); }
.cta-band h2 { color: var(--white); position: relative; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 560px; margin-inline: auto; position: relative; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; position: relative; }

/* App promo */
.app-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--paper); border-radius: var(--radius-lg); padding: clamp(32px,5vw,60px); }
@media (max-width: 800px) { .app-promo { grid-template-columns: 1fr; } }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.store-badge-img { display: inline-flex; transition: transform .2s var(--ease); border-radius: 10px; }
.store-badge-img:hover { transform: translateY(-3px); }
.store-badge-img img { height: 48px; width: auto; display: block; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); padding: 11px 18px; border-radius: 12px; transition: transform .2s var(--ease); }
.store-badge:hover { transform: translateY(-3px); }
.store-badge .ic { width: 24px; height: 24px; }
.store-badge small { display: block; font-size: .68rem; opacity: .7; }
.store-badge strong { font-family: var(--ff-display); font-size: .95rem; }
/* Móvil: los dos badges de tienda en la misma línea, compactos */
@media (max-width: 560px) {
    .store-badges { flex-wrap: nowrap; gap: 10px; }
    .store-badge { flex: 1; justify-content: center; padding: 10px 10px; gap: 8px; }
    .store-badge .ic { width: 20px; height: 20px; }
    .store-badge small { font-size: .58rem; }
    .store-badge strong { font-size: .8rem; }
}

/* ============================================================
   VIDEO BAND (Cross JoyFit)
   ============================================================ */
.video-band { position: relative; overflow: hidden; color: var(--white); padding: clamp(70px, 12vw, 150px) 0; }
.video-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.video-band-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,37,46,.92), rgba(16,37,46,.7) 55%, rgba(16,37,46,.4)); }
.video-band-inner { position: relative; z-index: 2; max-width: 640px; }
.video-band-inner h2 { color: var(--white); }
.video-band-inner p { color: rgba(255,255,255,.82); font-size: 1.12rem; margin-bottom: 26px; }

/* ============================================================
   INSTAGRAM FEED
   ============================================================ */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ig-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ig-tile:hover img { transform: scale(1.08); }
.ig-ov { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(16,37,46,0); opacity: 0; transition: opacity .3s, background .3s; }
.ig-tile:hover .ig-ov { opacity: 1; background: rgba(16,37,46,.4); }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   TRIAL FORM (home)
   ============================================================ */
/* Detalle decorativo en el CTA final "Ven a conocernos sin compromiso" */
#prueba-gratis { position: relative; overflow: hidden; }
#prueba-gratis::before { content: ""; position: absolute; left: -8%; top: 50%; transform: translateY(-50%); width: 560px; height: 560px; background: radial-gradient(circle, rgba(211,244,39,.16), transparent 62%); pointer-events: none; z-index: 0; }
#prueba-gratis::after { content: ""; position: absolute; left: -60px; bottom: -60px; width: 240px; height: 240px; border: 2px solid rgba(211,244,39,.14); border-radius: 50%; pointer-events: none; z-index: 0; }
#prueba-gratis .container { position: relative; z-index: 1; }

.trial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.trial-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.trial-list li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); font-weight: 500; }
.trial-list .ic { color: var(--volt); flex: none; }
@media (max-width: 860px) { .trial-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ============================================================
   OFERTA (gestionada desde /admin) + mensaje home
   ============================================================ */
.home-msg-band { background: var(--volt); color: var(--ink); text-align: center; padding: 11px 16px; font-family: var(--ff-display); font-weight: 600; font-size: .95rem; border-bottom: 2px solid var(--ink); }
.home-msg-band strong { font-weight: 800; }
.offer-band { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 54px); position: relative; overflow: hidden; }
.offer-band::before { content: ""; position: absolute; right: -8%; top: -30%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(211,244,39,.18), transparent 60%); pointer-events: none; }
.offer-band.no-img { grid-template-columns: 1fr; text-align: center; }
.offer-band.no-img .offer-copy { max-width: 640px; margin: 0 auto; }
.offer-copy { position: relative; z-index: 1; }
.offer-copy h2 { color: #fff; margin: 16px 0 12px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.offer-copy p { color: rgba(255,255,255,.82); font-size: 1.12rem; margin-bottom: 24px; }
/* Oferta: foto rotativa (entera, sin cortar personas) con el texto superpuesto */
.offer-hero { position: relative; display: flex; align-items: center; min-height: 480px; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.offer-slider { position: absolute; inset: 0; z-index: 0; }
.offer-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: right center; opacity: 0; transition: opacity 1.1s ease; }
.offer-slide.is-active { opacity: 1; }
.offer-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,37,46,.97) 0%, rgba(16,37,46,.88) 34%, rgba(16,37,46,.35) 62%, rgba(16,37,46,0) 100%); }
.offer-hero .offer-copy { position: relative; z-index: 2; color: #fff; max-width: 640px; padding: clamp(30px, 5vw, 62px); }
.offer-hero .offer-copy h2 { color: #fff; margin: 14px 0 14px; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -.01em; }
.offer-hero .offer-copy p { color: #fff; font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.35rem, 2.7vw, 2rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 26px; }
@media (prefers-reduced-motion: reduce) { .offer-slide { transition: none; } }
@media (max-width: 760px) {
    .offer-hero { min-height: 560px; }
    .offer-slide { object-fit: contain; object-position: center top; }
    .offer-overlay { background: linear-gradient(180deg, rgba(16,37,46,.35) 0%, rgba(16,37,46,.75) 55%, rgba(16,37,46,.95) 100%); }
    .offer-hero { align-items: flex-end; }
    .offer-hero .offer-copy { max-width: 100%; text-align: center; }
}
/* Se muestra el póster COMPLETO (sin recortar) */
@media (max-width: 800px) { .offer-band { grid-template-columns: 1fr; text-align: center; } .offer-media { max-width: 420px; margin: 0 auto; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: var(--white); transition: background .2s, transform .2s var(--ease); }
.footer-social a:hover { background: var(--volt); color: var(--ink); transform: translateY(-3px); }
.footer-col h4, .footer-col-title { color: var(--white); font-family: var(--ff-display); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { font-size: .94rem; transition: color .18s; }
.footer-col a:hover { color: var(--volt); }
/* Footer menu links with a representative icon */
.footer-menu a { display: flex; align-items: center; gap: 10px; }
.footer-menu a .ic { width: 17px; height: 17px; flex: none; color: var(--green); transition: color .18s, transform .18s var(--ease); }
.footer-menu a:hover .ic { color: var(--volt); transform: translateX(2px); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .92rem; }
.footer-contact-item .ic { color: var(--volt); flex: none; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .84rem; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--volt); }
/* Franja de partners: logos oficiales en blanco (Technogym + Les Mills) */
.footer-partners { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; padding: 30px 0 6px; }
.fp-title { font-family: var(--ff-display); font-weight: 600; font-size: .74rem; letter-spacing: .02em; text-transform: none;
    background: linear-gradient(90deg, #86c720, #d3f427, #eaff7a, #a6e000, #d3f427, #86c720);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: fpShimmer 5s linear infinite; }
@keyframes fpShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 220% 50%; } }
@media (prefers-reduced-motion: reduce) { .fp-title { animation: none; } }
.fp-logos { display: flex; align-items: center; gap: 32px; }
.fp-logo { width: auto; opacity: .82; transition: opacity .25s ease; filter: brightness(0) invert(1); }
.fp-logos:hover .fp-logo { opacity: .5; }
.fp-logos .fp-logo:hover { opacity: 1; }
.fp-technogym { height: 22px; }
.fp-lesmills { height: 15px; }
.fp-sep { width: 1px; height: 24px; background: rgba(255,255,255,.2); }
@media (max-width: 520px) { .footer-partners { gap: 20px; } .fp-logos { gap: 24px; } }

/* Banda de partners en la home (fondo petróleo, logos blancos) */
.partners-band { background: var(--ink); padding: 46px 0; text-align: center; }
.partners-band-title { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.12; letter-spacing: -.01em; text-transform: none; margin: 0 0 34px;
    background: linear-gradient(90deg, #86c720, #d3f427, #eaff7a, #a6e000, #d3f427, #86c720);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: fpShimmer 5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .partners-band-title { animation: none; } }
.partners-band-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.pb-logo { width: auto; opacity: .9; transition: opacity .25s ease; filter: brightness(0) invert(1); }
.partners-band-logos:hover .pb-logo { opacity: .55; }
.partners-band-logos .pb-logo:hover { opacity: 1; }
.pb-technogym { height: 46px; }
.pb-lesmills { height: 30px; }
.pb-sep { width: 1px; height: 50px; background: rgba(255,255,255,.22); }
@media (max-width: 520px) { .partners-band-logos { gap: 26px; } .pb-technogym { height: 34px; } .pb-lesmills { height: 22px; } }
/* Buttons inside the footer keep their own colours — the generic footer link
   :hover must not turn a volt button's text green-on-green. */
.site-footer a.btn-primary, .site-footer a.btn-primary:hover { color: var(--ink); }
.site-footer a.btn-primary:hover { background: var(--volt-600); }
.made-with a.mw-brand:hover { color: transparent; }

/* "Hecho con amor" credit — green rainbow shimmer */
.made-with { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-family: var(--ff-display); font-weight: 600; font-size: .68rem; letter-spacing: .01em; color: rgba(255,255,255,.45); }
.mw-heart { display: inline-block; color: #86c720; font-size: 1em; animation: mw-beat 1.3s ease-in-out infinite; }
@keyframes mw-beat { 0%,100% { transform: scale(1); } 12% { transform: scale(1.35); } 24% { transform: scale(1); } 36% { transform: scale(1.22); } 50% { transform: scale(1); } }
.mw-brand { font-weight: 800; background: linear-gradient(90deg, #4a6b0e, #6faa14, #86c720, #b6f13a, #d3f427, #b6f13a, #86c720, #6faa14, #4a6b0e); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: mw-shimmer 4.5s linear infinite; }
.mw-brand:hover { text-decoration: underline; text-decoration-color: var(--green); }
@keyframes mw-shimmer { to { background-position: 300% center; } }
@media (prefers-reduced-motion: reduce) { .mw-heart, .mw-brand { animation: none; } }

/* Floating whatsapp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 32px; height: 32px; }

/* Floating JOYFIT call button — expands to call each centre / contact */
.fab-call { position: fixed; right: 20px; bottom: 88px; z-index: 72; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-toggle { position: relative; order: 2; width: 58px; height: 58px; border-radius: 50%; background: var(--volt); color: var(--ink); border: none; cursor: pointer; box-shadow: 0 12px 26px -8px rgba(134,199,32,.7); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.fab-toggle::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--volt); opacity: .55; animation: fab-pulse 2.2s ease-out infinite; z-index: -1; }
.fab-toggle:hover { transform: scale(1.08); }
.fab-j { font-family: var(--ff-display); font-weight: 800; font-size: 2rem; line-height: 1; margin-top: -2px; }
.fab-x { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.6); transition: opacity .25s, transform .25s var(--ease); }
.fab-call.open .fab-toggle { background: var(--ink); color: var(--volt); }
.fab-call.open .fab-toggle::before { animation: none; opacity: 0; }
.fab-call.open .fab-j { opacity: 0; }
.fab-call.open .fab-x { opacity: 1; transform: none; }
@keyframes fab-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
.fab-menu { order: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s; }
.fab-call.open .fab-menu { opacity: 1; visibility: visible; transform: none; }
.fab-item { display: inline-flex; align-items: center; gap: 12px; background: var(--white); color: var(--ink); padding: 8px 8px 8px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); white-space: nowrap; }
.fab-item:hover { transform: translateX(-4px); }
.fab-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: right; }
.fab-lbl { font-family: var(--ff-display); font-weight: 700; font-size: .9rem; }
.fab-txt small { font-weight: 500; font-size: .78rem; color: var(--muted); }
.fab-item .fab-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--volt); color: var(--ink); display: grid; place-items: center; flex: none; }
@media (prefers-reduced-motion: reduce) { .fab-toggle::before { animation: none; } }

/* ============================================================
   Aviso de cookies (personalizado, abajo y centrado)
   ============================================================ */
.cookie-banner { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 26px); z-index: 95; width: min(720px, calc(100% - 28px)); background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px 24px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.cookie-banner.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cookie-inner { display: flex; align-items: center; gap: 18px; }
.cookie-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--volt); display: grid; place-items: center; flex: none; }
.cookie-text strong { font-family: var(--ff-display); font-weight: 700; display: block; margin-bottom: 3px; }
.cookie-text p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.72); line-height: 1.5; }
.cookie-text a { color: var(--volt); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 640px) {
    .cookie-banner { bottom: 12px; padding: 18px; }
    .cookie-inner { flex-direction: column; text-align: center; gap: 14px; }
    .cookie-ic { display: none; }
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1; }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
/* Reveal-on-scroll only hides content when JS is confirmed present (html.js);
   without JS everything stays visible. main.js also has a failsafe timer so
   content is never left permanently hidden if the observer doesn't fire. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
/* Móvil: reveal más agresivo (más recorrido) para que las imágenes entren con más fuerza */
@media (max-width: 760px) {
    .js .reveal { transform: translateY(52px) scale(.97); transition: opacity .8s var(--ease), transform .8s var(--ease); }
    .js .reveal.in { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; opacity: 1; } }

/* Utility */
.stack-lg > * + * { margin-top: 20px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.text-balance { text-wrap: balance; }
.hide-mobile { }
@media (max-width: 620px) { .hide-mobile { display: none !important; } }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox { position: fixed; inset: 0; background: rgba(16,37,46,.94); z-index: 100; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: none; cursor: pointer; width: 54px; height: 54px; border-radius: 50%; font-size: 30px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: var(--volt); color: var(--ink); }
.lb-close { top: 22px; right: 22px; font-size: 34px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) { .lb-prev { left: 10px; } .lb-next { right: 10px; } .lightbox { padding: 16px; } }
