/* ==========================================================================
   Attomos Foundation — páginas (inicio, auth, listas, rescatista, panel)
   Requiere foundation.css
   ========================================================================== */

.af-page { min-height: 100vh; padding: 110px 20px 80px; }
.af-wrap { max-width: 1180px; margin: 0 auto; }
.af-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--af-ring), 0 8px 18px -12px rgba(6, 182, 212, 0.5); font-size: 13px; font-weight: 700; color: var(--af-cyan-strong); }
.af-eyebrow .af-dot-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--af-coral-soft); color: var(--af-coral-strong); }
.af-eyebrow .af-dot-ic svg { width: 14px; height: 14px; fill: currentColor; animation: afBeat 1.6s ease-in-out infinite; }
.af-h1 { margin: 18px 0 14px; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.af-h1 em { font-style: normal; background: linear-gradient(100deg, var(--af-cyan) 0%, #0e7490 50%, var(--af-coral) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.af-h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; font-weight: 800; }
.af-lead { margin: 0; max-width: 620px; font-size: 18px; color: var(--af-muted); }
.af-section { margin-top: 72px; }
.af-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.af-section-head p { margin: 0; color: var(--af-muted); }

/* Fondo suave (manchas cian/coral, sin gris) */
.af-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.af-glow::before,
.af-glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.af-glow::before { width: 520px; height: 520px; top: -160px; right: -120px; background: rgba(34, 211, 238, 0.28); }
.af-glow::after { width: 440px; height: 440px; bottom: -180px; left: -140px; background: rgba(255, 107, 107, 0.16); }

/* --------------------------------------------------------------------------
   Inicio
   -------------------------------------------------------------------------- */
.af-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.af-hero-cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.af-hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.af-hero-orb { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #a5f3fc, #22d3ee 40%, #0891b2 100%); box-shadow: inset 0 -20px 60px rgba(8, 145, 178, 0.5), 0 40px 80px -30px rgba(6, 182, 212, 0.7); }
.af-hero-orb svg { position: absolute; inset: 22%; width: 56%; height: 56%; filter: drop-shadow(0 10px 20px rgba(8, 145, 178, 0.5)); }
.af-hero-bubble { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 36px -16px rgba(15, 23, 42, 0.35); font-size: 14px; font-weight: 650; white-space: nowrap; animation: afFloat 4s ease-in-out infinite; }
.af-hero-bubble small { display: block; color: var(--af-muted); font-weight: 500; font-size: 12px; }
.af-hero-bubble.b1 { top: 6%; left: -4%; }
.af-hero-bubble.b2 { top: 46%; right: -6%; animation-delay: -1.3s; }
.af-hero-bubble.b3 { bottom: 4%; left: 6%; animation-delay: -2.6s; }

.af-ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 860px; }
.af-way { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 32px; background: #fff; box-shadow: var(--af-ring), var(--af-shadow); text-decoration: none; transition: transform 0.55s var(--af-spring), box-shadow 0.3s ease; }
.af-way:hover { transform: translateY(-6px); box-shadow: var(--af-ring), var(--af-shadow-lift); }
.af-way:active { transform: scale(0.97); }
.af-way h3 { margin: 8px 0 0; font-size: 20px; letter-spacing: -0.02em; }
.af-way p { margin: 0; color: var(--af-muted); }
.af-way .af-ic { width: 52px; height: 52px; }
.af-way .af-ic svg { width: 24px; height: 24px; }
.af-way-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--af-cyan-strong); }
.af-way-go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; transition: transform 0.45s var(--af-spring); }
.af-way:hover .af-way-go svg { transform: translateX(4px); }

.af-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 36px; border-radius: 36px; background: linear-gradient(120deg, #0891b2, #06b6d4 55%, #22d3ee); color: #fff; box-shadow: 0 30px 60px -30px rgba(6, 182, 212, 0.8); flex-wrap: wrap; }
.af-cta-band h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.af-cta-band p { margin: 0; opacity: 0.9; }
.af-cta-band .af-btn-ghost { color: var(--af-cyan-strong); }

.af-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.af-price { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.af-price small { font-size: 13px; font-weight: 600; color: var(--af-muted); }

/* --------------------------------------------------------------------------
   Login / registro
   -------------------------------------------------------------------------- */
.af-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 96px 20px 40px; max-width: 1180px; margin: 0 auto; align-items: center; }
.af-auth-side { position: relative; padding: 40px 40px 40px 10px; }
.af-auth-side h1 { margin: 18px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.035em; }
.af-auth-side p { margin: 0; color: var(--af-muted); font-size: 17px; max-width: 440px; }
.af-auth-list { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.af-auth-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--af-ink-2); }
.af-auth-list .af-ic { width: 36px; height: 36px; }
.af-auth-list .af-ic svg { width: 17px; height: 17px; }
.af-auth-card { width: 100%; max-width: 460px; justify-self: center; padding: 34px; border-radius: 36px; background: #fff; box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.1), 0 40px 80px -40px rgba(6, 182, 212, 0.55), 0 10px 30px -20px rgba(15, 23, 42, 0.2); }
.af-auth-card h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.03em; }
.af-auth-card > p { margin: 0 0 22px; color: var(--af-muted); }
.af-form { display: flex; flex-direction: column; gap: 16px; }
.af-form-error { display: none; padding: 10px 16px; border-radius: 999px; background: rgba(244, 63, 94, 0.08); color: #e11d48; font-size: 14px; font-weight: 600; }
.af-form-error.is-show { display: block; animation: afShake 0.45s ease; }
.af-auth-alt { margin: 18px 0 0; text-align: center; color: var(--af-muted); font-size: 14px; }
.af-auth-alt a { color: var(--af-cyan-strong); font-weight: 700; text-decoration: none; }
.af-role-seg { display: flex; width: 100%; }
.af-role-seg .af-seg-btn { flex: 1; justify-content: center; padding: 11px 10px; }
.af-role-note { margin: -4px 0 0; padding: 0 6px; font-size: 13px; color: var(--af-muted); min-height: 20px; transition: opacity 0.25s ease; }
.af-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--af-muted); cursor: pointer; }
.af-check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 1.5px solid rgba(15, 23, 42, 0.18); background: #fff; display: grid; place-items: center; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.45s var(--af-spring); }
.af-check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform 0.45s var(--af-spring); }
.af-check input:checked { background: var(--af-cyan); border-color: var(--af-cyan); }
.af-check input:checked::after { transform: rotate(-45deg) scale(1); }
.af-check input:active { transform: scale(0.85); }
.af-check a { color: var(--af-cyan-strong); }
.af-strength { display: flex; gap: 4px; margin-top: 2px; padding: 0 6px; }
.af-strength i { flex: 1; height: 4px; border-radius: 4px; background: rgba(15, 23, 42, 0.08); transition: background 0.3s ease, transform 0.45s var(--af-spring); }
.af-strength i.is-on { background: var(--af-cyan); transform: scaleY(1.4); }
.af-strength.is-weak i.is-on { background: var(--af-coral); }

