/* ============================================================================
   FORJA FITNESS — Design System
   Paleta extraida del logo oficial: verde lima #88C000 sobre negro #0A0B0A.
   Light mode por defecto + dark mode con selector en el header.
   ========================================================================== */

/* ---------------------------------------------------------------- TOKENS */
:root,
[data-theme="light"] {
  --bg-primary:    #FFFFFF;
  --bg-secondary:  #F3F6EE;
  --bg-tertiary:   #E7ECDD;
  --text-primary:  #0D0F0C;
  --text-secondary:#474D40;
  --text-muted:    #7F8676;
  --border:        #D2D9C4;
  --accent:        #5E8A00;          /* lima oscurecido: legible sobre blanco */
  --accent-solid:  #88C000;          /* lima de marca para rellenos */
  --accent-hover:  #4C7000;
  --accent-text:   #0A0B0A;          /* texto negro sobre lima */
  --glow:          #B4F02A;
  --danger:        #C0392B;
  --success:       #1A7A4A;
  --warning:       #B8650A;
  --surface:       #FFFFFF;
  --surface-alt:   #F3F6EE;
  --shadow:        rgba(13, 15, 12, .10);
  --hero-bg:       #0A0B0A;          /* el hero es oscuro en ambos modos */
  --ripple:        rgba(0, 0, 0, .13);
}

[data-theme="dark"] {
  --bg-primary:    #0A0B0A;
  --bg-secondary:  #121412;
  --bg-tertiary:   #1A1D18;
  --text-primary:  #F2F4F0;
  --text-secondary:#A8AEA0;
  --text-muted:    #6B7264;
  --border:        #262B22;
  --accent:        #A8D93A;
  --accent-solid:  #88C000;
  --accent-hover:  #9BCE22;
  --accent-text:   #0A0B0A;
  --glow:          #B4F02A;
  --danger:        #E05252;
  --success:       #3DBE7A;
  --warning:       #E8900A;
  --surface:       #121412;
  --surface-alt:   #1A1D18;
  --shadow:        rgba(0, 0, 0, .45);
  --hero-bg:       #0A0B0A;
  --ripple:        rgba(255, 255, 255, .18);
}

/* ------------------------------------------------------------------ BASE */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text; -moz-user-select: text; user-select: text;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.6;
  background: var(--bg-primary); color: var(--text-primary);
  overscroll-behavior-y: none;
  transition: background .25s ease, color .25s ease;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 15px; }
p  { margin: 0 0 1rem; }
a  { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; font-size: inherit; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); font-weight: 600;
}
.tag-accent {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
  padding: .28rem .7rem; border-radius: 999px;
}
.text-muted { color: var(--text-muted); }
.text-sec   { color: var(--text-secondary); }
.center     { text-align: center; }

/* --------------------------------------------------------- LAYOUT / GRID */
.container { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.vista { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; gap: 1rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

/* Corte industrial: la esquina biselada es la firma visual de FORJA */
.notch {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.notch-sm {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

/* ----------------------------------------------------------------- CARDS */
.card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.4rem; position: relative;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--accent); }
.card-accent { border-left: 3px solid var(--accent-solid); }

/* Barra lateral de acento en las cards destacadas */
.card-kpi {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.card-kpi .kpi-valor { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.card-kpi .kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); font-weight: 600; }
.card-kpi .kpi-icon { color: var(--accent); }
.kpi-ok    .kpi-valor { color: var(--success); }
.kpi-alerta .kpi-valor { color: var(--warning); }
.kpi-mal   .kpi-valor { color: var(--danger); }

/* --------------------------------------------------------------- BOTONES */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.4rem; border: 1px solid transparent; font-weight: 700;
  font-size: 14px; letter-spacing: .02em; min-height: 46px;
  position: relative; overflow: hidden; transition: background .18s, color .18s, border-color .18s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary   { background: var(--accent-solid); color: var(--accent-text); }
.btn-primary:hover { background: var(--glow); }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost     { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-block     { width: 100%; }
.btn-sm        { padding: .5rem .9rem; min-height: 38px; font-size: 13px; }
.btn:disabled  { opacity: .55; cursor: not-allowed; }
.btn i, .btn svg { width: 17px; height: 17px; }

/* Ripple (skill 31) */
.ripple { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute; border-radius: 50%; background: var(--ripple);
  transform: scale(0); animation: ripple-anim .6s linear; pointer-events: none;
}
.btn-primary .ripple-wave { background: rgba(0, 0, 0, .18); }
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ------------------------------------------------------------ FORMULARIOS */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-weight: 600; margin-bottom: .4rem;
}
.input, input[type="text"], input[type="password"], input[type="email"],
input[type="tel"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; padding: .8rem .95rem; font-size: 15px; font-family: inherit;
  background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 0; min-height: 46px;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-solid) 22%, transparent);
}
textarea { min-height: 96px; resize: vertical; }
.password-field { position: relative; }
.password-field input { padding-right: 3rem; }
.toggle-password {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted);
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
}
.toggle-password:hover { color: var(--accent); }
.form-error { color: var(--danger); font-size: 13px; margin-top: .35rem; display: none; }
.form-hint  { color: var(--text-muted); font-size: 12px; margin-top: .35rem; }

