/* ========================================
   1) RESET + PALETA TOTALFIT
   ======================================== */
:root {
  --tf-primary: #9b6b3d;
  --tf-primary-dark: #9b6b3d;
  --tf-primary-dark-hover: #142c46;
  --tf-primary-soft: #fde4e8;

  --tf-dark: #2c2c2c;
  --tf-dark-soft: #5a6570;

  --tf-white: #ffffff;
  --tf-white-soft: rgba(255, 255, 255, 0.96);

  --tf-bg-soft: #f8f4ec;
  --tf-bg-soft-2: #fffdf9;
  --tf-bg-light: #f3efe7;

  --tf-border: #e7e1d8;
  --tf-border-soft: #eee8df;

  --tf-success: #1f8f4d;
  --tf-success-soft: #e6f9ec;

  --tf-error: #9b6b3d;
  --tf-error-soft: #fde8e8;

  --tf-warning: #9b6b3d;
  --tf-warning-soft: #fff4e6;

  --tf-info: #142c46;
  --tf-info-soft: #e6f0ff;

  --tf-bizum: #08c4cc;
  --tf-bizum-dark: #06a7ae;

  --tf-shadow-sm: rgba(0, 0, 0, 0.04);
  --tf-shadow: rgba(0, 0, 0, 0.08);
  --tf-shadow-md: rgba(0, 0, 0, 0.12);
  --tf-shadow-lg: rgba(0, 0, 0, 0.16);
  --tf-shadow-xl: rgba(0, 0, 0, 0.25);

  --tf-radius-sm: 4px;
  --tf-radius: 6px;
  --tf-radius-md: 8px;
  --tf-radius-lg: 10px;
  --tf-radius-xl: 12px;

  --uar-border: var(--tf-border);
  --uar-text: var(--tf-dark);
}

* {
  box-sizing: border-box;
}

/* ========================================
   2) ANIMACIONES
   ======================================== */
@keyframes parpadeo {
  from {
    text-shadow: 0 0 5px var(--tf-primary), 0 0 15px var(--tf-primary), 0 0 30px var(--tf-primary);
  }

  to {
    text-shadow: 0 0 10px #9b6b3d, 0 0 25px #9b6b3d, 0 0 50px #9b6b3d;
  }
}

@keyframes gradiente {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes carrito-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInCart {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ========================================
   3) BASE GENERAL
   ======================================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--tf-white);
  color: var(--tf-dark-soft);
}

.pass {
  color: var(--tf-white);
}

.volver {
  color: var(--tf-dark);
}

/* ========================================
   4) TÍTULOS
   ======================================== */
.titulo-h3 {
  font: 800 1.15rem/1.2 system-ui, Segoe UI, Roboto, Arial;
  color: var(--tf-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .5rem .9rem;
  padding-left: 1rem;
  border-left: 4px solid var(--tf-primary);
  border-right: 4px solid var(--tf-primary);
  background: var(--tf-white);
  border-radius: var(--tf-radius-lg);
  display: inline-block;
  outline: 1.5px solid var(--tf-border);
  outline-offset: 4px;
}

/* ========================================
   5) CONTENEDORES GENERALES
   ======================================== */
.uar-app,
.uar-login {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 10px;
  text-align: center;
}

.uar-app h2,
.uar-login h2 {
  font-size: 22px;
  font-weight: bold;
  color: var(--tf-primary);
  margin-bottom: 20px;
  background: var(--tf-white-soft);
  padding: 8px 15px;
  border-radius: var(--tf-radius);
  display: inline-block;
}

/* ========================================
   6) LOGIN
   ======================================== */
.uar-login {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--tf-white) 45%, var(--tf-primary) 55%);
  overflow: hidden;
}

.uar-login::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/wp-content/themes/landing/img/yaw-costa.jpeg') center / cover no-repeat;
  opacity: 0.20;
  filter: blur(1px);
  transform: scale(1.1);
  z-index: 330;
  pointer-events: none;
}



.uar-login>* {
  position: relative;
  z-index: 1;
}


.uar-login.iban {
  min-height: auto !important;
  background: none !important;
}

.uar-login img {
  margin-bottom: 25px;
  background: var(--tf-white);
  border-radius: 5px;
  max-width: 60%;
}

.uar-login form,
.uar-app form {
  width: 100%;
  max-width: 320px;
  background: var(--tf-white);
  padding: 25px;
  margin: 15px auto 0 auto;
  border-radius: var(--tf-radius-xl);
  box-shadow: 0 6px 20px var(--tf-shadow-md);
  border-top: 4px solid var(--tf-primary);
  box-sizing: border-box;
  text-align: center;
  opacity: 0.70;
}

