/* ----------- BASE GENERAL ----------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
}

/*.titulo-h3 {
font-size: 1.2rem;
  font-weight: 800;
  color: #fff; 
  background: #fff; 
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 
    0 0 4px #003366,
    0 0 8px #003366,
    0 0 16px #003366,
    0 0 32px #003366;
}*/

.titulo-h3 {
  --c-prim: #004080;
  --c-accent: #cc0000;
  font: 800 1.15rem/1.2 system-ui, Segoe UI, Roboto, Arial;
  color: var(--c-prim);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .5rem .9rem;
  padding-left: 1rem;
  border-left: 4px solid var(--c-accent);
  border-right: 4px solid var(--c-accent);
  background: #fff;
  border-radius: 10px;
  display: inline-block;
  outline: 1.5px solid #e5e7eb;
  outline-offset: 4px;
  /* borde externo separado */
}

@keyframes parpadeo {
  from {
    text-shadow: 0 0 5px #ff0044, 0 0 15px #ff0044, 0 0 30px #ff0044;
  }

  to {
    text-shadow: 0 0 10px #ff6688, 0 0 25px #ff6688, 0 0 50px #ff6688;
  }
}

@keyframes gradiente {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Contenedor genérico */
.uar-app,
.uar-login {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 10px;
  text-align: center;
}

/* Títulos */
.uar-app h2,
.uar-login h2 {
  font-size: 22px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 15px;
  border-radius: 6px;
  display: inline-block;
}

/* ----------- LOGIN ----------- */
.uar-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  background: linear-gradient(160deg, #fff 45%, #cc0000 55%);
}

.uar-login.iban {
  min-height: auto !important;
  background: none !important;
}

/* Logotipo */
.uar-login img {
  /*max-width: 180px;*/
  margin-bottom: 25px;
  background: #fff;
  /*padding: 10px;*/
  border-radius: 5px;
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.15);*/
}

/* Caja formulario (login y logout comparten estilo) */
.uar-login form,
.uar-app form {
  width: 100%;
  max-width: 320px;
  background: #fff;
  padding: 25px;
  margin: 15px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-top: 4px solid #cc0000;
  box-sizing: border-box;
  text-align: center;
}

/* Labels */
.uar-login label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  font-weight: bold;
  color: #003366;
}

/* Inputs */
.uar-login input,
.uar-login select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Botones compartidos */
.uar-login button,
.uar-app button {
  width: 100%;
  padding: 12px;
  background: #cc0000;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.uar-login button:hover,
.uar-app button:hover {
  background: #a80000;
}

/* ----------- FICHA SOCIO ----------- */
.uar-app {
  background: #fff;
  border-radius: 12px;
  /*margin-top: 40px;*/
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Datos de socio */
.uar-app p {
  background: #f9f9f9;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* Negrita en etiquetas */
.uar-app strong {
  color: #003366;
}

/* ----------- MENSAJES ----------- */
.uar-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffe5e5;
  color: #cc0000;
  border: 1px solid #cc0000;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 15px;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.uar-error-icon {
  font-size: 18px;
}

.uar-foto-socio {
  max-width: 200px;
  border-radius: 10%;
  margin: 0px auto;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Caja de instalación PWA */
.uar-install-box {

  margin: 0 auto 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-top: 4px solid #cc0000;
  text-align: center;
  font-size: 15px;
}

.uar-install-box p {
  margin-bottom: 15px;
  color: #003366;
  font-weight: bold;
}

#uar-install-box {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  z-index: 9999;
  max-width: 400px !important;
}

#uar-install-btn {
  padding: 10px 20px;
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

#uar-install-btn:hover {
  background: #a80000;
}

.pass {
  color: #fff;
}

.volver {
  color: #000;
}

.btn-login {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--uar-border);
  background: #f9f9f9;
  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;
}



/* --- Estilos de pestañas --- */
.uar-tabs {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  border-bottom: 3px solid #004080;
  /* azul corporativo */
  background: #fff;
}