/* --------------------------------------------------------------------------
   Página pública del rescatista
   -------------------------------------------------------------------------- */
.af-profile-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; color: var(--af-muted); font-size: 14px; }
.af-profile-meta span { display: inline-flex; align-items: center; gap: 5px; }
.af-profile-meta svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.af-profile-body { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-top: 30px; align-items: start; }
.af-profile-tabs { margin-bottom: 20px; }
.af-profile-body > * { min-width: 0; }
.af-tab-short { display: none; }
.af-panel-fade { animation: afPanelIn 0.4s ease-out; }
@keyframes afPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.af-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.af-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 0;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--af-ring), var(--af-shadow);
  text-align: left;
  cursor: pointer;
  transition: transform 0.55s var(--af-spring), box-shadow 0.3s ease;
}
.af-plan:hover { transform: translateY(-4px); }
.af-plan:active { transform: scale(0.97); }
.af-plan.is-picked { box-shadow: 0 0 0 2.5px var(--af-cyan), 0 24px 44px -22px rgba(6, 182, 212, 0.6); }
.af-plan.is-featured::before { content: "Popular"; position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--af-coral-soft); color: var(--af-coral-strong); font-size: 11.5px; font-weight: 800; }
.af-plan h4 { margin: 0; font-size: 16px; padding-right: 70px; }
.af-plan .af-price { font-size: 28px; }
.af-plan p { margin: 0; font-size: 14px; color: var(--af-muted); }
.af-plan ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.af-plan li { display: flex; gap: 8px; font-size: 13.5px; color: var(--af-ink-2); }
.af-plan li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px; background: var(--af-cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.af-plan-radio { position: absolute; right: 18px; bottom: 18px; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(15, 23, 42, 0.18); transition: box-shadow 0.3s var(--af-spring), background 0.2s ease; }
.af-plan.is-picked .af-plan-radio { background: var(--af-cyan); box-shadow: inset 0 0 0 6px var(--af-cyan), inset 0 0 0 20px #fff; }

.af-custom { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px 22px; border-radius: 30px; background: #fff; box-shadow: var(--af-ring), var(--af-shadow); flex-wrap: wrap; transition: box-shadow 0.3s ease; }
.af-custom.is-picked { box-shadow: 0 0 0 2.5px var(--af-cyan), 0 24px 44px -22px rgba(6, 182, 212, 0.6); }
.af-custom-text { flex: 1; min-width: 180px; }
.af-custom-text strong { display: block; }
.af-custom-text span { font-size: 13.5px; color: var(--af-muted); }
.af-custom .af-input-wrap { width: 190px; }

.af-amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.af-amount {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 10px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--af-ring), 0 10px 22px -16px rgba(15, 23, 42, 0.35);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.5s var(--af-spring), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.af-amount small { font-size: 11.5px; font-weight: 650; color: var(--af-muted); letter-spacing: 0; }
.af-amount:hover { transform: translateY(-3px); }
.af-amount:active { transform: scale(0.92); }
.af-amount.is-picked { color: #fff; background: linear-gradient(180deg, #ff8585, var(--af-coral-strong)); box-shadow: 0 14px 26px -12px rgba(240, 79, 95, 0.75); animation: afPop 0.45s var(--af-spring); }
.af-amount.is-picked small { color: rgba(255, 255, 255, 0.85); }

.af-summary { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.af-summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--af-muted); }
.af-summary-row strong { color: var(--af-ink); text-align: right; }
.af-summary-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px dashed rgba(15, 23, 42, 0.12); }
.af-summary-total .af-price { font-size: 30px; transition: transform 0.45s var(--af-spring); }
.af-summary-total .af-price.is-bump { animation: afPop 0.45s var(--af-spring); }
.af-summary-note { display: flex; gap: 8px; font-size: 12.5px; color: var(--af-muted); }
.af-summary-note svg { width: 16px; height: 16px; flex: none; stroke: var(--af-cyan); fill: none; stroke-width: 2; margin-top: 1px; }
.af-summary-empty { font-size: 14px; color: var(--af-muted); }

/* --------------------------------------------------------------------------
   Panel
   -------------------------------------------------------------------------- */
.af-app { min-height: 100vh; padding: 26px 32px 60px 296px; }
.af-app-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.af-app-head h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; }
.af-app-head p { margin: 4px 0 0; color: var(--af-muted); }
.af-app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.af-view { display: none; }
.af-view.is-active { display: block; animation: afPanelIn 0.4s ease-out; }
.af-stack { display: flex; flex-direction: column; gap: 20px; }
.af-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.af-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.af-form-grid .is-full { grid-column: 1 / -1; }
.af-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.af-row + .af-row { border-top: 1px solid var(--af-line); }
.af-row-text strong { display: block; font-size: 15px; }
.af-row-text span { font-size: 13.5px; color: var(--af-muted); }
.af-row .af-input-wrap { width: 170px; flex: none; }
.af-save-bar { position: sticky; bottom: 16px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 10px 10px 10px 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.16), 0 18px 40px -20px rgba(15, 23, 42, 0.4); transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.2s ease; }
.af-save-bar.is-show { transform: none; opacity: 1; pointer-events: auto; transition: transform 0.6s var(--af-spring), opacity 0.2s ease; }
.af-save-bar span { font-size: 14px; font-weight: 650; color: var(--af-ink-2); }