.uar-login label,
.uar-app strong,
.club-footer {
  color: var(--tf-dark);
}

.uar-login label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  font-weight: bold;
}

.uar-login input,
.uar-login select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: var(--tf-radius);
}

.uar-login button,
.uar-app button {
  width: 100%;
  padding: 12px;
  background: var(--tf-primary);
  color: var(--tf-white);
  border: none;
  border-radius: var(--tf-radius);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.uar-login button:hover,
.uar-app button:hover {
  background: var(--tf-primary-dark-hover);
}

.btn-login {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 14px;
  border-radius: var(--tf-radius);
  border: 1px solid var(--uar-border);
  background: var(--tf-bg-soft-2);
  color: var(--uar-text);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}

.btn-login:hover {
  background: #eee;
}

.uar-login-help {
  margin-top: 10px;
  text-align: center;
}

/* ========================================
   7) FICHA SOCIO
   ======================================== */
.uar-app {
  background: var(--tf-white);
  border-radius: var(--tf-radius-xl);
  box-shadow: 0 2px 6px var(--tf-shadow);
}

.uar-app p {
  background: var(--tf-bg-soft-2);
  padding: 12px 15px;
  border-radius: var(--tf-radius-md);
  margin-bottom: 10px;
  box-shadow: inset 0 1px 2px var(--tf-shadow-sm);
  text-align: left;
}

/* ========================================
   8) MENSAJES / ALERTAS
   ======================================== */
.uar-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffe5e5;
  color: var(--tf-error);
  border: 1px solid var(--tf-error);
  border-radius: var(--tf-radius-md);
  padding: 12px 16px;
  margin-top: 15px;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 2px 4px var(--tf-shadow-sm);
}

.uar-error-icon {
  font-size: 18px;
}

.uar-message {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

.uar-success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: var(--tf-radius);
}

.uar-warning {
  color: var(--tf-warning);
  background: var(--tf-warning-soft);
  border: 1px solid #ffeeba;
  padding: 10px;
  border-radius: var(--tf-radius);
}

.uar-pago-exito,
.uar-pago-error {
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: var(--tf-radius);
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 2px 4px var(--tf-shadow-sm);
}

.uar-pago-exito {
  background-color: var(--tf-success-soft);
  border: 1px solid #38a169;
  color: #2f855a;
}

.uar-pago-error {
  background-color: var(--tf-error-soft);
  border: 1px solid #e53e3e;
  color: #9b2c2c;
}

.uar-pago-exito::before {
  content: "✅ ";
  margin-right: 6px;
}

.uar-pago-error::before {
  content: "❌ ";
  margin-right: 6px;
}

/* ========================================
   9) IMÁGENES / FOTO SOCIO
   ======================================== */
.uar-foto-socio {
  max-width: 200px;
  border-radius: 10%;
  margin: 0 auto;
  display: block;
  box-shadow: 0 2px 6px var(--tf-shadow-lg);
}

/* ========================================
   10) INSTALACIÓN PWA
   ======================================== */
.uar-install-box {
  margin: 0 auto 20px auto;
  background: var(--tf-white);
  padding: 20px;
  border-radius: var(--tf-radius-xl);
  box-shadow: 0 6px 20px var(--tf-shadow-md);
  border-top: 4px solid var(--tf-primary);
  text-align: center;
  font-size: 15px;
}

.uar-install-box p {
  margin-bottom: 15px;
  color: var(--tf-dark);
  font-weight: bold;
}

#uar-install-box {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--tf-white);
  padding: 10px;
  border: 1px solid #ccc;
  z-index: 9999;
  max-width: 400px !important;
}

#uar-install-btn {
  padding: 10px 20px;
  background: var(--tf-primary);
  color: var(--tf-white);
  border: none;
  border-radius: var(--tf-radius);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

#uar-install-btn:hover {
  background: var(--tf-primary-dark-hover);
}

/* ========================================
   11) BOTONES GLOBALES
   ======================================== */
.btn-primary {
  background-color: var(--tf-primary);
  border: none;
  color: var(--tf-white);
  padding: 10px 16px;
  border-radius: var(--tf-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--tf-primary-dark);
}

.btn-secondary {
  background-color: var(--tf-dark);
  border: none;
  color: var(--tf-white);
  padding: 10px 16px;
  border-radius: var(--tf-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--tf-dark-soft);
}

.uar-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--tf-primary);
  color: var(--tf-white) !important;
  text-decoration: none;
  border-radius: var(--tf-radius-sm);
  border: none;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  margin: 5px;
}

.uar-btn:hover {
  background: var(--tf-primary-dark-hover);
}