.uar-tabs li {
  flex: 1;
  text-align: center;
  padding: 12px 15px;
  cursor: pointer;
  font-weight: 600;
  color: #004080;
  /* azul corporativo */
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.uar-tabs li:hover {
  background: #f8f8f8;
  color: #cc0000;
  /* rojo corporativo al pasar */
}

.uar-tabs li.active {
  background: #cc0000;
  /* pestaña activa en rojo */
  color: #fff;
  border: 1px solid #cc0000;

}

.uar-tab-content {
  background: #fff;
  padding: 10px;
  /*border: 1px solid #ddd;
	border-radius: 0 8px 8px 8px;
	box-shadow: 0 3px 6px rgba(0,0,0,0.1);*/
}

.uar-tab-pane {
  display: none;
}

.uar-tab-pane.active {
  display: block;
}

/* --- Botones (coherencia con pestañas) --- */
.btn-primary {
  background-color: #cc0000;
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #a50000;
}

.btn-secondary {
  background-color: #004080;
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background-color: #002d5c;
}

/* --- Grid de documentos --- */
.uar-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.uar-doc-card {
  background: #fff;
  border: 2px solid #004080;
  /* azul corporativo */
  border-radius: 8px;
  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 rgba(0, 0, 0, 0.15);
  border-color: #cc0000;
  /* rojo corporativo al hover */
}

.uar-doc-card a {
  text-decoration: none;
  color: #004080;
  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: #004080;
}

/* Tabla de competiciones */
/* 📅 Encabezado del mes */
.uar-mes {
  margin: 30px 0 15px;
  padding: 8px 12px;
  background: #004080;
  /* azul corporativo */
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 6px;
}

/* 📊 Tabla de competiciones */
.uar-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.uar-table thead {
  background: #cc0000;
  /* rojo corporativo */
  color: #fff;
}

.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: #f7faff;
  /* azul muy claro al pasar el ratón */
}

/* 🔗 Enlaces de las competiciones */
.uar-table a {
  color: #004080;
  /* azul corporativo */
  font-weight: 500;
  text-decoration: none;
}

.uar-table a:hover {
  color: #cc0000;
  /* rojo al pasar */
  text-decoration: underline;
}

/* Contenedor de filtros */
.uar-filtros-wrapper,
.uar-perfil-wrapper,
.uar-cat-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

/* Botón principal */
.uar-filtros-btn,
.uar-perfil-btn,
.uar-cat-btn {
  background: #004080;
  /* azul corporativo */
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.uar-filtros-btn:hover,
.uar-perfil-btn:hover,
.uar-cat-btn:hover {
  background: #cc0000;
  /* rojo corporativo */
}

/* Menú desplegable */
.uar-filtros-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  min-width: 180px;
  padding: 6px 0;
}

.uar-cat-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  min-width: 180px;
  padding: 6px 0;

}

/* Botones internos */
.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: #f2f6fa;
}

.uar-filtros-menu button.active,
.uar-prefil-menu button.active,
.uar-cat-menu button.active {
  background: #004080;
  color: #fff;
}

/* Mostrar menú cuando está abierto */
.uar-filtros-wrapper.open,
.uar-filtros-menu,
.uar-cat-menu {
  display: block;
}



/* Mostrar opciones siempre visibles (sin desplegable) */
.uar-perfil-wrapper {
  display: block;
  margin-bottom: 12px;
}

/* El botón del desplegable no se usa */
.uar-perfil-btn {
  display: none;
}

/* Menú siempre visible en fila, adaptable a móvil */
.uar-perfil-menu {
  display: flex !important;
  position: static;
  padding: 0;
  margin: 0;
  gap: 8px;
  flex-wrap: wrap;
  /* pasa a varias líneas en pantallas pequeñas */
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
}

/* Botones visibles estilo acción */
.uar-perfil-menu button {
  background: #004080;
  color: #fff;
  border: 0;
  padding: 12px;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease;
  flex: 0 0 auto;
}

.uar-perfil-menu button:hover {
  background: #003366;
}

.uar-perfil-menu button:active {
  transform: translateY(1px);
}





/* Tarjeta */
.pago-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cabecera: fecha + estado */
.pago-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.estado {
  font-weight: bold;
}

.estado.pendiente {
  color: #cc0000;
}

.estado.club {
  color: #0050aa;
}

.estado.realizado {
  color: #007c00;
}

/* Importe + método */
.pago-importe {
  margin-bottom: 6px;
}

.pago-importe .cantidad {
  font-size: 17px;
  font-weight: bold;
  margin-right: 6px;
}

.pago-importe .metodo {
  color: #666;
  font-size: 16px;
}

