@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Paleta general */
  --light-text: #f8f9fa;
  --dark-text: #212529;

  /* Tokens específicos “Remates realizados” */
  --c-text: #1a1a1a;
  --c-muted: #6b6b6b;
  --c-base: #a27156;           /* texto / acentos base */
  --c-hover: #8a5537;          /* estado hover / línea */
  --c-card-bg: #ffffff;
  --c-card-bd: #ece3dc;
  --c-card-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

[v-cloak] {
  display: none;
}

/* Reset básico y modelo de caja */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Estilo base del body */
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  line-height: 1.4;
  color: #111;
  overflow-x: hidden; /* Evita scroll horizontal indeseado */
}

/* Imágenes fluidas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
imgportada {
  max-width: 60%;
  height: auto;
  display: block;
}

/* Listas sin estilos por defecto */
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Enlaces sin subrayado por defecto, heredan color */
a {
  color: inherit;
  text-decoration: none;
}
h1.titulo-especial{
  color: #a27156;
}

section {
  margin: 1rem 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead tr {
  border-bottom: 1px solid black;
}

.table tbody tr {
  border-bottom: 1px solid #ccc;
}

.table td {
  padding: 0.25rem 0.5rem;
  word-wrap: break-word;
}


/* Footer genérico por etiqueta (distinto de .site-footer) */
footer {
  background: #0b1020;
  color: #cfd6ff;
}

footer a {
  text-decoration: underline;
}


/* Contenedor común para secciones que NO necesitan full-bleed */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Variación de section-inner dentro del bloque de remates de la home */
.home-remates-realizados .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Nav principal (layout) */

.navbar {
  background-color: var(--dark-bg);
  padding: 1rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.nav-container {
  max-width: 1140px;
  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;
  /* Oculto por defecto en escritorio */
  background: none;
  border: 1px solid var(--light-text);
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  transition: all 0.25s 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%28118, 43, 17, 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;
  /* Alinea los elementos a la derecha */
  width: 100%;
}

/*.nav-item {
  margin: 0 0.5rem;
}*/

/* Responsive design para pantallas pequeñas */
@media (max-width: 992px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .navbar-toggler {
    display: block;
    /* Muestra el botón de hamburguesa */
  }

  .navbar-collapse {
    width: 100%;
    max-height: 0;
    /* Oculta el menú por defecto */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
  }

  .navbar-collapse.show {
    max-height: 500px;
    /* Expande el menú al mostrar */
  }

  .nav-list {
    flex-direction: column;
    /* Apila los elementos verticalmente */
    align-items: stretch;
    margin-top: 1rem;
  }

  /*.nav-item {
    margin: 0.5rem 0;
  }*/

  .nav-item .btn {
    display: block;
    /* Hace que los botones llenen el ancho */
    width: 100%;
  }
}


/* Menú horizontal */
.menu {
  display: flex;
  gap: 24px;
}

.menu a {
  font-weight: 600;
}

/* Hero principal (home) full-bleed en background */
.home-hero {
  width: 100%;
  background: #f9f6f3;
  color: #1f2937;
  border-top: 1px solid #eae2dc;
  border-bottom: 1px solid #eae2dc;
}

/* Contenido del hero (home) con ancho limitado */
.home-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 32px;
}

/* Hero secundario (catálogo / lote) */
.catalog-hero {
  width: 100%;
  background: #1f2937;
  color: #f9f6f3;
}

/* Contenido del hero 2 con ancho limitado */
.catalog-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 32px;
}

/* Grid de estadísticas (home “Nuestros números”) */
.home-stats {
  background-color: #f9f7f5;
  padding: 30px 20px;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid de remates (últimos / catálogo) */
.remates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Grid de pasos */
.pasos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Layout de carrusel */
.carrusel-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

/* "Ventana" del carrusel */
.carrusel-viewport {
  overflow: hidden;
  width: 100%;
  flex-grow: 1;
}

/* Fila del carrusel que se desplaza */
.carrusel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease-out;
}

/* Cards/recuadros genéricos de estadísticas */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e0d5cc;
  border-radius: 14px;
  padding: 30px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-base);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Layout 3 columnas de detalles del lote ampliado */
.lote-detalle-detalles {
  width: 100%;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 20px;
}

/* Cada columna de detalles */
.detalle-col {
  flex: 1;
  min-width: 200px;
  padding: 0 15px;
}

