/* ══════════════════════════════════════════════════════════════
   ÁPICE FITNESS CLUB — Hoja de estilos principal
   ══════════════════════════════════════════════════════════════ */

/* ─── Design tokens ───────────────────────────────────────────── */
:root {
  --ink:       #0b0d0f;
  --charcoal:  #191c1f;
  --surface:   #f5f2ea;
  --white:     #ffffff;
  --gold:      #c8a84c;
  --lime:      #d4fc3e;
  --lime-dim:  #b8e030;
  --line:      #ddd9ce;
  --muted:     #717870;
  --danger:    #c0212f;
  --success:   #1d7a43;
  --radius:    8px;
  --header-h:  72px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.18);
  --ease:      cubic-bezier(.4,0,.2,1);
  --transition: 180ms var(--ease);
}

/* ─── Reset & base ────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a { color: inherit; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; padding: 0; }

/* ─── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: "Barlow Condensed", Impact, Haettenschweiler, sans-serif;
  font-weight: 800;
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(4.4rem, 11vw, 9rem); }
h2 { font-size: clamp(3rem, 7vw, 5.6rem); }
h3 { font-size: 1.3rem; font-family: Inter, sans-serif; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.3; }

.eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
  max-width: 560px;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover   { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active  { transform: translateY(0); }
.btn:disabled,
.btn[aria-busy="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }

.btn-lime    { background: var(--lime); color: var(--ink); box-shadow: 0 8px 24px rgba(212,252,62,.26); }
.btn-lime:hover { background: var(--lime-dim); }

.btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 8px 24px rgba(212,252,62,.24); }
.btn-primary:hover { background: var(--lime-dim); }

.btn-dark    { background: var(--ink); color: var(--white); }
.btn-dark:hover  { background: var(--charcoal); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost.danger {
  color: var(--danger);
  border-color: rgba(192,33,47,.4);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
}

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0 clamp(18px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(245,242,234,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(245,242,234,.97);
  box-shadow: var(--shadow-sm);
}

.brand img { width: 110px; height: 54px; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: rgba(0,0,0,.06); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px clamp(18px, 5vw, 80px);
  gap: 4px;
  transform: translateY(-110%);
  transition: transform .28s var(--ease);
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  color: var(--ink);
  transition: background var(--transition);
}
.mobile-nav a:hover { background: rgba(0,0,0,.06); }

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: clamp(60px, 8vw, 110px) clamp(18px, 6vw, 88px) clamp(48px, 6vw, 80px);
  color: var(--white);
  overflow: hidden;
  background:
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=2000&q=82")
    center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8,9,10,.85) 0%,
    rgba(8,9,10,.6) 55%,
    rgba(8,9,10,.25) 100%
  );
}

.hero-content {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.hero-copy { max-width: 720px; }
.hero-copy h1 { margin: 14px 0 20px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
}

.stat-box {
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(11,13,15,.62);
  backdrop-filter: blur(12px);
}
.stat-box strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
}
.stat-box span {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.55);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ─── Sections ────────────────────────────────────────────────── */
.section {
  padding: clamp(72px, 9vw, 112px) clamp(18px, 6vw, 88px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-lead {
  max-width: 560px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.6;
}

/* ─── Plans ───────────────────────────────────────────────────── */
.plans-section { background: var(--white); }

.plans-banner {
  align-self: flex-start;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.plan-skeleton {
  height: 400px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ede9df 25%, #e5e1d7 50%, #ede9df 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.plan-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.plan-card.featured:hover { border-color: var(--lime); }

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 22px;
  width: max-content;
}
.plan-badge::before { content: "★"; }

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-price {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 4.4rem;
  font-weight: 800;
  line-height: .88;
  margin: 14px 0;
  letter-spacing: -.02em;
}

.plan-price sup {
  font-size: 1.6rem;
  vertical-align: super;
  font-weight: 700;
}

.plan-desc {
  font-size: .9rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 22px;
}

.plan-card.featured .plan-desc { color: rgba(255,255,255,.72); }

.plan-details {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(120,120,120,.2);
}

.plan-detail {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .86rem;
}

.plan-detail dt { color: var(--muted); }
.plan-card.featured .plan-detail dt { color: rgba(255,255,255,.6); }
.plan-detail dd { font-weight: 800; margin: 0; }

.plan-card .btn { margin-top: auto; }

.plans-error {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(192,33,47,.08);
  color: var(--danger);
  font-weight: 700;
}

/* ─── Benefits ────────────────────────────────────────────────── */
.benefits-section {
  background: #1c1f1c;
  color: var(--white);
}
.benefits-section .eyebrow { color: var(--lime); }
.benefits-section .section-lead { color: rgba(255,255,255,.65); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  transition: border-color var(--transition), background var(--transition);
}
.benefit-card:hover {
  border-color: rgba(212,252,62,.4);
  background: rgba(212,252,62,.04);
}
.benefit-card.featured {
  background: rgba(212,252,62,.1);
  border-color: rgba(212,252,62,.45);
}

.benefit-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: block;
  filter: saturate(1.1);
}

.benefit-card h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.benefit-card p {
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  line-height: 1.6;
}

/* ─── Gallery ─────────────────────────────────────────────────── */
.gallery-section { padding-bottom: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .4s var(--ease);
  overflow: hidden;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item.tall { grid-row: span 2; }

/* ─── How it works ────────────────────────────────────────────── */
.how-section { background: var(--surface); }

.steps-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
}

.step {
  flex: 1;
  padding: 32px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--lime-dim);
  line-height: 1;
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 10px; }
.step p  { color: var(--muted); font-size: .92rem; line-height: 1.6; }

.step-arrow {
  font-size: 2rem;
  font-weight: 300;
  color: var(--line);
  flex-shrink: 0;
}

/* ─── Contact ─────────────────────────────────────────────────── */
.contact-section {
  background: var(--ink);
  color: var(--white);
}
.contact-section .eyebrow { color: var(--lime); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.contact-copy h2 { margin: 10px 0 18px; }
.contact-copy p  { color: rgba(255,255,255,.7); line-height: 1.65; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--lime); }

.schedule-box {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
}
.schedule-box h3 {
  color: var(--white);
  margin-bottom: 18px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table td {
  padding: 10px 0;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
}
.schedule-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--lime);
}
.schedule-table tr:last-child td { border-bottom: none; }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: #080909;
  color: rgba(255,255,255,.6);
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer-inner {
  padding: 48px clamp(18px, 6vw, 88px) 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: end;
}