/* Conceptos */

.pago-conceptos ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pago-conceptos li {
  font-size: 16px;
  margin-bottom: 4px;
  padding-left: 24px;
  /* más espacio para el círculo */
  position: relative;
  text-align: left;
}

/* Marcador personalizado (círculo rojo alineado con el texto) */
.pago-conceptos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #cc0000;
  background: transparent;
}

/* Método de pago como etiqueta */
.pago-importe .metodo {
  background: #003366;
  /* azul corporativo */
  color: #fff;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
  display: inline-block;
}

.signature-wrapper {
  width: 100%;
  max-width: 600px;
  /* opcional, para no pasarte en pantallas grandes */
  margin: 0 auto;
  /* centrar en la página */
}

#signature-pad {
  width: 100%;
  /* ocupa el 100% del contenedor */
  height: 200px;
  /* altura fija, puedes ajustarla */
  border: 1px solid #ccc;
  display: block;
}

/* Estilo general de botones de firma */
#clearSignature,
#saveSignature {
  position: relative;
  padding: 8px 20px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#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 #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;

  /* 🔑 esto evita que se mueva */
  vertical-align: middle;
  position: relative;
  top: -1px;
  /* ajuste fino para que quede alineado al texto */


}

/* Botón borrar */
#clearSignature {
  background-color: #f0f0f0;
  color: #333;
}

#clearSignature:hover {
  background-color: #ddd;
  transform: scale(1.05);
}

/* Botón firmar */
#saveSignature {
  margin-top: 20px;
  padding: 20px;
  background-color: #0073aa;
  /* azul WP */
  color: #fff;
}

#saveSignature:hover {
  background-color: #005f8d;
  transform: scale(1.05);
}

.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: 6px;
}

.uar-error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 6px;
}

.uar-warning {
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 10px;
  border-radius: 6px;
}

.uar-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: #0073aa;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
}

.uar-btn:hover {
  background: #005177;
}

.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;
  /* ocultamos el radio original */
}

.firma-card {
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  background: #fff;
}

.firma-card:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.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;
}

/* Cuando está seleccionado */
.firma-option input:checked+.firma-card {
  border-color: #0073aa;
  background: #f0f8ff;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

/* Contenedor general */
.accordion-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  /*border: 1px solid #e2e8f0; 
	border-radius: 8px;	
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);*/
}