.uar-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-alta {
  display: inline-block;
  background: var(--tf-white);
  color: var(--tf-primary);
  font-weight: bold;
  padding: 10px 18px;
  border-radius: var(--tf-radius-md);
  text-decoration: none;
  border: 2px solid var(--tf-white);
  transition: all 0.3s ease;
}

.btn-alta:hover {
  background: var(--tf-primary);
  color: var(--tf-white);
  border-color: var(--tf-white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.btn-secretaria {
  background-color: var(--tf-dark) !important;
}

.btn-secretaria:hover {
  background-color: var(--tf-dark-soft);
}

.btn-pagar {
  background-color: var(--tf-primary);
}

.btn-pagar:hover {
  background-color: var(--tf-primary-dark-hover);
}

.btn-bizum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--tf-bizum);
  border-radius: var(--tf-radius);
  border: none;
}

.btn-bizum,
.btn-pagar {
  height: 37px;
  width: auto;
  object-fit: contain;
}

.bizum-logo,
.bbva-logo {
  height: 37px;
}

/* ========================================
   12) TABS
   ======================================== */
.uar-tabs {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  border-bottom: 3px solid var(--tf-dark);
  background: var(--tf-white);
}

.uar-tabs li {
  flex: 1;
  text-align: center;
  padding: 12px 15px;
  cursor: pointer;
  font-weight: 600;
  color: var(--tf-dark);
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.uar-tabs li:hover {
  background: var(--tf-bg-soft-2);
  color: var(--tf-primary);
}

.uar-tabs li.active {
  background: var(--tf-primary);
  color: var(--tf-white);
  border: 1px solid var(--tf-primary);
}

.uar-tab-content {
  background: var(--tf-white);
  padding: 10px;
}

.uar-tab-pane {
  display: none;
}

.uar-tab-pane.active {
  display: block;
}

/* ========================================
   13) DOCUMENTOS
   ======================================== */
.uar-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.uar-doc-card {
  background: var(--tf-white);
  border: 2px solid var(--tf-dark);
  border-radius: var(--tf-radius-md);
  text-align: center;
  padding: 15px 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uar-doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px var(--tf-shadow-lg);
  border-color: var(--tf-primary);
}

.uar-doc-card a {
  text-decoration: none;
  color: var(--tf-dark);
  display: block;
}

.uar-doc-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.uar-doc-name {
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
  color: var(--tf-dark);
}

/* ========================================
   14) TABLA COMPETICIONES
   ======================================== */
.uar-mes {
  margin: 30px 0 15px;
  padding: 8px 12px;
  background: var(--tf-dark);
  color: var(--tf-white);
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: var(--tf-radius);
}

.uar-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: var(--tf-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: var(--tf-radius);
  overflow: hidden;
}

.uar-table thead {
  background: var(--tf-primary);
  color: var(--tf-white);
}

.uar-table th,
.uar-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
  font-size: 0.95rem;
}

.uar-table th {
  font-weight: bold;
}

.uar-table tr:hover td {
  background: #f7f7f8;
}

.uar-table a {
  color: var(--tf-dark);
  font-weight: 500;
  text-decoration: none;
}

.uar-table a:hover {
  color: var(--tf-primary);
  text-decoration: underline;
}

/* ========================================
   15) FILTROS / MENÚS DESPLEGABLES
   ======================================== */