/* Galería thumbnails de lote (fila flexible) */
.lote-detalle-galeria-thumbnails {
  width: 100%;
  flex-basis: 100%;
  padding: 20px;
  background: #e6e6e6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Barra de navegación entre lotes */
.lote-nav-bar {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 0;
  margin-top: 20px;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

.lote-nav-col {
  flex: 1;
}

.lote-nav-col.nav-col-prev {
  text-align: left;
}

.lote-nav-col.nav-col-center {
  text-align: center;
}

.lote-nav-col.nav-col-next {
  text-align: right;
}

/* Tabla de lotes */
.tabla-lotes {
  width: fit-content;
  max-width: 95%;
  margin: 0 auto;
  border-collapse: collapse;
  border: none;
}

.tabla-lotes th,
.tabla-lotes td {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  border: none;
}

.tabla-lotes thead th {
  background: #e4e4e4;
  font-weight: bold;
}

.tabla-lotes tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.tabla-lotes tbody tr:nth-child(even) {
  background-color: #f3f3f3;
}

.tabla-lotes tbody tr:hover {
  background-color: #e0e0e0;
}

/* Selector de vista */
.vista-selector {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.container {
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  margin-right: auto;
  margin-left: auto;
}

@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;
  }
}


/*
 * Contenedor de cada elemento (simula Bootstrap .form-group)
 * Pure.css usaría .pure-control-group
 */
.form-group {
    margin-bottom: 1rem; /* Espacio entre campos */
}

/*
 * Estilo para la mayoría de los campos de entrada (simula Bootstrap .form-control)
 * Aplica a inputs de texto, email, number, password, textarea y select
 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    display: block; /* Ocupa el 100% del ancho */
    width: 100%;
    padding: 0.375rem 0.75rem; /* Padding interno */
    font-size: 1rem;
    line-height: 1.5;
    color: #495057; /* Texto oscuro */
    background-color: #fff; /* Fondo blanco */
    background-clip: padding-box;
    border: 1px solid #ced4da; /* Borde gris claro */
    border-radius: 0.25rem; /* Bordes ligeramente redondeados */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box; /* Importante para que el padding no afecte el ancho total */
}

/*
 * Estilo de enfoque (Focus state)
 * Se activa al hacer clic o tabular sobre el campo
 */
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; /* Borde azul suave */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Sombra azul suave */
}

/* Estilo para áreas de texto */
textarea {
    min-height: 80px; /* Altura mínima para el textarea */
}

/* Estilo para el label (opcional) */
label {
    display: inline-block;
    margin-bottom: 0.5rem; /* Espacio debajo del label */
    font-weight: 500; /* Ligeramente más negrita */
}

/* Checkboxes y Radios */
input[type="checkbox"],
input[type="radio"] {
    /* Resetea los estilos de ancho/display que aplicamos arriba */
    display: inline-block;
    width: auto;
    margin-right: 0.5rem;
}

/* ------------------------------ Botones ----------------------------------- */

/* Botón base */
.btn {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: #f0f0f0;
  color: #1f2937;
  transition: all 0.25s ease;
}
.btn-danger {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: #fc0214;
  color: #ffffff;
  transition: all 0.25s ease;
}

/* Tamaño pequeño */
.btn.btn-sm {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 10px;
}

/* Contenedor para centrar botones */
.btn-container {
  display: flex;
  justify-content: center;
}