.footer-brand img { margin-bottom: 10px; }
.footer-brand p { font-size: .88rem; max-width: 300px; line-height: 1.5; }

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--lime); }

.footer-legal {
  grid-column: 1 / -1;
  font-size: .78rem;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
}

/* ─── Modal ───────────────────────────────────────────────────── */
.modal {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  animation: modalIn .22s var(--ease);
}

@keyframes modalIn {
  from { transform: scale(.95) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal::backdrop {
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}

.modal-inner {
  padding: 36px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: #f0ece2; color: var(--ink); }

/* ─── Auth form ───────────────────────────────────────────────── */
.auth-form { display: grid; gap: 16px; }

.auth-form h2 {
  font-size: clamp(2.8rem, 10vw, 4.2rem);
  margin: 8px 0 4px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-label {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink);
}

.form-label small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.form-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,168,76,.18);
}
.form-input::placeholder { color: var(--muted); }

.auth-switch {
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}

/* ─── Error / success / notice ────────────────────────────────── */
.error   { color: var(--danger); font-size: .88rem; font-weight: 700; }
.success { color: var(--success); font-weight: 700; }

.notice {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.5;
}
.notice.error-notice   { background: rgba(192,33,47,.08);  color: var(--danger); border: 1px solid rgba(192,33,47,.2); }
.notice.success-notice { background: rgba(29,122,67,.08);  color: var(--success); border: 1px solid rgba(29,122,67,.2); }

/* ─── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  min-width: 260px;
  max-width: calc(100vw - 40px);
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  z-index: 200;
  opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

/* ─── Status pill ─────────────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
  background: #888;
}
.status::before { content: "●"; font-size: .55rem; }
.status.active   { background: var(--success); }
.status.inactive { background: #777; }

/* ══════════════════════════════════════════════════════════════
   ACCOUNT PAGE
   ══════════════════════════════════════════════════════════════ */
.account-page { background: var(--surface); }

.account-shell {
  width: min(1140px, calc(100vw - 32px));
  margin: 52px auto 96px;
}

.account-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 36px;
}

.account-greeting h1 {
  font-size: clamp(3.6rem, 9vw, 6.5rem);
  margin-bottom: 6px;
}
.account-greeting p { color: var(--muted); }

/* Member card */
.member-card {
  border-radius: 14px;
  padding: 30px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(200,168,76,.22) 0%, transparent 35%),
    linear-gradient(315deg, rgba(212,252,62,.08) 0%, transparent 40%),
    var(--ink);
  box-shadow: 0 28px 72px rgba(0,0,0,.22);
  position: relative;
  overflow: hidden;
}
.member-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(212,252,62,.06);
  pointer-events: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.card-club-name {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.card-status-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--lime);
  color: var(--ink);
}

.card-body {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 256px;
  gap: 24px;
  align-items: end;
}

.member-photo {
  width: 108px;
  height: 108px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

.member-photo-placeholder {
  width: 108px;
  height: 108px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: .02em;
}

.card-info h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin-bottom: 10px;
  overflow-wrap: anywhere;
  color: var(--white);
}

.card-info p {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 4px;
}

.card-info .plan-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(212,252,62,.15);
  color: var(--lime);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.card-qr {
  width: 256px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 0;
  justify-self: center;
  background: var(--white);
  display: block;
}

.card-qr[hidden] { display: block; visibility: hidden; }

.card-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

