:root {
  --primary-color: #dd183b;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #dd183b;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --body-font-family: Gotham, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
  --font-size-base: 1rem;
  --line-height-base: 1.5;
  --body-color: #212529;
  --body-bg: #fff;
  --border-radius: 0.25rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body-font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--body-color);
  background-color: var(--body-bg);
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.2rem;
  font-family: var(--body-font-family);
  font-weight: 300;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 1rem 0;
}

section {
  margin: 0rem 0;
}

/* Estilo para redondear la imagen del evaluador */
.evaluador img {
    width: 120px;           /* Ajusta el tamaño según prefieras */
    height: 120px;          /* Debe ser igual al width para un círculo perfecto */
    object-fit: cover;     /* Evita que la imagen se deforme */
    border-radius: 50%;    /* Esto crea el efecto circular */
    border: 2px solid #ccc; /* Opcional: un borde para que resalte */
}

.map-container {
    padding-top: 5px;          /* Espaciado superior */
    border-radius: 8px;        /* ¡Esquinas redondeadas! (puedes cambiar los px) */
    overflow: hidden;          /* ¡OBLIGATORIO para que el mapa se corte en las esquinas! */
    box-sizing: border-box;
}

.map-container iframe {
    display: block;            /* Elimina espacios en blanco extra bajo el iframe */
}

/* Contador de días */
.contador {
  margin-top: 15px;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.80), rgba(40, 40, 40, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
}

/* Carrousel Fotos */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.20) 45%,
    rgba(0, 0, 0, 0.40) 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.bloque-carrousel-home {
  width: 100%;
  margin: 0 0 0rem 0;
}

.carrousel-home-3fotos {
  width: 100%;
  overflow: hidden;
}

.slide-contenido {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.carrousel-home-3fotos .swiper-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.92) saturate(1.05);
}

.slide-contenido:hover img {
  transform: scale(1.05);
  filter: brightness(0.82) saturate(1.12);
}

.slide-contenido:hover .slide-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.48) 100%
  );
}

.carrousel-home-3fotos .swiper-button-prev,
.carrousel-home-3fotos .swiper-button-next {
  color: #ffffff;
}

.carrousel-home-3fotos .swiper-pagination-bullet-active {
  background: #ffffff;
}

.slide-texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  z-index: 2;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  width: 80%;
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .carrousel-home-3fotos .swiper-slide img {
    height: 240px;
  }

  .slide-texto {
    font-size: 1.4rem;
    width: 88%;
  }

  .slide-contenido {
    border-radius: 16px;
  }
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-white {
  color: #fff;
}

.text-success {
  color: var(--success-color);
}

.text-muted {
  color: var(--secondary-color);
}

.text-lowercase {
  text-transform: lowercase;
}

.text-dark {
  color: #212529;
}

/* Spacing utilities (usadas en tu HTML) */
.m-3 {
  margin: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.body-full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.flex-grow {
  flex: 1;
}

/* ==========================================================================
   Layout & Grid System
   ========================================================================== */

.container {
  width: 100%;
  padding-right: 0.25rem;
  padding-left: 0.25rem;
  margin-right: auto;
  margin-left: auto;
}

/* Breakpoints container */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Grids */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, 21rem);
  justify-content: center;
  gap: 1rem;
}

.grid-participar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 1024px) {
  .grid-participar {
    grid-template-columns: 2fr 1fr;
  }
}

.grid-cartelera {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-cartelera {
    grid-template-columns: 1fr 1fr;
  }
}