/* Elimina estilos nativos de los botones */
.btn,
.btn:focus,
.btn:active {
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Hover genérico */
.btn:hover {
  opacity: 0.9;
  background-color: #1f2937;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Variantes de botón */
.btn-secondary {
  background: #004aad;
  color: #fff;
  border: 1px solid #004aad;
}

.btn-marron {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--c-base);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-marron.active {
  background: var(--c-hover);
}

.btn-negro {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-verde {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #62af0a;
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Botón de enlace animado (Remates realizados) */
.btn-link {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: var(--c-base);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.btn-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 2px;
  width: 0%;
  background: var(--c-hover);
  transition: width 0.25s ease;
  border-radius: 2px;
}



.btn-link:hover {
  color: var(--c-hover);
}

.btn-link:hover::after {
  width: 100%;
}

/* Botón custom con subrayado animado */
.btn-custom {
  position: relative;
  display: inline-block;
  color: var(--c-base);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.25s ease;
}

.btn-custom::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 2px;
  width: 0%;
  background: var(--c-hover);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.btn-custom:hover {
  color: var(--c-hover);
}

.btn-custom:hover::after {
  width: 100%;
}

/* Botón “Ampliar” en tabla */
.btn-ampliar {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--c-base);
  color: #fff;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-ampliar:hover {
  background-color: #1259a3;
}

/* Botones de navegación del carrusel (prev / next) */
.prev,
.next {
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 40px;
  height: 40px;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Botones selector de vista */
.vista-btn {
  background: #feffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.25s;
}

.vista-btn:hover {
  background: #d3d3d3;
}

.vista-btn:disabled {
  cursor: default;
  background: #e4e4e4;
}

.vista-icon {
  width: 18px;
  height: 18px;
}

/* ------------------------------ Hero / Encabezados ------------------------ */

.home-hero-content h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  font-weight: 700;
}

.home-hero-content p {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  opacity: 0.95;
}

.catalog-hero-content h1,
.catalog-hero-content h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.15;
  font-weight: 700;
}

.catalog-hero-content p {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
  opacity: 0.95;
}

/* Contenedor de botones en hero (home) */
.home-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 24px;
}

/* Imagen del hero (home) */
.home-hero-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Contador dentro del hero */
.countdown h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

/* ------------------------------ Timer / Contador -------------------------- */

.timer {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--c-base);
  background: #f9f7f5;
  border: 2px solid #e0d5cc;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.timer span {
  font-weight: 600;
}

.timer span span {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  color: var(--c-base);
  transition: color 0.25s ease;
}

/* Ícono del timer */
.timer-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: #a25682;
}

/* Hover con línea inferior animada */
.timer:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  width: calc(100% - 20px);
  height: 2px;
  background-color: var(--c-hover);
  border-radius: 2px;
  animation: underlineGrow 0.25s ease forwards;
}

/* ------------------------------ Footer (component) ------------------------ */

.site-footer {
  background-color: #1f2937;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  padding-top: 40px;
}

/* Contenedor interno del footer */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

/* Columnas de footer */
.footer-col h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  border-bottom: 2px solid var(--c-hover);
  display: inline-block;
  padding-bottom: 4px;
}

.footer-col p {
  margin: 0 0 12px;
  color: #f9f7f5;
  font-size: 1rem;
  line-height: 1.5;
}

/* Datos de contacto */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #fff;
}

.footer-contact li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.footer-contact a:hover {
  color: #f9f7f5;
  border-color: var(--c-hover);
}

/* Columna de marca */
.footer-brand {
  text-align: right;
}

.footer-logo {
  width: 180px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}

/* Línea inferior */
.footer-bottom {
  background-color: var(--c-hover);
  text-align: center;
  padding: 16px 10px;
  font-size: 0.9rem;
  color: #f5eae4;
}

/* ------------------------------ Sección de estadísticas ------------------- */

.home-stats-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--c-base);
  margin-bottom: 50px;
  position: relative;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 10px;
  line-height: 2;
}

.stat-label {
  font-size: 1rem;
  color: #333;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ------------------------------ Lotes cargados / carrusel ----------------- */

.lotes-cargados {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

/* Cada “lote” en el carrusel */
.lote {
  min-width: 200px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  text-align: center;
  padding: 10px;
}

/* Imagen del lote */
.lote-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #c1bdb9;
}

/* Fecha y hora del lote */
.fecha-hora {
  margin-top: 8px;
  font-size: 0.9em;
  color: #555;
}

/* ------------------------------ Ficha lote ampliado ---------------------- */

/* Contenedor principal de la ficha */
.lote-detalle {
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

/* Columna izquierda: info */
.lote-detalle-info {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Columna derecha: video */
.lote-detalle-video {
  flex: 2;
  min-width: 320px;
  align-self: stretch;
}

/* Wrapper del video */
.lote-detalle-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.lote-detalle-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Info interna de la ficha */
.lote-detalle-info .lote-logo-empresa {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.lote-detalle-info .lote-corral {
  font-size: 1.3rem;
  color: #555;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.lote-detalle-info .remate-title {
  font-size: 1.7rem;
  color: #333;
  margin: 5px 0 10px 0;
}

.lote-detalle-info .lote-ubicacion {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.lote-detalle-info .lote-evaluador {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
}

.lote-detalle-info .lote-evaluador img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.lote-detalle-info .evaluador-nombre {
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
  margin: 0;
}

/* Encabezados y listas de columnas de detalles */
.detalle-col h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1f2937;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 2px solid #1f2937;
  padding-bottom: 5px;
}

.detalle-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: #333;
}

.detalle-col li {
  margin-bottom: 5px;
}

/* Miniaturas de la galería */
.lote-thumbnail {
  width: 17rem;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lote-thumbnail:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Imagen dentro del modal de galería */
#galeriaModalImage {
  width: 100%;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ------------------------------ Remates realizados / cards --------------- */

/* Título solo en la home */
.home-remates-realizados h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 3.2vw, 32px);
  color: var(--c-text);
}

/* Card de remate */
.remate-card {
  display: flex;
  flex-direction: column;
  background: var(--c-card-bg);
  border: 1px solid var(--c-card-bd);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--c-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  will-change: transform;
  padding: 0;
}

.remate-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.remate-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-hover);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* Media de remate */
.remate-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.remate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.remate-card:hover .remate-media img {
  transform: scale(1.04);
}

/* Badge de fecha */
.remate-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-base);
  border: 1px solid var(--c-card-bd);
  backdrop-filter: blur(2px);
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
}