.card-refresh-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: rgba(255,255,255,.75);
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.card-refresh-btn:hover { background: rgba(255,255,255,.18); }

/* No membership */
.empty-membership {
  margin-top: 28px;
  padding: 36px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: var(--white);
}
.empty-membership h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 12px 0; }
.empty-membership p  { color: var(--muted); margin-bottom: 22px; }

/* Photo update form */
.photo-update-form {
  margin-top: 28px;
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.photo-update-form label { flex: 1; min-width: 240px; }
.photo-update-form .form-label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 800; }

/* Admin panel */
.admin-section { margin-top: 56px; }
.admin-section h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 10px 0 24px; }

.table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: .88rem;
}

tr:last-child td { border-bottom: none; }

th {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  background: var(--surface);
}

td small {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  margin-top: 2px;
}

.member-avatar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--line);
  flex-shrink: 0;
}

.avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .05em;
  flex-shrink: 0;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.admin-row-actions select {
  flex: 1;
  min-height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 600;
}

/* ─── Verification page ───────────────────────────────────────── */
.verify-shell { max-width: 680px; }

.verify-card {
  margin-top: 32px;
  padding: 36px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.verify-card h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  margin: 10px 0 18px;
  color: var(--white);
}

.verify-card p { color: rgba(255,255,255,.7); line-height: 1.6; }

.verify-error {
  margin-top: 32px;
  padding: 32px;
  border: 1.5px solid rgba(192,33,47,.3);
  border-radius: var(--radius);
  background: rgba(192,33,47,.06);
}
.verify-error h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--danger); margin: 8px 0 14px; }

/* ─── Reveal animation ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; }
  .gallery-item.tall { grid-row: span 1; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .header-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  h1 { font-size: 4.2rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .card-body { grid-template-columns: 96px 1fr; }
  .card-qr { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .hero-stats { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 200px); }
  .card-body { grid-template-columns: 1fr; }
  .photo-update-form { flex-direction: column; }
  .admin-row-actions { flex-wrap: wrap; }
  .plans-grid { grid-template-columns: 1fr; }
}

/* ─── Loading state ────────────────────────────────────────────── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 260px;
  color: var(--muted);
  font-weight: 600;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Admin stat mini ──────────────────────────────────────────── */
.stat-mini {
  padding: 16px 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  min-width: 130px;
}

.stat-mini strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.stat-mini span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat-mini.active { border-color: rgba(29,122,67,.35); background: rgba(29,122,67,.05); }
.stat-mini.active strong { color: var(--success); }

/* ─── Photo Picker & Camera ────────────────────────────────────── */
.photo-picker {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.photo-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.photo-upload-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.photo-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.photo-preview-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #222;
  border: 2px solid var(--gold);
}

.photo-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.camera-modal-view {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  padding: 12px;
}

.camera-viewport {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.camera-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Efecto espejo selfie */
}

.camera-guide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.face-oval {
  width: 70%;
  height: 80%;
  border: 2.5px dashed var(--lime);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  animation: pulseGuide 2s infinite ease-in-out;
}

@keyframes pulseGuide {
  0%, 100% { border-color: var(--lime); transform: scale(1); }
  50% { border-color: var(--gold); transform: scale(1.02); }
}

.guide-text {
  position: absolute;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0;
  letter-spacing: 0.02em;
}

.camera-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

/* ─── Admin QR Scanner & Verification ─────────────────────────── */
.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--line);
}

.scan-qr-main-btn {
  font-size: 1rem;
  padding: 0 24px;
}

.qr-scanner-modal-inner {
  max-width: 480px;
  padding: 28px;
}

.qr-reader-container {
  width: 100%;
  max-width: 380px;
  margin: 12px auto;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.qr-reader-container video {
  width: 100% !important;
  border-radius: 10px;
}

.qr-scanner-header {
  text-align: center;
  margin-bottom: 12px;
}

.qr-scanner-footer {
  text-align: center;
  margin-top: 8px;
}

.qr-hint-text {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.verify-result-modal {
  padding: 10px 0;
  text-align: center;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.verify-badge.active {
  background: var(--success);
  color: #fff;
}

.verify-badge.inactive {
  background: var(--danger);
  color: #fff;
}

.verify-badge-icon {
  font-size: 1.1rem;
}

.verify-member-info {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius);
  margin: 16px 0;
  border: 1px solid var(--line);
}

.verify-modal-photo {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.verify-member-name {
  font-size: 1.6rem;
  margin: 0 0 4px;
  color: var(--ink);
}

.verify-member-rut {
  font-size: 0.9rem;
  margin: 0 0 2px;
  color: var(--charcoal);
}

.verify-member-email {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.verify-plan-box {
  background: var(--ink);
  color: #fff;
  padding: 16px;
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.verify-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verify-plan-row span {
  color: rgba(255, 255, 255, 0.65);
}

.verify-error-msg {
  color: var(--danger);
  font-weight: 700;
  font-size: 1rem;
  margin: 16px 0 24px;
}