.uar-filtros-wrapper,
.uar-perfil-wrapper,
.uar-cat-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.uar-filtros-btn,
.uar-perfil-btn,
.uar-cat-btn {
  background: var(--tf-dark);
  color: var(--tf-white);
  border: none;
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: var(--tf-radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.uar-filtros-btn:hover,
.uar-perfil-btn:hover,
.uar-cat-btn:hover {
  background: var(--tf-primary);
}

.uar-filtros-menu,
.uar-cat-menu {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 5px;
  background: var(--tf-white);
  border: 1px solid var(--tf-border-soft);
  border-radius: var(--tf-radius);
  box-shadow: 0 4px 8px var(--tf-shadow);
  z-index: 999;
  min-width: 180px;
  padding: 6px 0;
}

.uar-filtros-menu {
  left: 0;
}

.uar-cat-menu {
  right: 0;
}

.uar-filtros-menu button,
.uar-cat-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.uar-filtros-menu button:hover,
.uar-cat-menu button:hover {
  background: #f2f2f3;
}

.uar-filtros-menu button.active,
.uar-prefil-menu button.active,
.uar-cat-menu button.active {
  background: var(--tf-dark);
  color: var(--tf-white);
}

.uar-filtros-wrapper.open,
.uar-filtros-menu,
.uar-cat-menu {
  display: block;
}

/* ========================================
   16) PERFIL MENU EN FILA
   ======================================== */
.uar-perfil-wrapper {
  display: block;
  margin-bottom: 12px;
}

.uar-perfil-btn {
  display: none;
}

.uar-perfil-menu {
  display: flex !important;
  position: static;
  padding: 0;
  margin: 0;
  gap: 8px;
  flex-wrap: wrap;
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
}

.uar-perfil-menu button {
  background: var(--tf-dark);
  color: var(--tf-white);
  border: 0;
  padding: 12px;
  font-size: 0.9rem;
  border-radius: var(--tf-radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease;
  flex: 0 0 auto;
}

.uar-perfil-menu button:hover {
  background: var(--tf-dark-soft);
}

.uar-perfil-menu button:active {
  transform: translateY(1px);
}

/* ========================================
   17) TARJETAS DE PAGO
   ======================================== */
.pago-card {
  border: 1px solid var(--tf-border-soft);
  border-radius: var(--tf-radius-lg);
  padding: 12px;
  margin-bottom: 12px;
  background: var(--tf-white);
  box-shadow: 0 1px 3px var(--tf-shadow);
}

.pago-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.estado {
  font-weight: bold;
}

.estado.pendiente {
  color: var(--tf-primary);
}

.estado.club {
  color: var(--tf-info);
}

.estado.realizado {
  color: var(--tf-success);
}

.pago-importe {
  margin-bottom: 6px;
}

.pago-importe .cantidad {
  font-size: 17px;
  font-weight: bold;
  margin-right: 6px;
}

.pago-importe .metodo {
  background: var(--tf-dark);
  color: var(--tf-white);
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
  display: inline-block;
}

.pago-conceptos ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pago-conceptos li {
  font-size: 16px;
  margin-bottom: 4px;
  padding-left: 24px;
  position: relative;
  text-align: left;
}

.pago-conceptos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--tf-primary);
  background: transparent;
}

/* ========================================
   18) FIRMA
   ======================================== */
.signature-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#signature-pad {
  width: 100%;
  height: 200px;
  border: 1px solid #ccc;
  display: block;
}

#clearSignature,
#saveSignature {
  position: relative;
  padding: 8px 20px;
  color: var(--tf-white);
  border: none;
  border-radius: var(--tf-radius);
  cursor: pointer;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#clearSignature {
  background-color: #f0f0f0;
  color: var(--tf-dark-soft);
}

#clearSignature:hover {
  background-color: #ddd;
  transform: scale(1.05);
}

#saveSignature {
  margin-top: 20px;
  padding: 20px;
  background-color: var(--tf-dark);
}

#saveSignature:hover {
  background-color: var(--tf-dark-soft);
  transform: scale(1.05);
}

#saveSignature:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top: 3px solid var(--tf-white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.uar-signed-box {
  margin-top: 5px;
}

.firma-opciones {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.firma-option {
  flex: 1 1 200px;
  cursor: pointer;
}

.firma-option input {
  display: none;
}

.firma-card {
  border: 2px solid var(--tf-border-soft);
  border-radius: var(--tf-radius-lg);
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--tf-white);
}

.firma-card:hover {
  border-color: var(--tf-dark);
  box-shadow: 0 2px 8px var(--tf-shadow);
}

.firma-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.firma-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.firma-desc {
  font-size: 13px;
  color: #666;
}

.firma-option input:checked+.firma-card {
  border-color: var(--tf-dark);
  background: #f2f2f3;
  box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.12);
}

/* ========================================
   19) ACORDEÓN
   ======================================== */
.accordion-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--tf-white);
}

.accordion-toggle {
  width: 100%;
  padding: 14px 16px;
  background: var(--tf-primary);
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  color: var(--tf-white);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-toggle::after {
  content: "▸";
  font-size: 14px;
  transition: transform 0.2s ease;
  color: var(--tf-white);
}

.accordion-item.active .accordion-toggle {
  background: var(--tf-primary-soft);
  color: var(--tf-primary);
}

.accordion-item.active .accordion-toggle::after {
  transform: rotate(90deg);
  color: var(--tf-primary);
}

.accordion-content {
  display: none;
  background: var(--tf-white);
  color: #2d3748;
  line-height: 1.5;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-content button {
  color: var(--tf-white);
}

.accordion-content .consentimiento-toggle {
  background: var(--tf-dark);
  height: 15px;
  font-size: 12px;
  min-width: 50%;
  width: 50%;
  line-height: 2px;
}

.form {
  width: 100%;
  background: var(--tf-white);
  padding: 25px;
  margin: 15px auto 0 auto;
  border-radius: var(--tf-radius-xl);
  box-shadow: 0 6px 20px var(--tf-shadow-md) !important;
  border-top: 4px solid var(--tf-primary);
  box-sizing: border-box;
  text-align: center;
}

.accordion-content form {
  padding: 0;
  margin: 0;
  box-shadow: none;
  border-top: 0;
  padding-top: 20px;
  width: 100%;
  max-width: 100%;
}

.accordion-item.active {
  background: var(--tf-white);
  border-radius: var(--tf-radius-xl);
  box-shadow: 0 4px 15px var(--tf-shadow-xl);
  border-top: 4px solid var(--tf-primary);
  padding: 25px;
  margin: 15px auto;
}

/* ========================================
   20) CONSENTIMIENTOS
   ======================================== */
.consentimiento {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--tf-dark-soft);
  font-weight: 500;
  user-select: none;
}

#form-consentimientos small {
  color: var(--tf-primary);
  font-weight: bold;
}