/* Badge de precio (modificador) */
.remate-badge.remate-badge-precio {
  background-color: #ffffff;
  color: #1f1e1e;
  left: auto;
  right: 10px;
  font-weight: normal;
}

/* Body del remate */
.remate-body {
  padding: 16px 16px 0;
}

.remate-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--c-text);
}

.remate-text {
  margin: 0 0 12px;
  color: var(--c-muted);
  font-size: 0.95rem;
}

/* Footer del remate con CTA */
.remate-footer {
  padding: 0 1rem 1rem;
  margin-top: auto;
  display: flex;
  align-items: center;
}

.remate-footer span:not(:last-child)::after {
  content: " | ";
  white-space: nowrap;
  padding: 0 0.5rem;
}

/* ------------------------------ Video wrapper genérico -------------------- */

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ------------------------------ Pasos / Como comprar ---------------------- */

.ultimos-remates h2,
.como-comprar h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3.2vw, 32px);
}

.paso {
  background: #a27156;
  border: 1px solid #e6efff;
  border-radius: 12px;
  padding: 16px;
}

/* Número dentro de círculo para pasos */
.paso-numero {
  width: 32px;
  height: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  background-color: #79513b;
  color: #000;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
}

/* ------------------------------ Imagen Card Catálogo ---------------------- */

.image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* ------------------------------ Modals (unificados) ----------------------- */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  z-index: 9999;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: min(90vw, 1028px);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  animation: fadeIn 0.25s ease;
}

.modal-content img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: none;
  color: #000;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

/* Animación de aparición del modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animación de la línea inferior del timer */
@keyframes underlineGrow {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: calc(100% - 20px);
    opacity: 1;
  }
}


.swiper-container {
  overflow: hidden;
}

.container, .swiper-container {
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container, .swiper-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container, .swiper-container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container, .swiper-container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container, .swiper-container {
    max-width: 1140px;
  }
}


/* 1. Contenedor Principal */
#swiper-lotes {
  position: relative; 
  /*padding: 0 40px;*/ /* Crea espacio para los botones */
}

/* 2. Botones de Navegación */
/* Necesitas darles una apariencia ya que son divs vacíos en tu HTML */
.lotes-button-prev,
.lotes-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
    
  /* Estilos básicos para que sean visibles y clicables */
  width: 30px; 
  height: 30px; 
  background-color: rgba(136, 70, 44, 0.75); 
  color: white; 
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lotes-button-prev {
  left: 0;
}

.lotes-button-next {
  right: 0;
}

/* Opcional: Agregar icono de flecha, si no estás usando los iconos por defecto de Swiper */
.lotes-button-prev::after {
  content: '❮'; /* Ejemplo de flecha */
}

.lotes-button-next::after {
  content: '❯'; /* Ejemplo de flecha */
}

/* 3. Paginador */
.lotes-pagination {
  text-align: center;
  margin-top: 0.5rem;
}

/* Asegura que los puntos del paginador también se centren */
.swiper-pagination-bullet {
  display: inline-block;
  margin: 0 4px;
}

.swiper-pagination-bullet-active {
  background-color: rgb(136, 70, 44)
}


/* Estilos para el Overlay (Fondo oscuro) */
.modal-overlay {
  /* Posicionamiento y tamaño para cubrir toda la ventana */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Fondo semi-transparente y que esté por encima de todo */
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;

  /* Centrado del contenido del modal */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilos para el Contenedor del Modal */
.modal-container {
  background: white;
  border-radius: 0.5rem;
  width: 98%;
  max-width: 74rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  /* Puedes añadir padding o estilos para el contenido si lo deseas */
  overflow: hidden;
  /* Asegura que todo quede dentro de los bordes */
}

/* Estilos para las secciones internas */
.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: 700;
}

