/* ============================================
   ONA Club - Página pública /club (club.php)
   Colores y radios de variables.css (tokens ONA). Móvil primero; en escritorio
   el contenido se centra a 760 px y las tarjetas pasan a 2-3 columnas.
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Manrope', system-ui, sans-serif;
    color: var(--text-primary);
    background: var(--bg-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { flex-shrink: 0; }

/* ---------- Barra superior ---------- */
.cl-top {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
    background: rgba(247, 241, 234, 0.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}
.cl-top__logo img { height: 34px; width: auto; }

/* ---------- Botones ---------- */
.cl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    border-radius: var(--border-radius-full);
    font: 700 15px/1.2 'Manrope', sans-serif; text-decoration: none;
    transition: transform .15s ease, background .15s ease;
}
.cl-btn:active { transform: scale(.98); }
.cl-btn--primary { background: var(--color-primary-dark); color: #fff; }
.cl-btn--primary:hover { background: var(--color-primary-darker); }
.cl-btn--light { background: rgba(255, 255, 255, .92); color: var(--text-heading); }
.cl-btn--ghost { border: 1.5px solid var(--color-primary-dark); color: var(--color-primary-darker); background: transparent; }
.cl-btn--sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }

/* ---------- Portada ---------- */
.cl-hero {
    position: relative;
    min-height: min(78vh, 640px);
    display: flex; align-items: flex-end;
    background: var(--color-primary-darker) var(--hero, none) center / cover no-repeat;
    color: #fff;
}
.cl-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(42, 34, 27, .15) 0%, rgba(42, 34, 27, .55) 45%, rgba(42, 34, 27, .88) 100%);
}
.cl-hero__inner { position: relative; width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 16px 32px; }
.cl-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin-bottom: 10px; }
.cl-hero__title {
    font-family: 'Fraunces', Georgia, serif; font-weight: 500;
    font-size: clamp(32px, 8.4vw, 52px); line-height: 1.08; letter-spacing: -.01em;
}
.cl-hero__title em { font-style: italic; color: #f1e3d0; }
.cl-hero__lead { margin-top: 14px; font-size: 17px; max-width: 34em; opacity: .95; }
.cl-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cl-hero__note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; opacity: .92; }

/* ---------- Secciones ---------- */
.cl-sec, .cl-final { scroll-margin-top: 64px; } /* que la barra fija no tape el título al saltar a #sedes… */
.cl-sec { max-width: 760px; margin: 0 auto; padding: 40px 16px 8px; }
.cl-sec--alt {
    max-width: none; margin-top: 36px; padding-bottom: 40px;
    background: var(--bg-cream-deep);
}
.cl-sec--alt > * { max-width: 728px; margin-left: auto; margin-right: auto; }
.cl-h2 {
    font-family: 'Fraunces', Georgia, serif; font-weight: 500;
    font-size: clamp(26px, 6vw, 34px); line-height: 1.15; color: var(--text-heading);
    margin-bottom: 14px;
}
.cl-h3 { font-size: 17px; font-weight: 700; color: var(--text-heading); line-height: 1.3; }
.cl-text { font-size: 16px; color: var(--text-primary); }
.cl-small { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.cl-muted { color: var(--text-muted); margin-top: 12px; }
.cl-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.cl-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
    font-weight: 700; font-size: 14px; color: var(--color-primary-darker); text-decoration: none;
}
.cl-link:hover { text-decoration: underline; }

/* Etiquetas */
.cl-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 16px; }
.cl-pills li {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--border-radius-full);
    background: var(--bg-card); box-shadow: var(--shadow-sm);
    font-size: 14px; font-weight: 600; color: var(--text-heading);
}
.cl-pills svg { color: var(--color-primary-dark); }

/* Actividades */
.cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cl-card { background: var(--bg-card); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cl-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-cream-deep); }
.cl-card__body { padding: 12px 14px 14px; }
.cl-card__body .cl-small { margin-top: 4px; }

/* Sedes */
.cl-sedes { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.cl-sede {
    display: flex; gap: 14px; align-items: center;
    padding: 12px; background: var(--bg-card); border-radius: var(--border-radius); box-shadow: var(--shadow-sm);
}
.cl-sede__ico {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    background: rgba(var(--color-primary-rgb), .18);
}
.cl-sede__ico { display: flex; align-items: center; justify-content: center; color: var(--color-primary-darker); }
.cl-sede__txt { min-width: 0; }
.cl-sede__txt .cl-link { margin-top: 4px; }

/* Pasos de la app */
.cl-steps { list-style: none; display: grid; gap: 12px; }
.cl-steps li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; background: var(--bg-card); border-radius: var(--border-radius); box-shadow: var(--shadow-sm);
}
.cl-steps__ico {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--color-primary-rgb), .18); color: var(--color-primary-darker);
}
.cl-steps .cl-small { margin-top: 2px; }

/* Listas de eventos y blog */
.cl-list { display: grid; gap: 10px; }
.cl-row {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    padding: 14px 16px; background: var(--bg-card); border-radius: var(--border-radius); box-shadow: var(--shadow-sm);
    color: var(--text-heading);
}
.cl-row:hover { background: var(--bg-card-hover); }
.cl-row > svg { color: var(--text-muted); margin-left: auto; }
.cl-row__ico { color: var(--color-primary-dark); display: flex; }
.cl-row__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Preguntas */
.cl-faq { display: grid; gap: 8px; }
.cl-faq details { background: var(--bg-card); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); }
.cl-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px; cursor: pointer; list-style: none;
}
.cl-faq summary::-webkit-details-marker { display: none; }
.cl-faq summary svg { color: var(--text-muted); transition: transform .2s ease; }
.cl-faq details[open] summary svg { transform: rotate(180deg); }
.cl-faq .cl-text { padding: 0 16px 16px; color: var(--text-secondary); font-size: 15px; }

/* Llamada final */
.cl-final { max-width: 760px; margin: 40px auto 0; padding: 36px 16px; text-align: center; }
.cl-final .cl-text { margin-bottom: 18px; }

/* Pie */
.cl-foot {
    margin-top: 24px; padding: 32px 16px calc(32px + env(safe-area-inset-bottom));
    background: var(--bg-cream-deep); text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cl-foot img { height: 30px; width: auto; }
.cl-foot__contact { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.cl-foot__contact a, .cl-foot__links a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--text-secondary); text-decoration: none;
}
.cl-foot__contact a:hover, .cl-foot__links a:hover { color: var(--text-heading); text-decoration: underline; }
.cl-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }

/* ---------- Escritorio ---------- */
@media (min-width: 720px) {
    .cl-top { padding-left: 32px; padding-right: 32px; }
    .cl-hero__inner { padding: 72px 16px 48px; }
    .cl-grid { grid-template-columns: repeat(3, 1fr); }
    .cl-sedes, .cl-steps { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cl-btn, .cl-faq summary svg { transition: none; }
}