.consentimiento span {
  text-align: left;
  color: var(--tf-dark);
  width: 100%;
}

.consentimiento input[type="checkbox"] {
  display: none;
}

.consentimiento .checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #ccc;
  border-radius: var(--tf-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.consentimiento .checkmark::after {
  content: "✔";
  font-size: 14px;
  color: var(--tf-white);
  display: none;
}

.consentimiento input[type="checkbox"]:checked+.checkmark {
  background: #2e7d32;
  border-color: #2e7d32;
}

.consentimiento input[type="checkbox"]:checked+.checkmark::after {
  display: block;
}

.consentimiento-item {
  background: var(--tf-white);
  border-radius: var(--tf-radius-md);
  margin-bottom: 20px;
}

.consentimiento-titulo {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--tf-primary);
}

.consentimiento-resumen {
  margin: 0 0 10px;
  color: #555;
  font-weight: bold;
}

.consentimiento-toggle {
  background: none;
  border: none;
  color: var(--tf-primary);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 10px;
  text-decoration: underline;
  padding: 0;
}

.consentimiento-texto {
  text-align: left;
  display: none;
  margin: 10px 0;
  padding: 10px;
  background: var(--tf-bg-soft-2);
  border-left: 3px solid var(--tf-primary);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--tf-dark-soft);
}

.consentimiento-texto.activo {
  display: block;
}

.consentimiento-texto p {
  margin-bottom: 10px;
}

/* ========================================
   21) SPINNERS / LOADERS
   ======================================== */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--tf-white);
  border-top: 2px solid var(--tf-dark-soft);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--tf-primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.uar-btn .spinner {
  border: 2px solid var(--tf-white);
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

.btn {
  position: relative;
  padding-right: 30px;
}

.btn .loader {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--tf-white);
  border-top: 2px solid var(--tf-dark-soft);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#uar-boton-pagar.loading,
#uar-boton-secretaria.loading,
#boton-pagar-bbva.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

#uar-boton-pagar.loading::after,
#uar-boton-secretaria.loading::after,
#boton-pagar-bbva.loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid var(--tf-white);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========================================
   22) FAMILIARES
   ======================================== */
.perfil-familiares {}

.familiares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.familiar-card {
  background: var(--tf-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--tf-radius-lg);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 1px 3px var(--tf-shadow);
}

.familiar-foto img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tf-border-soft);
}

.familiar-info h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.familiar-info p {
  margin: 2px 0;
  font-size: 14px;
  color: #444;
}

.uar-datos-section {
  display: none;
}

.uar-datos-section.active {
  display: block;
}

/* ========================================
   23) MODAL EVENTOS
   ======================================== */
body.uar-modal-open {
  overflow: hidden;
}

body.uar-modal-open>*:not(#uar-evento-detalle) {
  filter: blur(3px) brightness(0.7) saturate(0.8);
  transition: filter .15s ease;
  pointer-events: none;
  user-select: none;
}

#uar-evento-detalle {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2147483646;
  overscroll-behavior: contain;
}

#uar-evento-contenido {
  width: min(800px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--tf-white);
  border-radius: var(--tf-radius-xl);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  padding: 28px 24px 32px;
  position: relative;
  font-family: system-ui, sans-serif;
  color: #1a202c;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .25s ease, transform .25s ease;
}

#uar-evento-detalle.is-open #uar-evento-contenido {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#uar-evento-contenido h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

#uar-evento-contenido p {
  margin: 10px 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.uar-evento-precio {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--tf-primary);
  margin-top: 18px;
}

.uar-evento-no-disponible {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tf-error);
  background: #fee2e2;
  padding: 10px 14px;
  border-radius: var(--tf-radius-md);
  margin-top: 18px;
}

#uar-boton-pagar,
#uar-boton-secretaria,
#boton-pagar-bbva,
#boton-pagar-bizum {
  width: 100%;
}

#boton-pagar-bizum {
  background: var(--tf-bizum);
  margin-bottom: 8px;
}

