#vn-formulario_equipo, #vn-resumen {
    font-family: 'Raleway', sans-serif;
    color: #5e5e5e;
}
#vn-formulario_equipo {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
    font-family: sans-serif;
    font-size: 16px;
}

#vn-formulario_equipo h3, #vn-formulario_equipo h4 {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 20px;
    color: #c30b07
}

#vn-formulario_equipo label {
    display: block;
    margin-bottom: 1px;
    line-height: 1.5;
    font-weight: normal;
    cursor: pointer;
    color: #c30b07 !important;
}

#vn-formulario_equipo input[type="radio"],
#vn-formulario_equipo input[type="checkbox"] {
    margin-right: 8px;
    color: black !important;
}

#vn-formulario_equipo select {
    width: 100%;
    max-width: 100%;
    padding: 6px;
    margin: 5px 0 15px 0;
}

#vn-formulario_equipo button {
    padding: 10px 20px;
    font-size: 1em;
    margin-right: 10px;
    cursor: pointer;

}

#vn-resumen {
    max-width: 600px;
    margin: 30px auto;
    padding: 15px;
    background: #eef4f8;
    border: 1px solid #ccc;
    font-family: sans-serif;
}
#vn-formulario_equipo button {
    background-color: #c30b07;
    color: #ffffff;
    border: 2px solid #20bda8;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 1em;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#vn-formulario_equipo button:hover {
    background-color: #a57204;
    color: #ffffff;
}
.vn-grid-equipo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.vn-card-equipo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px; /* ajusta si es necesario */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    text-align: center;
}

.vn-card-equipo:hover {
    transform: scale(1.03);
}

.vn-card-equipo img {
   
    object-fit: contain;
    margin-bottom: 10px;
}

.vn-btn_equipo {
    display: inline-block;
    background-color: #20bda8;
    color: white;
    padding: 6px 12px;
    margin-top: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.vn-btn_equipo:hover {
    background-color: #1ca28f;
}
@media (max-width: 768px) {
    .vn-grid-equipo {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vn-grid-equipo {
        grid-template-columns: 1fr;
    }
}
.vn-card-equipo h4 {
    font-size: 1rem;
    margin: 5px 0;
}

.vn-card-equipo p {
    margin: 4px 0;
    font-size: 0.9rem;
}
.vn-resumen-totales {
    max-width: 300px;
    margin: 30px auto;
    padding: 16px;
    background-color: #f4f4f4;
    border: 2px solid #20bda8;
    border-radius: 8px;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.vn-resumen-totales h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #20bda8;
}

.vn-resumen-totales p {
    margin: 4px 0;
    font-size: 0.95em;
}
.vn-resumen-totales {
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.vn-resumen-totales:hover {
    box-shadow: 0 0 8px #20bda8;
}
.vn-export-buttons-equipo {
    text-align: center;
    margin-top: 20px;
}

.vn-export-buttons-equipo button {
    background-color: #c30b07;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    margin: 5px;
    font-size: 0.95em;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.vn-export-buttons-equipo button:hover {
    background-color: #1ca28f;
}
.vn-export-con-margen-equipo {
    padding: 40px;
    background-color: white; /* importante para evitar fondo transparente */
}
.vn-volver-formulario-equipo {
    text-align: center;
    margin-top: 20px;
}

.vn-volver-formulario-equipo button {
    background-color: #1205bd;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.95em;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.vn-volver-formulario-equipo button:hover {
    background-color: #d75434;
}
.vn-card-equipo .vn-btn_equipo {
    margin-top: auto;
    padding: 6px 12px;
    background-color: #c30b07;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.vn-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vn-popup-inner {
    background: white;
    padding: 20px;
    max-width: 90%;
    border-radius: 10px;
    text-align: left;
}
/* ---------- VCARD / IMAGEN ---------- */
/* Contenedor de la vcard: adapta según tu layout */
.vn-vcard {
  display: flex;
  align-items: center;       /* centra verticalmente si hay texto al lado */
  gap: 12px;
  box-sizing: border-box;
}

/* Imagen de la tarjeta - tamaño fijo para exportación (4x4 cm)
   Mantiene aspecto correcto y recorta si es necesario */
.vn-vcard-img {
  width: 4cm;                /* ancho fijo 4 cm */
  height: 4cm;               /* alto fijo 4 cm */
  min-width: 4cm;
  min-height: 4cm;
  max-width: 100%;
  display: block;
  object-fit: cover;         /* rellena la caja sin deformar (corta si hace falta) */
  object-position: center;   /* centra el recorte */
  border-radius: 6px;        /* opcional */
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Si quieres que la imagen se adapte al ancho del contenedor manteniendo ratio */
.vn-vcard-img--fluid {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;       /* mantiene 1:1 si el navegador soporta aspect-ratio */
  object-fit: cover;
}

/* ---------- MARGEN / ESTILOS DURANTE EXPORT ---------- */
.vn-export-con-margen-equipo {
  padding: 1cm;              /* margen interior en la captura */
  background: #ffffff;       /* fuerza fondo blanco en el jpg */
  box-sizing: border-box;
  -webkit-print-color-adjust: exact; /* ayuda en algunas implementaciones */
  print-color-adjust: exact; /* estándar CSS para todos los navegadores modernos */
}

/* Ajustes finos para el wrapper (si tu grid o layout lo necesita) */
#vn-export-wrapper-equipo {
  width: auto;
  max-width: 100%;
}

/* Clase placeholder para reservar espacio si decides usar display:none */
.vn-export-placeholder-equipo {
  display: inline-block;
  width: 1px;                /* ancho mínimo, sólo para reservar altura */
  height: var(--vn-btn-height, 40px); /* misma altura que tus botones */
}

/* Opcional: escondemos transiciones que puedan provocar repintes extra */
.vn-vcard, .vn-vcard * {
  transition: none !important;
}

/* ---------- VN EXPORT LOADER ---------- */
#vn-export-loader {
  position: fixed;
  inset: 0;                      /* top:0; right:0; bottom:0; left:0; */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 99999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#vn-export-loader .vn-export-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #222;
  font-size: 15px;
}

/* Spinner */
#vn-export-loader .vn-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(0,0,0,0.12);
  border-top-color: rgba(0,0,0,0.65);
  animation: vn-spin 0.9s linear infinite;
}

@keyframes vn-spin {
  to { transform: rotate(360deg); }
}

/* Texto pequeño */
#vn-export-loader .vn-export-text {
  white-space: nowrap;
}
/* Contenedor que cubre toda la pantalla y la oscurece un poco */
#loader-overlay {
    position: fixed; /* Fija la posición en la ventana */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Fondo blanco con 70% de opacidad */
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    z-index: 9999; /* Asegura que esté por encima de todos los demás elementos */
    flex-direction: column;  /* para poner texto debajo */
    gap: 12px;               /* separación spinner-texto */
}
#loader-overlay .loader-text{
  font-weight: 600;
  color: red;
  font-size: 30px;
  text-align: center;
}