/* Stats */
.af-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.af-stat { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 28px; background: #fff; box-shadow: var(--af-ring), var(--af-shadow); animation: afRise 0.7s var(--af-spring) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.af-stat .af-ic { width: 42px; height: 42px; }
.af-stat strong { font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.af-stat > span:not(.af-ic) { font-size: 13px; color: var(--af-muted); }

/* Checklist */
.af-progress { height: 10px; border-radius: 999px; background: var(--af-cyan-soft); overflow: hidden; }
.af-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--af-cyan), #22d3ee); transition: width 0.9s var(--af-spring); }
.af-checklist { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.af-check-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 999px; text-decoration: none; transition: background 0.2s ease, transform 0.45s var(--af-spring); }
.af-check-item:hover { background: var(--af-cyan-soft); transform: translateX(4px); }
.af-check-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(15, 23, 42, 0.16); color: transparent; }
.af-check-item.is-done .af-check-dot { background: #34c759; box-shadow: none; color: #fff; animation: afPop 0.45s var(--af-spring); }
.af-check-dot svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 3; }
.af-check-item.is-done .af-check-label { color: var(--af-muted); text-decoration: line-through; }
.af-check-label { flex: 1; font-weight: 600; }
.af-check-item svg.af-go { width: 16px; height: 16px; stroke: var(--af-faint); fill: none; stroke-width: 2.4; }