#uar-evento-cerrar {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border: none;
  background: var(--tf-primary);
  color: var(--tf-white);
  font-size: 26px;
  font-weight: bold;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  border-top-right-radius: var(--tf-radius-xl);
  transition: background .2s ease;
}

#uar-evento-cerrar:hover {
  background: var(--tf-primary-dark-hover);
}

.uar-lista-participantes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 15px;
}

.uar-participante {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--tf-border-soft);
  border-radius: var(--tf-radius);
  background: #fafafa;
  transition: background 0.2s;
  cursor: pointer;
}

.uar-participante:hover {
  background: #f0f0f0;
}

.uar-participante input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

.uar-nombre {
  font-weight: 500;
  color: var(--tf-dark-soft);
}

/* ========================================
   24) LOPD / MODAL GENERAL
   ======================================== */
.lopd-check {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 8px;
}

.lopd-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--tf-primary);
}

.link-politica {
  color: var(--tf-primary);
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

.link-politica:hover {
  color: var(--tf-primary-dark-hover);
}

.uar-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uar-modal-content {
  background: var(--tf-white);
  padding: 20px;
  max-width: 600px;
  width: 90%;
  border-radius: var(--tf-radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 95vh;
}

.uar-close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

/* ========================================
   25) CAPTURA DNI / FOTO
   ======================================== */
.dni-capture img {
  display: block;
  margin: 10px auto;
  object-fit: contain;
  border: 3px solid #666;
  border-radius: var(--tf-radius-md);
}

#preview_perfil.circle {
  width: 250px;
  height: 320px;
  border-radius: 50% / 70%;
  object-fit: cover;
  border: 2px solid #ccc;
  display: block;
  margin: 10px auto;
}

.dni-rect {
  width: 320px;
  height: 200px;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: var(--tf-radius);
  display: block;
  margin: 10px auto;
}

.dni-capture label {
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--tf-dark-soft);
}

.camera-wrapper {
  position: relative;
  width: 280px;
  height: 200px;
  margin: 0 auto 10px;
  background: #000;
  overflow: hidden;
  display: none;
}

.camera-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-wrapper.circle {
  width: 250px;
  height: 320px;
  overflow: hidden;
  border-radius: 50% / 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  border: 2px solid #ccc;
}

.camera-wrapper.circle video,
.camera-wrapper.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-wrapper.rect {
  border: 2px dashed #666;
}

.dni-capture .controls button {
  display: inline-block;
  margin: 6px 5px;
  padding: 8px 15px;
  border: none;
  border-radius: var(--tf-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: var(--tf-white);
}

button[onclick] {
  background: var(--tf-dark);
}

[id^="startCamera_"] {
  background: var(--tf-primary);
}

[id^="takePhoto_"] {
  background: var(--tf-bizum);
}

[id^="repeat_"] {
  background: var(--tf-primary-dark);
}

/* ========================================
   26) INSCRIPCIONES / NOTIFICACIONES
   ======================================== */
.uar-num-pruebas {
  padding: 5px;
  border-radius: 5px;
  margin-left: 10px;
}

#precio_inscripcion {
  color: var(--tf-success);
  font-size: 20px;
  font-weight: bold;
}

#push-container {
  margin: 20px 0;
  text-align: center;
  position: relative;
}

#push-container button {
  border: none;
  padding: 10px 18px;
  border-radius: var(--tf-radius);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
}

#activarNotificaciones {
  background: #28a745;
  color: var(--tf-white);
}

#desactivarNotificaciones {
  background: var(--tf-primary);
  color: var(--tf-white);
}

#desactivarNotificaciones:hover {
  background: var(--tf-primary-dark-hover);
}

#estadoNotificaciones {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* ========================================
   27) BADGE NOTIFICACIONES
   ======================================== */
#notificacion-badge {
  position: absolute;
  top: 0;
  right: 20px;
}

.notificacion-icon {
  position: relative;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}

#notificacion-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #e63946;
  color: var(--tf-white);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 50%;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.notificacion-popup {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  width: 280px;
  max-height: 350px;
  overflow-y: auto;
  background: var(--tf-white);
  border-radius: var(--tf-radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 10px;
  text-align: left;
  z-index: 9999;
}

.notificacion-popup h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--tf-dark-soft);
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.notificacion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}

.notificacion-item .btn-delete {
  background: transparent;
  border: none;
  color: var(--tf-primary);
  font-size: 14px;
  cursor: pointer;
}

.notificacion-item:last-child {
  border-bottom: none;
}

.notificacion-item.unread {
  font-weight: bold;
  background: #f9f9ff;
}

/* ========================================
   28) RESUMEN PAGO
   ======================================== */