/* Botón de acordeón (estado cerrado por defecto) */
.accordion-toggle {
  width: 100%;
  padding: 14px 16px;
  background: #e57373;
  /* 🔴 rojo suave */
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  color: #fff;
  /* texto blanco */
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Flecha indicadora */
.accordion-toggle::after {
  content: "▸";
  font-size: 14px;
  transition: transform 0.2s ease;
  color: #fff;
  /* flecha también en blanco */
}

/* Cuando está abierto */
.accordion-item.active .accordion-toggle {
  background: #edf2f7;
  /* azulito muy claro */
  color: #2b6cb0;
  /* azul medio */
}

.accordion-item.active .accordion-toggle::after {
  transform: rotate(90deg);
  color: #2b6cb0;
}

/* Contenido desplegado */
.accordion-content {
  display: none;
  /*padding: 10px 5px;*/
  background: #fff;
  color: #2d3748;
  line-height: 1.5;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-content button {
  color: #fff;
}

.accordion-content .consentimiento-toggle {
  background: #000;
  height: 15px;
  font-size: 12px;
  min-width: 50%;
  width: 50%;
  line-height: 2px;
}



.form {
  width: 100%;
  background: #fff;
  padding: 25px;
  margin: 15px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  /* 👈 más fuerte + prioridad */
  border-top: 4px solid #cc0000;
  box-sizing: border-box;
  text-align: center;
}

.accordion-content form {
  padding: 0;
  margin: 0;
  box-shadow: none;
  border-top: 0px;
  padding-top: 20px;
  width: 100%;
  max-width: 100%;
}

.accordion-item.active {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border-top: 4px solid #cc0000;
  padding: 25px;
  margin: 15px auto;
}

.consentimiento {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

#form-consentimientos small {
  color: #0073aa;
  font-weight: bold;
}

.consentimiento span {
  text-align: left;
  color: #cc0000;
  width: 100%;
}

/* Ocultar checkbox nativo */
.consentimiento input[type="checkbox"] {
  display: none;
}

/* Icono ✔ */
.consentimiento .checkmark::after {
  content: "✔";
  font-size: 14px;
  color: white;
  display: none;
}

/* Cuando está marcado */
.consentimiento input[type="checkbox"]:checked+.checkmark {
  background: #2e7d32;
  /* verde elegante */
  border-color: #2e7d32;
}

.consentimiento input[type="checkbox"]:checked+.checkmark::after {
  display: block;
}

/* Caja de cada consentimiento */
.consentimiento-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Título */
.consentimiento-titulo {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #003366;
}

/* Resumen */
.consentimiento-resumen {
  margin: 0 0 10px;
  color: #555;
  font-weight: bold;
}

/* Botón toggle */
.consentimiento-toggle {
  background: none;
  border: none;
  color: #0066cc;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 10px;
  text-decoration: underline;
  padding: 0;
}

/* Texto largo oculto */
.consentimiento-texto {
  text-align: left;
  display: none;
  margin: 10px 0;
  padding: 10px;
  background: #f9f9f9;
  border-left: 3px solid #0066cc;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
}

.consentimiento-texto.activo {
  display: block;
}

.consentimiento-texto p {
  margin-bottom: 10px;
}

/* Check personalizado (reutilizamos el estilo anterior) */
.consentimiento {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  user-select: none;
}

.consentimiento input[type="checkbox"] {
  display: none;
}

.consentimiento .checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.consentimiento .checkmark::after {
  content: "✔";
  font-size: 14px;
  color: white;
  display: none;
}

.consentimiento input[type="checkbox"]:checked+.checkmark {
  background: #2e7d32;
  border-color: #2e7d32;
}

.consentimiento input[type="checkbox"]:checked+.checkmark::after {
  display: block;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.perfil-familiares {}

.familiares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.familiar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.familiar-foto img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.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;
}


/* Bloquear scroll body */
body.uar-modal-open {
  overflow: hidden;
}

/* Ofuscar body */
body.uar-modal-open>*:not(#uar-evento-detalle) {
  filter: blur(3px) brightness(0.7) saturate(0.8);
  transition: filter .15s ease;
  pointer-events: none;
  /* evita clics detrás del modal */
  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;
}

/* === Caja modal === */
#uar-evento-contenido {
  width: min(800px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 12px;
  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);
}

/* === Cabecera modal === */
#uar-evento-contenido h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

/* === Texto === */
#uar-evento-contenido p {
  margin: 10px 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* === Precio correcto === */
.uar-evento-precio {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2563eb;
  /* azul */
  margin-top: 18px;
}

/* === Mensaje no disponible === */
.uar-evento-no-disponible {
  font-size: 1rem;
  font-weight: 600;
  color: #dc2626;
  /* rojo */
  background: #fee2e2;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 18px;
}

#uar-boton-pagar,
#uar-boton-secretaria {
  width: 100%;
}

#boton-pagar-bbva,
#boton-pagar-bizum {
  width: 100%;
}

#boton-pagar-bizum {
  background: #08c4cc;
  margin-bottom: 8px;
}

/* === Botón cerrar === */
#uar-evento-cerrar {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border: none;
  background: #e02424;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  border-top-right-radius: 12px;
  transition: background .2s ease;
}

#uar-evento-cerrar:hover {
  background: #c81e1e;
}

/* Botón en estado de carga */
#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 #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.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 #ddd;
  border-radius: 6px;
  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: #333;
}

.uar-pago-exito,
.uar-pago-error {
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Mensaje de éxito */
.uar-pago-exito {
  background-color: #e6f9ec;
  border: 1px solid #38a169;
  color: #2f855a;
}

/* Mensaje de error */
.uar-pago-error {
  background-color: #fde8e8;
  border: 1px solid #e53e3e;
  color: #9b2c2c;
}

.uar-pago-exito::before {
  content: "✅ ";
  margin-right: 6px;
}

.uar-pago-error::before {
  content: "❌ ";
  margin-right: 6px;
}

.btn-alta {
  display: inline-block;
  background: #ffffff;
  /* blanco */
  color: #cc0000;
  /* rojo corporativo UAR */
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
}

.btn-alta:hover {
  background: #cc0000;
  /* rojo */
  color: #ffffff;
  /* blanco al pasar el ratón */
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.lopd-check {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 8px;
  /* separa solo un poco el check del texto */
}

.lopd-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  /* elimina el espacio excesivo */
  accent-color: #cc0000;
  /* color corporativo para el check */
}

.link-politica {
  color: #cc0000;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

.link-politica:hover {
  color: #a00000;
}

.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: #fff;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  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;
}


.dni-capture img {
  display: block;
  margin: 10px auto;

  object-fit: contain;
  /* aquí mejor contain que cover */
  border: 3px solid #666;
  border-radius: 8px;
}

/* Preview de perfil en óvalo */
#preview_perfil.circle {
  width: 250px;
  height: 320px;
  border-radius: 50% / 70%;
  object-fit: cover;
  border: 2px solid #ccc;
}