/* Subida de imagen */
.af-file { display: none; }

/* Lista de planes en el panel */
.af-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.af-item { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 28px; background: #fff; box-shadow: var(--af-ring), var(--af-shadow); animation: afRise 0.6s var(--af-spring) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
.af-item h4 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.af-item p { margin: 0; font-size: 13.5px; color: var(--af-muted); }
.af-item-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.af-item-actions .af-btn { flex: 1; }
.af-add-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 180px; border: 0; border-radius: 28px; background: transparent; box-shadow: inset 0 0 0 2px rgba(6, 182, 212, 0.3); color: var(--af-cyan-strong); font-weight: 700; cursor: pointer; transition: background 0.2s ease, transform 0.5s var(--af-spring), box-shadow 0.2s ease; }
.af-add-tile:hover { background: var(--af-cyan-soft); box-shadow: inset 0 0 0 2px var(--af-cyan); }
.af-add-tile:active { transform: scale(0.95); }
.af-add-tile .af-ic { width: 48px; height: 48px; transition: transform 0.5s var(--af-spring); }
.af-add-tile:hover .af-ic { transform: rotate(90deg); }

/* Ventajas (perks) dentro del modal */
.af-perks { display: flex; flex-direction: column; gap: 8px; }
.af-perk { display: flex; gap: 8px; align-items: center; animation: afFade 0.35s var(--af-smooth) backwards; }
.af-perk .af-input { min-height: 44px; padding: 10px 16px; }

/* Foto en modal de peludo */