.uar-participante .resumen-pago {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resumen-pago {
  width: 100%;
  border-radius: var(--tf-radius);
  padding: 10px 12px;
  box-sizing: border-box;
  background: var(--tf-primary-soft);
  margin-top: 10px;
}

.resumen-pago.secretaria {
  background-color: var(--tf-info-soft) !important;
}

.resumen-pago.online {
  background-color: #fdeaea;
}

.resumen-pago .fila {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.95rem;
  margin: 4px 0;
  border-bottom: 1px solid #eee;
}

.resumen-pago .fila:last-child {
  border-bottom: none;
}

.resumen-pago .label {
  color: #444;
}

.resumen-pago .valor {
  font-weight: bold;
  color: #111;
}

.resumen-pago .total-final {
  font-weight: bold;
  color: var(--tf-success);
  font-size: 15px;
  margin-top: 6px;
  padding-top: 6px;
}

.resumen-pago .total-final .valor {
  color: var(--tf-success);
}

/* ========================================
   29) ENLACES EXTRA
   ======================================== */
.uar-enlaces-extra {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.uar-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--tf-radius);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  background: var(--tf-bg-light);
  border: 1px solid var(--tf-border-soft);
  color: var(--tf-dark-soft);
}

.uar-btn-link:hover {
  background: #e9e9e9;
}

.texto-legal {
  margin: .5rem 0 0;
  font-size: .9rem;
  text-align: left;
}

.texto-legal a {
  font-weight: 600;
}

/* ========================================
   30) MENU NUEVO HAMBURGUESA
   ======================================== */
.tabs-hamburger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tf-border-soft);
  padding: 10px 15px;
  background: var(--tf-white);
  position: relative;
  z-index: 5;
}

#tabs-toggle {
  border: none;
  background: var(--tf-primary);
  color: var(--tf-white);
  padding: 10px 14px;
  border-radius: var(--tf-radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#tabs-toggle:hover {
  background: var(--tf-primary-dark-hover);
}

#tabs-current {
  font-weight: 600;
  color: var(--tf-dark);
  margin-left: 10px;
}

#tabs-menu {
  list-style: none;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--tf-border-soft);
  border-radius: var(--tf-radius-md);
  box-shadow: 0 8px 16px var(--tf-shadow);
  background: var(--tf-white);
  position: absolute;
  top: 55px;
  left: 15px;
  right: 15px;
  z-index: 10;
}

#tabs-menu li {
  padding: 10px 14px;
  border-radius: var(--tf-radius);
  cursor: pointer;
  color: var(--tf-dark);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

#tabs-menu li:hover {
  background: var(--tf-bg-soft-2);
  color: var(--tf-primary);
}

#tabs-menu li.active {
  background: var(--tf-primary);
  color: var(--tf-white);
}

/* ========================================
   31) TIENDA
   ======================================== */
.tienda-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tienda-grupo__title {
  font: 800 1.05rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  border: none;
  border-left: 4px solid var(--tf-primary);
  border-radius: var(--tf-radius-lg);
  padding: .6rem .8rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: filter .2s ease;
}

.tienda-grupo__title:hover {
  filter: brightness(.95);
}

.tienda-arrow {
  transition: transform .3s ease;
}

.tienda-grupo__title.open .tienda-arrow {
  transform: rotate(180deg);
}

.tienda-grupo__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--tf-white);
  border: 0 solid var(--tf-border);
  border-radius: 0 0 var(--tf-radius-lg) var(--tf-radius-lg);
  overflow: scroll;
  max-height: 0;
  transition: max-height .3s ease;
}

.tienda-grupo__list.open {
  max-height: 1000px;
}

.tienda-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: .9rem 1rem;
  border-bottom: 1px solid #f1f1f1;
  flex-direction: column;
  align-items: stretch;
}

.tienda-item:last-child {
  border-bottom: none;
}

.tienda-item__info {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex: 1 1 auto;
  text-align: left;
}

.tienda-item__name {
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  overflow-wrap: anywhere;
  margin-bottom: 0;
  text-align: left;
  flex: 1 1 auto;
}

.tienda-item__price {
  color: var(--tf-primary);
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tienda-item__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.tienda-item__btn {
  border: 0;
  background: var(--tf-primary);
  color: var(--tf-white);
  font-weight: 700;
  padding: .4rem .8rem;
  border-radius: var(--tf-radius-md);
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
  transition: background .2s ease;
}

.tienda-item__btn:hover {
  background: var(--tf-primary-dark-hover);
}

.tienda-empty {
  color: #6b7280;
  text-align: center;
  padding: .7rem;
  font-style: italic;
}

.tienda-item__media {
  width: 100%;
  display: flex;
  justify-content: center;
}

.tienda-item__img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--tf-radius-lg);
  border: 1px solid var(--tf-border);
  background: var(--tf-white);
}

