/* ── Variables de color La Salle ── */
:root {
  --rojo:       #E00010;
  --rojo-hover: #B8000C;
  --marengo:    #2B2D30;
  --marengo-2:  #3A3C40;
  --fondo:      #F5F5F5;
  --blanco:     #FFFFFF;
  --borde:      #E0E0E0;
  --gris:       #6B6B6B;
  --negro:      #1A1A1A;
  --radius:     12px;
  --radius-sm:  8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--fondo);
  min-height: 100vh;
  color: var(--negro);
}

/* ── Cabecera con logo ── */
.header-brand {
  background: var(--marengo);
  padding: 32px 24px 40px;
  text-align: center;
}

.logo-placeholder {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--rojo);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.brand-nombre {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 1px;
}

.brand-nombre strong { font-weight: 700; }

.brand-tag {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ── Tarjeta de formulario ── */
.form-card {
  background: var(--blanco);
  margin: -18px 16px 24px;
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}

.form-titulo {
  font-size: 18px;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 4px;
}

.form-subtitulo {
  font-size: 13px;
  color: var(--gris);
  margin-bottom: 20px;
}

/* ── Campos ── */
.campo { margin-bottom: 16px; }

.campo label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.campo input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--negro);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.campo input:focus { border-color: var(--rojo); }

.link-olvide {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--rojo);
  text-decoration: none;
  margin-top: 6px;
  font-weight: 500;
}

/* ── Botón primario ── */
.btn-primario {
  width: 100%;
  background: var(--rojo);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-primario:hover { background: var(--rojo-hover); }

/* ── Divisor ── */
.divisor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.divisor span { flex: 1; height: 1px; background: var(--borde); }
.divisor p { font-size: 12px; color: #bbb; white-space: nowrap; }

/* ── Links ── */
.link-centro { text-align: center; font-size: 14px; color: var(--gris); }
.link-centro a { color: var(--rojo); font-weight: 600; text-decoration: none; }

/* ── Mensaje de error ── */
.mensaje-error {
  background: #FDECEA;
  color: #B71C1C;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Checkbox RGPD ── */
.campo-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
}

.campo-rgpd input { margin-top: 3px; accent-color: var(--rojo); flex-shrink: 0; }
.campo-rgpd span { font-size: 12px; color: var(--gris); line-height: 1.5; }
.campo-rgpd a { color: var(--rojo); text-decoration: none; }

/* ── Card de puntos (pantalla principal) ── */
.card-puntos {
  background: var(--marengo);
  border-radius: var(--radius);
  padding: 22px 18px;
  color: #fff;
  margin: 14px 16px 0;
  position: relative;
  overflow: hidden;
}

.card-puntos .saludo { font-size: 12px; opacity: 0.65; margin-bottom: 2px; }
.card-puntos .nombre { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.card-puntos .numero { font-size: 48px; font-weight: 800; line-height: 1; }
.card-puntos .etiqueta { font-size: 12px; opacity: 0.6; margin-top: 2px; margin-bottom: 14px; }
.card-puntos .nivel { background: rgba(255,255,255,0.15); border-radius: 20px; padding: 4px 14px; font-size: 12px; font-weight: 600; display: inline-block; }

/* ── Navbar ── */
.navbar {
  background: var(--marengo);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-marca { display: flex; align-items: center; gap: 8px; }
.navbar-titulo { color: #fff; font-size: 15px; font-weight: 700; }

/* ── Bottom nav ── */
.bottom-nav {
  background: var(--marengo);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 16px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.nav-item { text-align: center; color: #666; font-size: 11px; cursor: pointer; }
.nav-item.active { color: var(--rojo); }

/* ── Secciones ── */
.seccion { margin: 16px 16px 0; }
.seccion-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.seccion-titulo { font-size: 14px; font-weight: 700; color: var(--negro); }
.seccion-ver { font-size: 12px; color: var(--rojo); font-weight: 600; text-decoration: none; }