/* Preview DNI horizontal */
.dni-rect {
  width: 320px;
  /* mismo ancho que tu marco */
  height: 200px;
  /* mismo alto que tu marco */
  object-fit: cover;
  /* rellena todo el contenedor */
  border: 2px solid #ccc;
  border-radius: 6px;
  display: block;
  margin: 10px auto;
}


.dni-capture label {
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.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;
  /* vertical */
  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;
}

#preview_perfil.circle {
  width: 250px;
  height: 320px;
  border-radius: 50% / 70%;
  /* óvalo vertical */
  object-fit: cover;
  /* centra la imagen */
  display: block;
  margin: 10px auto;
  border: 2px solid #ccc;
}

/* DNI rectangular */
.camera-wrapper.rect {
  border: 2px dashed #666;
}

/*.dni-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  aspect-ratio: 86/54;
  transform: translate(-50%, -50%);
  border: 3px dashed red;
  box-sizing: border-box;
}*/

/* Botones */
.dni-capture .controls button {
  display: inline-block;
  margin: 6px 5px;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}



button[onclick] {
  background: #004080;
  /* subir */
}

[id^="startCamera_"] {
  background: #007bff;
  /* abrir cámara */
}

[id^="takePhoto_"] {
  background: #17a2b8;
  /* capturar */
}

[id^="repeat_"] {
  background: #dc3545;
  /* repetir */
}

.btn {
  position: relative;
  padding-right: 30px;
  /* espacio para el loader */
}

.btn .loader {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

.uar-num-pruebas {
  padding: 5px;
  border-radius: 5px;
  margin-left: 10px;
}

#precio_inscripcion {
  color: #1b8500;
  font-size: 20px;
  font-weight: bold;
}

#push-container {
  margin: 20px 0;
  text-align: center;
}

#push-container button {
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
}

#activarNotificaciones {
  background: #28a745;
  color: #fff;
}

#activarNotificaciones:hover {}

#desactivarNotificaciones {
  background: #dc3545;
  color: #fff;
}

#desactivarNotificaciones:hover {
  background: #c82333;
}

#estadoNotificaciones {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #cc0000;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Spinner en los botones */
.uar-btn {
  position: relative;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #cc0000;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  margin: 5px;
}

.uar-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.uar-btn .spinner {
  border: 2px solid #fff;
  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;
}

#push-container {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

#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: #fff;
  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: #fff;
  border-radius: 10px;
  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: #333;
  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: #c00;
  font-size: 14px;
  cursor: pointer;
}

.notificacion-item:last-child {
  border-bottom: none;
}

.notificacion-item.unread {
  font-weight: bold;
  background: #f9f9ff;
}


.uar-participante .resumen-pago {

  flex-direction: column;
  /* 👈 cambia la dirección a vertical */
  align-items: flex-start;
  /* 👈 alinea el contenido a la izquierda */
  gap: 6px;
  /* separación vertical */

}



.resumen-pago.secretaria {
  background: #c6dbef !important;
}

.resumen-pago .fila {
  display: flex;
  justify-content: space-between;
  padding: 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: #007b00;
  font-size: 15px;
  margin-top: 6px;
  padding-top: 6px;

}

.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: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
}

.uar-btn-link:hover {
  background: #e9e9e9;
}



/*MENU NUEVO*/

/* Contenedor principal */
.tabs-hamburger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding: 10px 15px;
  background: #fff;
  position: relative;
  z-index: 5;
}

/* Botón de hamburguesa */
#tabs-toggle {
  border: none;
  background: #cc0000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#tabs-toggle:hover {
  background: #a30000;
}