.tienda-item__attrs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tienda-attr {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tienda-attr__label {
  font-size: .85rem;
  font-weight: 700;
  color: #111827;
  opacity: .9;
}

.tienda-attr__select {
  width: 100%;
  padding: .55rem .7rem;
  border-radius: var(--tf-radius-md);
  border: 1px solid var(--tf-border);
  background: var(--tf-white);
  font-size: .9rem;
  line-height: 1.2;
  outline: none;
}

.tienda-attr__select:focus {
  border-color: var(--tf-primary);
  box-shadow: 0 0 0 3px rgba(215, 38, 46, .12);
}

.tienda-item__foot {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tienda-item__stock {
  font-size: .85rem;
  color: #6b7280;
}

.tienda-item__btn:disabled,
.tienda-item__btn.is-disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ========================================
   32) SLIDER TIENDA
   ======================================== */
.tienda-slider {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.tienda-slider__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--tf-radius-lg);
  border: 1px solid var(--tf-border);
}

.tienda-slider__track::-webkit-scrollbar {
  display: none;
}

.tienda-slider__img {
  flex: 0 0 100%;
  width: 100%;
  /*aspect-ratio: 1/1;*/
  object-fit: cover;
  scroll-snap-align: center;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-x;
}

.tienda-slider__nav {
  display: none !important;
}

.tienda-slider__prev {
  left: 6px;
}

.tienda-slider__next {
  right: 6px;
}

.tienda-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  margin: 0;
}

.tienda-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  border: 0;
  opacity: .9;
}

.tienda-slider__dot.is-active {
  background: rgba(255, 255, 255, .95);
}

/* ========================================
   33) CARRITO
   ======================================== */
#carrito-badge {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  cursor: pointer;
  z-index: 999;
}

.carrito-icon {
  position: relative;
  font-size: 1.8rem;
  width: 56px;
  height: 56px;
  background: var(--tf-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px var(--tf-shadow-lg);
  transition: transform 0.25s ease, background 0.25s ease;
}

.carrito-icon:hover {
  background: var(--tf-bg-soft-2);
  transform: scale(1.05);
}

#carrito-count {
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--tf-primary);
  color: var(--tf-white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  text-align: center;
  line-height: 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

#carrito-count.bump {
  transform: scale(1.3);
}

.carrito-popup {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 70px;
  width: 380px;
  max-height: 420px;
  background: var(--tf-white);
  border-radius: 16px;
  box-shadow: 0 10px 25px var(--tf-shadow-lg);
  overflow-y: auto;
  animation: fadeInCart 0.25s ease;
}

.carrito-popup.active {
  display: block;
}

#carrito-popup h4 {
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid var(--tf-border);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tf-dark);
  background: var(--tf-bg-soft-2);
  border-radius: 16px 16px 0 0;
  text-align: center;
}

.carrito-items {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
}

.carrito-header {
  display: grid;
  grid-template-columns: 50% 20% 20% 10%;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  background: #f1f5f9;
  color: var(--tf-dark);
  border-bottom: 1px solid #e2e8f0;
}

.carrito-item {
  display: grid;
  grid-template-columns: 50% 20% 20% 10%;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.carrito-item:hover {
  background: #f8fafc;
}

.col-concepto {
  font-weight: 600;
  color: var(--tf-dark);
  font-size: 0.8rem;
  text-align: left;
}

.col-socio {
  color: #374151;
  font-size: 0.8rem;
  text-align: left;
}

.col-precio {
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--tf-dark);
  white-space: nowrap;
  margin-right: 30px;
}

.carrito-delete {
  background: var(--tf-primary);
  border: none;
  color: var(--tf-white);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  margin-right: 20px;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carrito-delete:hover {
  background: var(--tf-primary-dark-hover);
  transform: scale(1.1);
}

.carrito-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tf-dark);
  background: var(--tf-bg-soft-2);
  border-top: 1px solid var(--tf-border);
  border-radius: 0 0 16px 16px;
  margin-top: 4px;
}

.carrito-vacio {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #6b7280;
}

#carrito-total {
  transition: opacity 0.2s ease;
  position: relative;
}

#carrito-total.thinking {
  opacity: 0.6;
  padding-right: 18px;
}

#carrito-total.thinking::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: carrito-spin .6s linear infinite;
}

/* ========================================
   34) FOOTER CLUB
   ======================================== */
.club-footer {
  color: var(--tf-dark);
}

/* ========================================
   35) RESPONSIVE
   ======================================== */
@media (min-width: 768px) {
  .tienda-item__img {
    max-width: 280px;
  }
}