/* ---------------------------------------------------------------- HEADER */
.app-header {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(4px)) { .app-header { background: var(--bg-primary); } }
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: .7rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; cursor: pointer; }
.brand img { width: 38px; height: 38px; object-fit: cover; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.brand-nombre { font-weight: 800; letter-spacing: .09em; font-size: 15px; }
.brand-nombre span { color: var(--accent); }
.nav-desktop { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  padding: .5rem .85rem; font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent-solid); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
  position: relative; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.badge-dot {
  position: absolute; top: 5px; right: 5px; min-width: 15px; height: 15px; padding: 0 3px;
  background: var(--danger); color: #fff; border-radius: 999px;
  font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.user-chip {
  display: flex; align-items: center; gap: .5rem; padding: .35rem .7rem .35rem .4rem;
  border: 1px solid var(--border); background: var(--bg-secondary);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.avatar {
  width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--accent-solid); color: var(--accent-text); font-weight: 800; font-size: 12px;
  border-radius: 50%; text-transform: uppercase;
}
.user-chip-nombre { font-size: 13px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-rol { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

/* ------------------------------------------------------------ FOOTER NAV */
.app-footer-nav { display: none; }
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .user-chip-nombre, .user-chip-rol { display: none; }
  .app-footer-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: 66px; z-index: 950;
    background: var(--bg-primary); border-top: 1px solid var(--border);
    display: flex; padding-bottom: env(safe-area-inset-bottom);
  }
  .app-footer-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 10px; font-weight: 600; letter-spacing: .03em;
    color: var(--text-muted); background: none; border: none; position: relative; overflow: hidden;
    min-height: 44px;
  }
  .app-footer-nav button i, .app-footer-nav button svg { width: 21px; height: 21px; }
  .app-footer-nav button.active { color: var(--accent); }
  .app-footer-nav button.active::before {
    content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 2px; background: var(--accent-solid);
  }
  body { padding-bottom: 74px; }
  .container, .container-sm { padding: 1.6rem 1rem; }
}

/* Modal "Ver mas": todas las opciones del desktop accesibles en mobile */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.menu-grid button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  padding: 1rem .4rem; background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 11.5px; font-weight: 600; text-align: center;
  position: relative; overflow: hidden; min-height: 80px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.menu-grid button i, .menu-grid button svg { width: 20px; height: 20px; color: var(--accent); }
.menu-grid button:hover { border-color: var(--accent); }

/* --------------------------------------------------------------- MODALES */
.modal-wrapper {
  position: fixed; inset: 0; background: rgba(5, 6, 5, .72);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem; animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-primary); border: 1px solid var(--border);
  width: 100%; max-width: 560px; max-height: 90vh;
  display: flex; flex-direction: column; animation: fadeUp .22s ease both;
}
.modal-header {
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-shrink: 0;
}
.modal-header h3 { margin: 0; }
.modal-body   { flex: 1; overflow-y: auto; padding: 1.4rem; }
.modal-footer {
  padding: 1rem 1.4rem; border-top: 1px solid var(--border); flex-shrink: 0;
  display: flex; gap: .7rem; justify-content: flex-end; background: var(--bg-primary);
}
@media (max-width: 640px) {
  .modal-wrapper { align-items: flex-end; padding: 0; }
  .modal { max-width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; border-bottom: none; }
  .modal-footer { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .modal-footer .btn { flex: 1; }
}

/* ---------------------------------------------------------------- TOASTS */
#toast-stack {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px;
  z-index: 9999; display: flex; flex-direction: column; gap: .5rem; align-items: center;
  pointer-events: none; width: calc(100% - 2rem); max-width: 420px;
}
.toast {
  padding: .8rem 1.1rem; font-size: 14px; font-weight: 600; color: #fff;
  display: flex; align-items: center; gap: .6rem; width: 100%;
  animation: toastIn .25s ease both; box-shadow: 0 8px 24px var(--shadow);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.toast i, .toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast-error   { background: var(--danger); }
.toast-success { background: var(--success); }
.toast-warning { background: var(--warning); }
.toast-info    { background: var(--accent-solid); color: var(--accent-text); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) { #toast-stack { bottom: 24px; } }

/* --------------------------------------------------- ESTADOS (skill 04) */
.empty-state, .error-state {
  text-align: center; padding: 2.6rem 1.4rem; border: 1px dashed var(--border);
  background: var(--surface-alt); color: var(--text-secondary);
}
.empty-state .empty-icon, .error-state .empty-icon {
  width: 52px; height: 52px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary); color: var(--accent); border-radius: 50%;
}
.empty-state .empty-icon i, .empty-state .empty-icon svg,
.error-state .empty-icon i, .error-state .empty-icon svg { width: 24px; height: 24px; }
.empty-state h3, .error-state h3 { color: var(--text-primary); font-size: 16px; }
.empty-state p, .error-state p { font-size: 14px; margin-bottom: 1.2rem; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; min-height: 14px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ HERO */
.hero {
  position: relative; background: var(--hero-bg); color: #F2F4F0; overflow: hidden;
  padding: 4.5rem 1.5rem 4rem;
}
.hero::before {
  content: ''; position: absolute; width: 620px; height: 620px; right: -160px; top: -220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow) 30%, transparent) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(color-mix(in srgb, var(--glow) 7%, transparent) 1px, transparent 1px);
  background-size: 100% 42px;
}
.hero-inner {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center;
}
.hero h1 { font-size: clamp(34px, 6.5vw, 62px); font-weight: 900; letter-spacing: -.03em; line-height: .98; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero p.sub { font-size: clamp(15px, 2.2vw, 18px); color: #B4BAAC; max-width: 30rem; margin-bottom: 1.9rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-logo { position: relative; }
.hero-logo img {
  width: 100%; max-width: 320px; margin-left: auto;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  box-shadow: 0 0 90px color-mix(in srgb, var(--glow) 28%, transparent);
}
.hero-stats {
  position: relative; z-index: 2; max-width: 1180px; margin: 3rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #23271F;
  border: 1px solid #23271F;
}
.hero-stats > div { background: #0F110F; padding: 1.1rem 1rem; text-align: center; }
.hero-stats .n { font-size: 26px; font-weight: 900; color: var(--glow); line-height: 1.1; }
.hero-stats .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #8A9182; font-weight: 600; }
@media (max-width: 900px) {
  .hero { padding: 2.8rem 1rem 2.4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-logo { order: -1; } .hero-logo img { max-width: 190px; margin: 0 auto; }
  .hero-cta .btn { flex: 1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
}

/* --------------------------------------------------------------- SECCIONES */
.seccion { padding: 3.4rem 1.5rem; }
.seccion:nth-of-type(even) { background: var(--bg-secondary); }
.seccion-head { max-width: 1180px; margin: 0 auto 2rem; }
.seccion-head h2 { font-size: clamp(23px, 3.6vw, 33px); font-weight: 800; letter-spacing: -.02em; }
.seccion-head p  { color: var(--text-secondary); max-width: 44rem; margin-bottom: 0; }
.seccion-inner { max-width: 1180px; margin: 0 auto; }
@media (max-width: 900px) { .seccion { padding: 2.4rem 1rem; } }

/* Planes */
.plan-card { display: flex; flex-direction: column; gap: .8rem; height: 100%; }
.plan-precio { font-size: 30px; font-weight: 900; letter-spacing: -.02em; color: var(--text-primary); line-height: 1; }
.plan-precio small { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .04em; }
.plan-destacado { border-color: var(--accent-solid); box-shadow: 0 0 0 1px var(--accent-solid); }
.plan-destacado .plan-precio { color: var(--accent); }
.plan-incluye { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.plan-incluye li { display: flex; gap: .5rem; align-items: flex-start; font-size: 13.5px; color: var(--text-secondary); }
.plan-incluye i, .plan-incluye svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* Galeria */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.galeria-item { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-tertiary); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.galeria-item:hover img { transform: scale(1.06); }
.galeria-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem;
  background: linear-gradient(transparent, rgba(5,6,5,.88)); color: #fff; font-size: 12.5px; font-weight: 600;
}

/* Listas de datos */
.lista { display: flex; flex-direction: column; gap: .55rem; }
.lista-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--border);
}
.lista-item:hover { border-color: var(--accent); }
.lista-item .li-main { min-width: 0; }
.lista-item .li-titulo { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.lista-item .li-sub { font-size: 12.5px; color: var(--text-muted); }

.pill {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid currentColor; white-space: nowrap;
}
.pill-ok      { color: var(--success); }
.pill-alerta  { color: var(--warning); }
.pill-mal     { color: var(--danger); }
.pill-neutral { color: var(--text-muted); }

/* Estado de pago del alumno */
.estado-pago { padding: 1.6rem; display: flex; align-items: center; gap: 1.2rem; border-width: 2px; border-style: solid; }
.estado-pago .ep-icon { width: 54px; height: 54px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.estado-pago .ep-icon i, .estado-pago .ep-icon svg { width: 26px; height: 26px; }
.estado-pago h3 { margin: 0; font-size: 19px; }
.estado-pago p  { margin: 0; font-size: 13.5px; color: var(--text-secondary); }
.ep-al-dia    { border-color: var(--success); background: color-mix(in srgb, var(--success) 9%, var(--surface)); }
.ep-al-dia    .ep-icon { background: var(--success); color: #fff; }
.ep-pendiente { border-color: var(--warning); background: color-mix(in srgb, var(--warning) 9%, var(--surface)); }
.ep-pendiente .ep-icon { background: var(--warning); color: #fff; }
.ep-mora      { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.ep-mora      .ep-icon { background: var(--danger); color: #fff; }

/* ------------------------------------------------------------- FLOTANTES */
.float-wa {
  position: fixed; right: 16px; bottom: 88px; width: 54px; height: 54px; z-index: 940;
  background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3); border: none;
}
.float-wa svg { width: 27px; height: 27px; }
@media (min-width: 901px) { .float-wa { bottom: 24px; } }

.redes { display: flex; gap: .6rem; flex-wrap: wrap; }
.red-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text-secondary); background: var(--surface);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.red-btn:hover { color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------- SPLASH */
#splash {
  position: fixed; inset: 0; z-index: 10000; background: #0A0B0A;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; transition: opacity .5s ease;
}
#splash .sp-glow {
  position: absolute; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(180, 240, 42, .17) 0%, transparent 66%);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.13); opacity: 1; } }
#splash img { width: 168px; max-width: 52vw; position: relative; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
#splash h1 { color: #fff; font-size: 25px; font-weight: 900; letter-spacing: .16em; margin: .3rem 0 0; position: relative; }
#splash p  { color: #8A9182; font-size: 13px; letter-spacing: .07em; margin: 0; position: relative; }
#splash .sp-bar { width: 210px; height: 3px; background: #23271F; position: relative; overflow: hidden; margin-top: .6rem; }
#splash .sp-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: #B4F02A; transition: width .12s linear; }

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