/* Texto de pestaña activa */
#tabs-current {
  font-weight: 600;
  color: #004080;
  margin-left: 10px;
}

/* Menú desplegable */
#tabs-menu {
  list-style: none;
  margin: 0;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  background: #fff;
  position: absolute;
  top: 55px;
  left: 15px;
  right: 15px;
  z-index: 10;
}

#tabs-menu li {
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  color: #004080;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

#tabs-menu li:hover {
  background: #f8f8f8;
  color: #cc0000;
}

#tabs-menu li.active {
  background: #cc0000;
  color: #fff;
}

/*TIENDA*/

.tienda-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ====== CABECERA DE CADA GRUPO (BOTÓN DESPLEGABLE) ====== */
.tienda-grupo__title {
  font: 800 1.05rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  border: none;
  border-left: 4px solid #cc0000;
  /* franja roja a la izquierda */
  border-radius: 10px;
  padding: .6rem .8rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: filter .2s ease;
  /* el color de fondo y texto llega inline desde PHP con style="background:...; color:..." */
}

.tienda-grupo__title:hover {
  filter: brightness(.95);
}

.tienda-arrow {
  transition: transform .3s ease;
}

.tienda-grupo__title.open .tienda-arrow {
  transform: rotate(180deg);
}

/* ====== CONTENEDOR DESPLEGABLE DE CONCEPTOS ====== */
/* Versión con slide por max-height. Si prefieres precisión total, controla max-height con JS */
.tienda-grupo__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0px solid #e5e7eb;
  border-radius: 0 0 10px 10px;
  overflow: scroll;
  max-height: 0;
  /* cerrado */
  transition: max-height .3s ease;
}

.tienda-grupo__list.open {
  max-height: 1000px;
  /* abierto; ajusta si tienes muchos ítems */
}

/* ====== ÍTEM DE CONCEPTO ====== */
.tienda-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* texto alineado arriba/izquierda */
  gap: 10px;
  padding: .9rem 1rem;
  border-bottom: 1px solid #f1f1f1;
}

.tienda-item:last-child {
  border-bottom: none;
}

/* Bloque izquierdo: nombre arriba, precio debajo */
.tienda-item__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* asegura alineación izquierda */
  justify-content: center;
  flex: 1 1 auto;
  text-align: left;
}

.tienda-item__name {
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  overflow-wrap: anywhere;
  margin-bottom: 4px;
  text-align: left;
}

.tienda-item__price {
  color: #004080;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
}

/* Bloque derecho: botón pequeño a la derecha */
.tienda-item__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.tienda-item__btn {
  border: 0;
  background: #cc0000;
  color: #fff;
  font-weight: 700;
  padding: .4rem .8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
  transition: background .2s ease;
}

.tienda-item__btn:hover {
  background: #a30000;
}

/* ====== ESTADOS ====== */
.tienda-empty {
  color: #6b7280;
  text-align: center;
  padding: .7rem;
  font-style: italic;
}



/* ================================
   TIENDA: mejoras cuando hay imagen/atributos
   (no rompe tus estilos base)
================================ */

/* El item pasa a layout vertical (nombre > imagen > selects > pie) */
.tienda-grupo__list .tienda-item {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

/* Info (nombre + precio) ahora en una fila: nombre izq, precio dcha */
.tienda-grupo__list .tienda-item__info {
  width: 100%;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* Nombre puede ocupar más, precio no se rompe */
.tienda-grupo__list .tienda-item__name {
  margin-bottom: 0;
  /* antes tenías margen inferior */
  flex: 1 1 auto;
}

/* Precio arriba a la derecha con tu estilo */
.tienda-grupo__list .tienda-item__price {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Imagen centrada y con tamaño controlado */
.tienda-item__media {
  width: 100%;
  display: flex;
  justify-content: center;
}

.tienda-item__img {
  width: 100%;
  max-width: 240px;
  /* ajusta si quieres más grande */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

/* Atributos: uno debajo de otro */
.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: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: .9rem;
  line-height: 1.2;
  outline: none;
}

.tienda-attr__select:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, .12);
}

/* Pie: precio (izq) + botón (dcha) tal y como está */
.tienda-item__foot {
  width: 100%;
  /*display: flex;*/
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* El bloque de acción mantiene tu botón a la derecha */
.tienda-item__action {
  justify-content: flex-end;
}

/* Stock (si lo muestras) */
.tienda-item__stock {
  font-size: .85rem;
  color: #6b7280;
}

/* Botón deshabilitado (cuando stock=0) */
.tienda-item__btn:disabled,
.tienda-item__btn.is-disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Responsive: en pantallas grandes, imagen más grande */
@media (min-width: 768px) {
  .tienda-item__img {
    max-width: 280px;
  }
}


/* Slider imágenes concepto */
.tienda-slider {
  position: relative;
  width: 100%;
  max-width: 220px;
  /* ajusta según tu diseño */
  margin: 0 auto;
}

/* Track con scroll horizontal tipo carrusel */
.tienda-slider__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.tienda-slider__track::-webkit-scrollbar {
  display: none;
}

/* Chrome/Safari */

/* Cada imagen "encaja" al deslizar */
.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;
}

/* Puntitos discretos (si quieres mantenerlos) */
.tienda-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  /* no “parecen botones” */
  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);
}