/* Botón de cierre */
.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;
}


.foto-modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.foto-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--border-radius-l);
  box-shadow: 0 0 20px #000;
}

.foto-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--light-text);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.foto-modal-close:hover {
  color: #f00;
}



/* COMPONENTS: Ficha de Caballo  */

.caballos-contenedor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: wrap;
}

/* LADO IZQUIERDO: VIDEO + FOTOS */
.caballos-recuadro-imagenes {
  width: 100%;
  background-color: var(--dark-text); /* fondo negro */
  padding: 15px;
  border-radius: var(--radius);
}

.caballos-recuadro-imagenes iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
}

.caballos-logo {
  height: 80px;
  width: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem auto;
}

/* Fotos secundarias */
.caballos-fotos-secundarias {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  height: 8rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.caballos-fotos-secundarias img {
  height: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease;
  background-color: var(--dark-text);
  padding: 5px;
  border: 1px solid var(--c-card-bd);
}

.caballos-fotos-secundarias img:hover {
  transform: scale(1.05);
}

/* LADO DERECHO: INFO CABALLO */
.caballos-recuadro-datos {
  flex: 1; /* menos ancho */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Título del caballo */
.caballos-titulo-sm,
.caballos-titulo-lg {
  background-color: var(--dark-text);
  color: var(--c-base);
  padding: 12px 18px;
  border-radius: var(--radius);
}

.caballos-titulo-sm {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.caballos-titulo-lg {
  display: none;
}

.caballos-titulo-lote {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--c-base);
  display: flex;
  align-items: center;
  gap: 6px;
}

.caballos-titulo-nombre {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-text);
  background: linear-gradient(to right, var(--c-hover), var(--c-base));
  background-size: cover;
  padding: 5px 10px;
  border-radius: 8px;
}

.caballos-titulo-registro {
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-muted);
}

/* Descripción y datos técnicos */
.caballos-descripcion {
  font-size: 1rem;
  color: var(--dark-text);
}

.caballos-datos-tecnicos {
  list-style: none;
  line-height: 1.6;
}

.caballos-tags {
  font-size: 0.9rem;
  color: var(--c-muted);
}

.caballos-redes {
  display: flex;
}

.caballos-redes a svg {
  width: 28px;
  margin-right: 10px;
  fill: var(--c-base);
}

.caballos-redes a:hover svg {
    fill: var(--c-hover);
}

/* SECCIÓN PADRE/MADRE */
.caballos-padre-madre {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--dark-text);
  color: var(--light-text);
  padding: 20px;
  margin: 20px 0;
  border-radius: var(--radius);
  gap: 20px;
  font-weight: 300;
}

/* Columna padre y madre */
.caballos-padre,
.caballos-madre {
  flex: 1;
  text-align: left;
}

.imagen-padre {
  width: 100%;
  max-width: 150px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.caballos-padre-madre h2 {
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 10px;
  color: var(--c-base);
}

/* ========================================================================== */
/* 07 - UTILITIES: Clases utilitarias                                         */
/* ========================================================================== */
/* (vacío por ahora) */


/* ========================================================================== */
/* 08 - MEDIA QUERIES GLOBALS                                                */
/* ========================================================================== */

/* Responsivo footer-brand */
@media (min-width: 992px) {
  .caballos-contenedor {
    flex-direction: row;
  }
  .caballos-recuadro-imagenes {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 2; /* más ancho que el derecho */
  }
  .caballos-titulo-sm {
    display: none;
  }
  .caballos-titulo-lg {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .caballos-padre-madre {
    flex-direction: row;
  }
}
@media (max-width: 768px) {
  .footer-brand {
    text-align: left;
  }
}

/* Responsivo grid de estadísticas */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsivo hero y grids */
@media (max-width: 900px) {
  .home-hero-inner,
  .catalog-hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .remates-grid,
  .pasos {
    grid-template-columns: 1fr;
  }
}

/* Responsivo layout de lote ampliado */
@media (max-width: 768px) {
  .lote-detalle {
    flex-direction: column;
  }

  .lote-detalle-info {
    min-width: 100%;
  }

  .lote-detalle-video {
    min-width: 100%;
  }

  .lote-detalle-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    min-height: 0;
  }
}

/* Responsivo remates grid específico */
@media (max-width: 900px) {
  .remates-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .remates-grid {
    grid-template-columns: 1fr;
  }
}