.lote-linea-info,
.lote-linea-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .lote-linea-info {
    grid-template-columns: 1fr 3fr;
  }

  .lote-linea-detail {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

.justify-content-start {
  justify-content: flex-start;
}

.justify-content-end {
  justify-content: flex-end;
}

.justify-content-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.ml-auto {
  margin-left: auto;
}

/* Display utilities */
.solo-desktop {
  display: none;
}

.solo-mobile {
  display: block;
}

@media (min-width: 992px) {
  .solo-desktop {
    display: block;
  }

  .solo-mobile {
    display: none;
  }
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 400;
  color: var(--body-color);
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  border-radius: var(--border-radius);
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.btn:hover {
  text-decoration: none;
  font-weight: 400;
}

/* Variants */
.btn-light {
  color: #ffffff;
  font-weight: 400;
}

.btn-light:hover {
  background-color: #fff;
  border-color: var(--light-color);
  border-radius: 15px;
}

.btn-success {
  color: #fff;
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-success:hover {
  background-color: #1f8a3a;
  border-color: #1f8a3a;
  color: #fff;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0069d9;
  border-color: #0069d9;
  color: #fff;
}

.btn-secondary {
  color: #fff;
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  color: #fff;
  background-color: #9299a0;
  border-color: #9299a0;
}

.btn-dark {
  color: #fff;
  background-color: var(--dark-color);
  border-color: var(--dark-color);
}

.btn-dark:hover {
  background-color: #23272b;
}

/* Danger usando el rojo principal del sitio */
.btn-danger {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-danger:hover {
  background-color: #d80000;
  border-color: #d80000;
  color: #fff;
}

.btn-warning {
  color: #212529;
  background-color: var(--warning-color);
  border-color: var(--warning-color);
}

.btn-warning:hover {
  background-color: #e0a800;
}

/* Size */
.btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 0.25rem;
}

/* Block */
.btn-block {
  display: block;
  width: 100%;
}

/* Center utility for buttons (centrado dentro de cards) */
.btn-center {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.75rem auto 0;
}

/* Si por error queda btn-block + btn-center, prevalece el centrado */
.btn-block.btn-center {
  width: fit-content;
}

/* Outline */
.btn-outline-success {
  color: var(--success-color);
  border-color: var(--success-color);
}

.btn-outline-success:hover {
  color: #fff;
  background-color: var(--success-color);
  border-color: var(--success-color);
}

/* Navbar */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-container {
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand img {
  height: 70px;
  display: block;
  border-radius: 0.5rem;
}

.navbar-toggler {
  display: none;
  background: none;
  border: 1px solid var(--light-color);
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.navbar-toggler-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba%28248, 249, 250, 0.75%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
  flex-grow: 1;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.nav-link {
  margin: 0 0.5rem;
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: block;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .navbar-collapse {
    display: none;
    width: 100%;
  }

  .navbar-collapse.show {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .nav-link {
    margin: 0.5rem 0;
  }
}

/* Iconos en círculo */
.paso-icono {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem auto;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  box-shadow: var(--box-shadow);
}

.paso-icono i {
  font-size: 2.2rem;
  line-height: 1;
}

/* Backgrounds */
.bg-info {
  background-color: var(--info-color);
}

.bg-dark {
  background-color: var(--dark-color);
}

/* Card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: var(--border-radius);
}

.card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

.card-header {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.00);
}

.card-footer {
  padding: 0.75rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* CAMBIO: card-title con fuente normal (y evita que strong lo ponga en negrita) */
.card-title {
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.card-title strong {
  font-weight: 400;
}

.shadow {
  box-shadow: var(--box-shadow);
}

/* border utility */
.border-0 {
  border: 0 !important;
}

/* Table */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--body-color);
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.table-sm th,
.table-sm td {
  padding: 0.3rem;
}

/*
 * Contenedor de cada elemento (simula Bootstrap .form-group)
 * Pure.css usaría .pure-control-group
 */
.form-group {
  margin-bottom: 1rem;
}

/* Inputs (form-control like) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea {
  min-height: 80px;
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: auto;
  margin-right: 0.5rem;
}

/* Alert */
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* Media helpers */
.img-fluid {
  max-width: 80%;
  height: auto;
}

.rounded {
  border-radius: var(--border-radius);
}

.embed-16-9 {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-container {
  background: white;
  border-radius: 0.5rem;
  width: 98%;
  max-width: 74rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-header {
  padding: 1rem 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 400;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  color: #aaa;
  margin-top: -0.75rem;
  margin-right: -0.25rem;
}

.modal-close-btn:hover {
  color: #777;
}

.modal-body {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding: 20px;
}

.modal-footer {
  padding: 10px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

/* Swiper */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   AJUSTES NUEVOS (según tus últimos pedidos)
   - Campos usuario/contraseña centrados y sin ancho fijo (solo max-width)
   - Botones centrados y más separados del campo contraseña
   - Nuevo usuario: todo centrado
   ========================================================================== */

#formLogin .container {
  margin-top: 1rem;
}

/* Centrado del título de secciones (Ingreso / Nuevo usuario) */
#formLogin .card-title {
  text-align: center;
}

/* Contenedor que centra los inputs y evita "ancho fijo"
   (max-width = máximo, en mobile ocupa 100%) */
#formLogin .form-center {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

/* Separación entre inputs */
#formLogin .form-group {
  margin-bottom: 1rem;
}

/* Más aire entre contraseña y botones */
#formLogin .form-group:last-of-type {
  margin-bottom: 1.35rem;
}

/* Botonera centrada y con separación */
#formLogin .login-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}

/* Bloques de mensajes */
.msg {
  margin: 1rem auto;
}

/* Ficha de Remates Home */

/* ==========================================================
   OVERRIDES FICHA REMATE
   Pegarlo al final del CSS actual
   ========================================================== */

.grid-cartelera {
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .grid-cartelera {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.cartelera-info,
.cartelera-media {
  height: 100%;
}

/* Caja izquierda */
.cartelera-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

/* Título principal */
.cartelera-info h1:first-child {
  margin-bottom: 0;
  color: #d40000 !important;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Fecha */
.cartelera-info h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 0.7rem 1rem;
  background: #f4f4f4;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  color: #222 !important;
  font-size: 1.5rem;
  font-weight: 500;
}

/* Cabezas */
.cartelera-info .display-3 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #c1121f, #e5383b);
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 10px 22px rgba(193, 18, 31, 0.18);
}

/* Botones */
.botones-cartelera {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.botones-cartelera .btn {
  border-radius: 999px;
  padding: 0.58rem 1rem;
  font-weight: 400;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.botones-cartelera .btn i {
  margin-right: 0.35rem;
}

/* PDF / links dinámicos */
.cartelera-info > div:not(.botones-cartelera):not(.contador) a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0.35rem 0.25rem 0;
  padding: 0.55rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: #212529;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.cartelera-info > div:not(.botones-cartelera):not(.contador) a:hover {
  background: #111827;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Comentarios */
.cartelera-info h4 {
  margin: 0;
  color: inherit !important;
}

.cartelera-info h4 span {
  display: inline-block;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #1f2937 !important;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Texto descriptivo */
.cartelera-info p {
  margin-bottom: 0;
  padding: 0.95rem 1rem;
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  color: #444;
  line-height: 1.55;
}

.cartelera-info p a {
  color: #c1121f;
  font-weight: 700;
}

/* Línea y contacto */
.cartelera-info hr {
  margin: 0.3rem 0 0.1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cartelera-info {
  color: #6b7280;
}

/* Contador mejor integrado */
.contador {
  margin-top: 0.4rem;
  align-self: flex-start;
  padding: 0.9rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17,24,39,0.96), rgba(45,55,72,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

/* Caja derecha */
.cartelera-media {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.cartelera-media .embed-16-9,
.cartelera-media .afiche-remate,
.cartelera-media img {
  width: 100%;
  min-height: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
  background: #111;
}

/* Si es imagen */
.cartelera-media .afiche-remate,
.cartelera-media img {
  max-width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: brightness(0.97) saturate(1.03);
}

.cartelera-media:hover .afiche-remate,
.cartelera-media:hover img {
  transform: scale(1.02);
  filter: brightness(0.92) saturate(1.08);
}

/* Si es video */
.cartelera-media iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 22px;
  display: block;
}

/* Responsive */
@media (max-width: 767px) {
  .cartelera-info {
    padding: 1rem;
    border-radius: 16px;
  }

  .cartelera-info h1:first-child {
    font-size: 1.6rem;
  }

  .cartelera-info h3,
  .cartelera-info .display-3 {
    font-size: 1.5rem;
  }

  .cartelera-info h4 span,
  .cartelera-info p {
    font-size: 0.93rem;
  }

  .contador {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }

  .cartelera-media .afiche-remate,
  .cartelera-media img,
  .cartelera-media iframe {
    min-height: 260px;
    border-radius: 16px;
  }
}

.bloque-ficha-remate-full {
  width: 100%;
  background: #e9ecef;
  padding: 0rem 0;
}

.contenedor-ficha-remate {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 0.5rem;
}


.modal-foto {
  display: none;
  position: fixed;
  z-index: 1030;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-foto-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--border-radius-l);
  box-shadow: 0 0 20px #000;
}

.modal-foto-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-foto-close:hover {
  color: #f00;
}

.foto-lote {
  cursor: pointer;
  /*width: auto;
  height: 12rem;*/
  transition: all 0.3s ease;
}

.foto-lote:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