/*CARRITO*/

/* === ICONO PRINCIPAL === */
#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: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, background 0.25s ease;
}

.carrito-icon:hover {
  background: #f9fafb;
  transform: scale(1.05);
}

/* Contador */
#carrito-count {
  position: absolute;
  top: 4px;
  right: 6px;
  background: #ef4444;
  color: #fff;
  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);
}

/* === POPUP === */
.carrito-popup {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* 🔹 centrado respecto al icono */
  top: 70px;
  width: 380px;
  max-height: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  animation: fadeInCart 0.25s ease;
}

.carrito-popup.active {
  display: block;
}

@keyframes fadeInCart {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* === CABECERA === */
#carrito-popup h4 {
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.1rem;
  font-weight: 700;
  color: #004080;
  background: #f9fafb;
  border-radius: 16px 16px 0 0;
  text-align: center;
}

/* === LISTA === */
.carrito-items {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Encabezado de columnas */
.carrito-header {
  display: grid;
  grid-template-columns: 50% 20% 20% 10%;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  background: #f1f5f9;
  color: #1e3a8a;
  border-bottom: 1px solid #e2e8f0;
}

/* === ÍTEM === */
.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;
}

/* Columnas */
.col-concepto {
  font-weight: 600;
  color: #1e40af;
  font-size: 0.8rem;
  text-align: left;
}

.col-socio {
  color: #374151;
  font-size: 0.8rem;
  text-align: left;
}

.col-precio {
  text-align: right;
  font-weight: 600;
  font-size: 0.8rem;
  color: #004080;
  text-align: left;
  white-space: nowrap;
  margin-right: 30px;
}

/* Botón eliminar */
.carrito-delete {
  background: #ef4444;
  border: none;
  color: #fff;
  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: #dc2626;
  transform: scale(1.1);
}

/* === PIE === */
.carrito-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #004080;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 16px 16px;
  margin-top: 4px;
}

/* === MENSAJE VACÍO === */
.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;
}

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

.btn-secretaria {
  background-color: #003580 !important;
}

.btn-secretaria:hover {
  background-color: #00275a;
}

.btn-pagar {
  background-color: #c00;
}

.btn-pagar:hover {
  background-color: #a00000;
}


.resumen-pago {
  width: 100%;
  border-radius: 6px;
  padding: 10px 12px;
  box-sizing: border-box;
  background: #ffd9d9;
  padding: 10px;
  margin-top: 10px;
}

.resumen-pago.secretaria {
  background-color: #e6f0ff;
}

.resumen-pago.online {
  background-color: #fdeaea;
}

.resumen-pago .fila {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin: 4px 0;
}

.resumen-pago .total-final {
  font-weight: 700;
}

.resumen-pago .total-final .valor {
  color: #007a00;
}

.texto-legal {
  margin: .5rem 0 0;
  font-size: .9rem;
  text-align: left;
}

.texto-legal a {
  font-weight: 600;
}

.btn-bizum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* separación entre logo y texto */
  background: #08c4cc;
  /* color bizum */
  border-radius: 6px;
  border: none;
}

.btn-bizum,
.btn-pagar {
  height: 37px;
  /* ajusta a tu gusto */
  width: auto;
  object-fit: contain;
}

.bizum-logo,
.bbva-logo {
  height: 37px;
}