/* El spinner (el círculo que gira) */
.spinner {
    border: 6px solid #f3f3f3; /* Gris claro */
    border-top: 6px solid #3498db; /* Azul primario */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite; /* Aplica la animación */
}

/* Definición de la animación de giro */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contenedor que cubre toda la pantalla y la oscurece un poco */
#loader-overlay_marca {
    position: fixed; /* Fija la posición en la ventana */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Fondo blanco con 70% de opacidad */
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    z-index: 9999; /* Asegura que esté por encima de todos los demás elementos */
}
#loader-overlay_calcular {
    position: fixed; /* Fija la posición en la ventana */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Fondo blanco con 70% de opacidad */
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    z-index: 9999; /* Asegura que esté por encima de todos los demás elementos */
}

/* El spinner (el círculo que gira) */
.spinner_marca {
    border: 6px solid #f3f3f3; /* Gris claro */
    border-top: 6px solid #3498db; /* Azul primario */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin_marca 1s linear infinite; /* Aplica la animación */
}
.spinner_calcular {
    border: 6px solid #f3f3f3; /* Gris claro */
    border-top: 6px solid #3498db; /* Azul primario */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin_marca 1s linear infinite; /* Aplica la animación */
}

/* Definición de la animación de giro */
@keyframes spin_marca {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Definición de la animación de giro */
@keyframes spin_calcular {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Aplica al clon también (las reglas inline ya se aplican, esto es por si no se fijan) */
.vn-card-equipo img {
  display: block;
  object-fit: cover;
  object-position: center;
  max-width: 100%;
}
.vn-card-equipo, .vn-card-equipo * {
  transition: none !important;
}

#vn-calc-overlay-equipo{
  position: fixed;
  inset: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  flex-direction: column;
  gap: 12px;
}

.vn-calc-spinner-equipo{
  width: 56px;
  height: 56px;
  border: 6px solid  hsl(0, 84%, 24%);
  border-top-color:  rgba(53, 29, 173, 0.82);
  border-radius: 50%;
  animation: vnCalcSpinEquipo 0.9s linear infinite;
}

@keyframes vnCalcSpinEquipo{
  to { transform: rotate(360deg); }
}

.vn-calc-text-equipo{
  color: rgba(53, 29, 173, 0.82);
  font-weight:600;
  font-size:20px;
}