/* Vista previa (mini página pública) */
.af-preview { position: sticky; top: 26px; }
.af-preview-frame { overflow: hidden; border-radius: 30px; background: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(6, 182, 212, 0.18), 0 30px 60px -30px rgba(15, 23, 42, 0.4); }
.af-preview-body { padding: 0 18px 18px; }
.af-preview-body h4 { margin: 8px 0 2px; font-size: 17px; }
.af-preview-body p { margin: 0; font-size: 13px; color: var(--af-muted); }
.af-preview-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.af-preview-pill { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--af-cyan-soft); font-size: 13px; font-weight: 650; color: var(--af-cyan-strong); }
.af-preview-pill.is-coral { background: var(--af-coral-soft); color: var(--af-coral-strong); }
.af-preview-url { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 999px; background: #fff; box-shadow: var(--af-ring); font-size: 12.5px; color: var(--af-muted); overflow: hidden; }
.af-preview-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* Aportes del donador */
.af-pledges { display: flex; flex-direction: column; gap: 10px; }
.af-pledge { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 999px; background: #fff; box-shadow: var(--af-ring), 0 10px 22px -18px rgba(15, 23, 42, 0.4); animation: afRise 0.6s var(--af-spring) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
.af-pledge-text { flex: 1; min-width: 0; }
.af-pledge-text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-pledge-text span { font-size: 13px; color: var(--af-muted); }
.af-pledge .af-price { font-size: 17px; white-space: nowrap; }

/* Footer simple */
.af-footer { padding: 40px 20px 50px; text-align: center; color: var(--af-faint); font-size: 13px; }
.af-footer a { color: var(--af-muted); text-decoration: none; }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .af-cols { grid-template-columns: 1fr; }
  .af-preview { position: static; }
  .af-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .af-hero { grid-template-columns: 1fr; }
  .af-hero-art { max-width: 360px; }
  .af-ways { grid-template-columns: 1fr; }
  .af-profile-body { grid-template-columns: 1fr; }
  .af-summary { position: static; }
  .af-auth { grid-template-columns: 1fr; padding-top: 90px; }
  .af-auth-side { padding: 10px 6px 24px; text-align: left; }
  .af-auth-list { display: none; }
}
@media (max-width: 900px) {
  .af-app { padding: 20px 16px calc(110px + env(safe-area-inset-bottom)); }
  .af-save-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .af-page { padding: 92px 16px 60px; }
  .af-section { margin-top: 52px; }
  .af-lead { font-size: 16px; }
  .af-card { padding: 20px; border-radius: 28px; }
  .af-form-grid { grid-template-columns: 1fr; }
  .af-auth { padding: 84px 16px 30px; }
  .af-auth-card { padding: 24px 20px; border-radius: 32px; }
  .af-auth-side h1 { font-size: 28px; }
  .af-auth-side p { font-size: 15px; }
  .af-hero-bubble.b1 { left: 0; }
  .af-hero-bubble.b2 { right: 0; }
  .af-profile-tabs { width: 100%; }
  .af-tab-long { display: none; }
  .af-tab-short { display: inline; }
  .af-profile-tabs .af-seg-btn { flex: 1; justify-content: center; padding: 9px 12px; font-size: 13px; }
  .af-custom .af-input-wrap { width: 100%; }
  .af-row { flex-wrap: wrap; }
  .af-row .af-input-wrap { width: 100%; }
  .af-stats { gap: 10px; }
  .af-stat { padding: 16px; border-radius: 24px; }
  .af-cta-band { padding: 26px; border-radius: 30px; }
  .af-save-bar { padding-left: 18px; }
  .af-save-bar span { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Backend: carga, avisos, conexiones
   -------------------------------------------------------------------------- */
@keyframes afSpin { to { transform: rotate(360deg); } }
.af-spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(6, 182, 212, 0.2); border-top-color: var(--af-cyan); animation: afSpin 0.8s linear infinite; }
.af-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50vh; color: var(--af-muted); font-weight: 600; }
.af-app.is-ready .af-loading { display: none; }
.af-alert { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; margin-bottom: 20px; border-radius: 999px; box-shadow: 0 0 0 1.5px rgba(240, 79, 95, 0.25), 0 14px 30px -20px rgba(240, 79, 95, 0.6); animation: afRise 0.6s var(--af-spring) backwards; }
.af-alert-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.af-alert-text span { font-size: 13.5px; color: var(--af-muted); }
.af-connect { display: flex; flex-direction: column; gap: 14px; }
.af-connect-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.af-connect-steps li { position: relative; display: block; padding-left: 30px; font-size: 14px; color: var(--af-ink-2); }
.af-connect-steps li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--af-cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.af-connect-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.af-connect-note { margin: 0; font-size: 13px; color: var(--af-muted); }
.af-btn.is-busy { pointer-events: none; opacity: 0.75; }
.af-btn.is-busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: afSpin 0.7s linear infinite; }
.af-pledge .af-icon-btn { flex: none; }
.af-notice { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 26px; background: var(--af-cyan-soft); color: var(--af-ink-2); font-size: 14px; }
.af-notice.is-coral { background: var(--af-coral-soft); }
@media (max-width: 640px) {
  .af-alert { border-radius: 28px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .af-pledge { border-radius: 28px; align-items: flex-start; padding: 14px; }
  .af-pledge-text strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .af-pledge .af-price { font-size: 15px; }
}


/* Tarjetas de rescatista (sin portada) */
.af-rcard { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 32px; background: #fff; box-shadow: var(--af-ring), var(--af-shadow); text-decoration: none; transition: transform 0.55s var(--af-spring), box-shadow 0.3s ease; }
.af-rcard:hover { transform: translateY(-6px); box-shadow: var(--af-ring), var(--af-shadow-lift); }
.af-rcard:active { transform: scale(0.97); }
.af-rcard-head { display: flex; align-items: center; gap: 14px; }
.af-rcard-head .af-avatar { width: 64px; height: 64px; font-size: 20px; box-shadow: 0 0 0 4px #fff, 0 10px 22px -12px rgba(6, 182, 212, 0.7); }
.af-rcard-title { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.af-rcard-title h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-rcard-city { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--af-muted); }
.af-rcard-city svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.af-rcard-bio { margin: 0; color: var(--af-ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.af-rcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.af-rcard-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.af-rcard-from { font-size: 13px; color: var(--af-muted); white-space: nowrap; }
.af-rcard-from strong { color: var(--af-ink); }

/* Encabezado del rescatista (sin portada) */
.af-profile-hero { display: flex; align-items: flex-start; gap: 24px; padding: 30px; border-radius: 36px; background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(255, 255, 255, 0) 55%), linear-gradient(315deg, rgba(255, 107, 107, 0.1), rgba(255, 255, 255, 0) 50%), #fff; box-shadow: var(--af-ring), var(--af-shadow); }
.af-profile-hero .af-avatar { width: 112px; height: 112px; font-size: 34px; box-shadow: 0 0 0 6px #fff, 0 18px 30px -16px rgba(6, 182, 212, 0.6); }
.af-profile-name { flex: 1; min-width: 0; padding-top: 6px; }
.af-profile-name h1 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.03em; }
.af-profile-bio { margin: 14px 0 0; max-width: 720px; font-size: 16px; color: var(--af-ink-2); }
.af-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Foto de perfil en el panel */
.af-upload-avatar { display: flex; align-items: center; gap: 18px; }
.af-upload-avatar .af-avatar { position: relative; width: 96px; height: 96px; font-size: 30px; box-shadow: 0 0 0 5px #fff, 0 16px 26px -14px rgba(6, 182, 212, 0.6); }
.af-upload-avatar .af-avatar.is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.55); }
.af-upload-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.af-upload-text span { font-size: 13px; color: var(--af-muted); margin-bottom: 6px; }

.af-preview-body { padding-top: 18px; }
.af-preview-body .af-avatar { width: 60px; height: 60px; font-size: 19px; box-shadow: 0 0 0 4px #fff; }

@media (max-width: 640px) {
  .af-profile-hero { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 24px 18px; border-radius: 30px; }
  .af-profile-hero .af-avatar { width: 96px; height: 96px; font-size: 30px; }
  .af-profile-name { padding-top: 0; }
  .af-profile-meta { justify-content: center; }
  .af-profile-bio { font-size: 15px; }
  .af-profile-actions { justify-content: center; }
  .af-upload-avatar { flex-direction: column; text-align: center; }
  .af-upload-text { align-items: center; }
}