/* ========================================================================== */
/* 00 - FUENTES                                                               */
/* ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Lato:wght@300;400;700;900&display=swap');

/* ========================================================================== */
/* 01 - SETTINGS: Variables, Design Tokens, Configuración Global              */
/* ========================================================================== */

:root {
  /* ----- PALETA: color institucional BEIGE/ARENA (#d6c6ad) -----------------
     El beige es la marca (rellenos: botones, bandas, chips, badges). Para textos,
     líneas e íconos sobre blanco se usa un TAN OSCURO (#6e5d40) de la mismaF
     familia, porque el beige solo no contrasta. Cambiá --brand / --brand-deep. */

  /* Neutros / fondos */
  --color-bg:      #ffffff;   /* fondo general: blanco             */
  --color-bg-2:    #ece1cb;   /* banda beige clara                  */
  --color-header:  #ffffff;   /* header blanco                     */
  --surface:       #ffffff;   /* superficie de cards               */
  --line:          #e6dcca;   /* bordes neutros cálidos            */
  --light-bg:      #f6f2ec;

  /* Tinta (textos) */
  --ink:           #2b2620;   /* casi negro (texto principal)      */
  --ink-soft:      #6f6759;   /* gris cálido (texto secundario)    */
  --light-text:    #ffffff;   /* texto sobre oscuro/naranja        */
  --dark-text:     #20201e;

  /* Marca / acentos (NARANJA institucional) */
  --brand:         #d6c6ad;   /* beige institucional (rellenos)    */
  --brand-deep:    #6e5d40;   /* tan oscuro: texto/links/líneas     */
  --brand-soft:    #e7dcc7;   /* beige claro                        */
  --gold:          #6e5d40;   /* tan oscuro (números/destacados)    */
  --forest:        #3f3a33;   /* neutro oscuro de apoyo            */

  /* Estados */
  --live:          #6e5d40;   /* tan oscuro (urgencia/remate)       */
  --success-color: #2f9e44;
  --celeste:       #6e5d40;   /* (alias legacy → tan oscuro)        */
  --secondary-bg:  #6c6862;

  /* Alias legacy (mantienen compatibilidad con el HTML existente) */
  --marron:        #d6c6ad;
  --marron-hover:  #6e5d40;

  /* Tokens "Remates realizados" */
  --c-text:        var(--ink);
  --c-muted:       var(--ink-soft);
  --c-base:        #6e5d40;
  --c-hover:       #2b2620;
  --c-card-bg:     var(--surface);
  --c-card-bd:     var(--line);
  --c-card-shadow: 0 12px 30px rgba(32, 32, 30, 0.08);

  /* Radios */
  --radius:          14px;
  --border-radius-l: 14px;

  /* Tipografía: sans limpia tipo sitio institucional */
  --font-display: 'Archivo', Helvetica, Arial, sans-serif;
  --font-body:    'Lato', Helvetica, Arial, sans-serif;
}

/* ========================================================================== */
/* 02 - TOOLS: Mixins, helpers, utilidades programáticas (VACÍO POR AHORA)    */
/* ========================================================================== */


/* ========================================================================== */
/* 03 - GENERIC: Reset, normalización, estilos muy globales                   */
/* ========================================================================== */

/* Reset básico y modelo de caja */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Estilo base del body */
body {
  font-family: var(--font-body);
  font-style: normal;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--color-bg);
  overflow-x: hidden; /* Evita scroll horizontal indeseado */
  -webkit-font-smoothing: antialiased;
}

/* Títulos con la fuente display heritage */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

section {
  margin: 1rem 0;
}

/* Imágenes fluidas */
img {
  max-width: 100%;
  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;
}

/* ========================================================================== */
/* 04 - ELEMENTS: Estilos directos sobre tags HTML (h1, p, footer, etc.)      */
/* ========================================================================== */

/* Footer genérico por etiqueta (distinto de .site-footer) */
footer {
  background: var(--ink);
  color: var(--light-text);

}

.remate-footer {
  padding-left: 15px;
  padding-bottom: 10px;
}

footer a {
  text-decoration: underline;
}

/* Nav principal (layout) */
.nav-container {
  /*max-width: 1200px;*/
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.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;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  /* Alinea los elementos a la derecha */
  width: 100%;
}

.nav-list a {
  font-weight: 600;
}

/* Responsive design para pantallas pequeñas */
@media (max-width: 992px) {
  .nav-container,
  .nav {
    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 */
  }
  
  .navbar-collapse .menu {
    flex-direction: column;
    /* Apila los elementos verticalmente en móvil */
    align-items: flex-start;
    margin-top: 1rem;
    gap: 4px;
    width: 100%;
  }

  .nav-item .btn {
    display: block;
    width: 100%;
  }
}

/* ========================================================================== */
/* 05 - OBJECTS: Layouts, contenedores genéricos, patrones reutilizables      */
/* ========================================================================== */

/* 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) */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Menú horizontal */
.menu {
  display: flex;
  gap: 24px;
}

.menu a {
  font-weight: 400;
}

/* Hero principal (home) full-bleed en background */
.home-hero {
  width: 100%;
  
  /* Cambié el color del texto a blanco para que se lea mejor sobre el fondo */
  color: #ffffff;

  /* --- FONDO DEL HERO ---
     Foto del campo (banner-campo.jpg) bajo un overlay oscuro semitransparente
     para el "efecto de transparencia" y que el texto blanco se lea bien.
     El primer degradado agrega una leve tinta naranja de marca. */
  background-image: 
    linear-gradient(120deg, rgba(214, 198, 173, 0.14), rgba(20, 18, 16, 0.10)),
    linear-gradient(to bottom, rgba(20, 18, 16, 0.55), rgba(20, 18, 16, 0.82)),
    url('https://d1tqputg3t6ul0.cloudfront.net/HAC005/libreria/images/banner-campo.jpg');

  /* --- AJUSTES DE IMAGEN --- */
  background-size: cover;      /* Hace que la imagen cubra todo el espacio sin deformarse */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat; /* Evita que se repita si la pantalla es muy grande */
}

/* 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.6fr 1fr;
  align-items: center;
  gap: 32px;
}

/* Logos Cooperativas */

/* Sección contenedora de los logos */
.home-logos {
  padding: 10px 0; 
  background-color: #ffffff; 
  border-bottom: 1px solid #eee;
}

/* La grilla que pone los logos en paralelo */
.logos-grid {
  display: flex;
  justify-content: space-around; /* Distribuye el espacio entre los logos */
  align-items: center; /* Los alinea verticalmente al centro */
  flex-wrap: wrap; /* Permite que bajen si la pantalla es muy chica */
  gap: 30px; /* Espacio entre logos */
}

/* Estilo de las imágenes de los logos */
.partner-logo {
  max-width: 180px; /* Ancho máximo para que no se vean gigantes */
  height: auto;     /* Mantiene la proporción */
  filter: grayscale(35%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

/* Efecto al pasar el mouse */
.partner-logo:hover {
  filter: grayscale(0%); /* Vuelven a color */
  opacity: 1; /* Se vuelven totalmente visibles */
  transform: scale(1.05); /* Crecen un poquito */
}

/* Responsive: En celulares, poner de a 2 o 1 */
@media (max-width: 768px) {
  .logos-grid {
    justify-content: center; /* Centrar en móviles */
  }
  .partner-logo {
    max-width: 140px; /* Un poco más chicos en celular */
  }
}

/* Hero secundario (catálogo / lote): mismo tratamiento que la home,
   foto de campo + overlay oscuro y naranja solo como acento. */
.catalog-hero {
  width: 100%;
  color: var(--light-text);
  background-image:
    linear-gradient(120deg, rgba(214, 198, 173, 0.14), rgba(20, 18, 16, 0.10)),
    linear-gradient(to bottom, rgba(20, 18, 16, 0.55), rgba(20, 18, 16, 0.82)),
    url('Images/banner-campo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contenido del hero 2 con ancho limitado */
.catalog-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
}

/* Grid de estadísticas (home “Nuestros números”) */
.home-stats {
  background-color: var(--color-bg-2);
  padding: 20px 20px;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  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.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-soft);
  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: var(--color-bg-2);
  color: var(--ink);
  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;
  }
}

/* ========================================================================== */
/* 06 - COMPONENTS: Bloques concretos (botones, hero, footer, cards, modals)  */
/* ========================================================================== */

/* ------------------------------ Botones ----------------------------------- */

/* --- Clase Base para todas las alertas --- */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    font-family: inherit; /* Para que use la misma letra que tu web */
}

/* --- Variación: Success (Verde) --- */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* --- Variación: Danger (Rojo) --- */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/*
 * 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: var(--brand-soft);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(110, 93, 64, 0.20);
}

/* 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;
}

/* 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;
}


.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;
}

/* Botón base */
.btn {
  display: inline-block;
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important;
  font-weight: 400;
  font-size: 1rem;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
  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 {
  background-color: var(--brand-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(140, 56, 23, 0.28);
}

/* Variantes de botón */
.btn-secondary {
  background: transparent;
  color: var(--brand-deep);
  border: 1.5px solid var(--brand-deep);
}
.btn-secondary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-navegacion {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--light-text);
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-catalogo {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.65);
  cursor: pointer;
  }

/* Botón Primary */
.btn-primary {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-success {
  color: #fff;
  background-color: #198754;
  border-color: #198754;
}

.btn-success:hover {
  color: #fff;
  background-color: #157347;
  border-color: #146c43;
}

.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  color: #fff;
  background-color: #bb2d3b;
  border-color: #b02a37;
}

.btn-warning {
  color: #000;
  background-color: #ffc107;
  border-color: #ffc107;
}

.btn-warning:hover {
  color: #000;
  background-color: #ffcd39;
  border-color: #ffc720;
}

.btn-info {
  color: #000;
  background-color: #0dcaf0;
  border-color: #0dcaf0;
}

.btn-info:hover {
  color: #000;
  background-color: #31d2f2;
  border-color: #25cff2;
}

.btn-light {
  color: #000;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

.btn-light:hover {
  color: #000;
  background-color: #e9ecef;
  border-color: #e9ecef;
}

.btn-dark {
  color: #fff;
  background-color: #212529;
  border-color: #212529;
}

.btn-dark:hover {
  color: #fff;
  background-color: #1c1f23;
  border-color: #1a1e21;
}

.btn-navegar {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--light-text);
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-catalogo {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.65);
  cursor: pointer;
  }

/* Botón de enlace animado (Remates realizados) */
.btn-link {
  position: relative;
  display: inline-block;
  font-weight: 400;
  color: var(--c-base);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  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-menu {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.3s ease;
}

.btn-menu::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--brand-deep);
  transition: width 0.3s ease;
}

.btn-menu:hover {
  color: var(--brand-deep);
}

.btn-menu:hover::after {
  width: 100%;
}

/* Botón “Ampliar” en tabla */
.btn-ampliar {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-ampliar:hover {
  background-color: var(--brand-deep);
  color: #fff;
}

/* 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: #e4e4e4;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.vista-btn:hover {
  background: #d3d3d3;
}

.vista-btn.active {
  background: var(--brand);
  color: var(--ink);
}

.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: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.home-hero-content p {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 400;
  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: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-deep);
  background: var(--surface);
  border: 2px solid var(--line);
  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(--brand-deep);
  transition: color 0.3s ease;
}

/* Ícono del timer */
.timer-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--brand-deep);
}

/* 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(--brand-deep);
  border-radius: 2px;
  animation: underlineGrow 0.3s ease forwards;
}

/* ------------------------------ Footer (component) ------------------------ */

.site-footer {
  background-color: var(--ink);
  color: var(--light-text);
  font-family: var(--font-body);
  padding-top: 24px;
}

/* 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: 14px;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-display);
  border-bottom: 2px solid var(--brand-soft);
  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.3s ease, color 0.3s ease;
}

.footer-contact a:hover {
  color: #fff;
  border-color: var(--brand-soft);
}

/* Columna de marca */
.footer-brand {
  text-align: right;
}

.footer-logo {
  width: 100px;
  margin-bottom: 10px;
}

/* Línea inferior */
.footer-bottom {
  background-color: #1d160f;
  text-align: center;
  padding: 10px 10px;
  font-size: 0.9rem;
  color: #f5eae4;
}

/* ------------------------------ Sección de estadísticas ------------------- */

.home-stats-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 50px;
  position: relative;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--gold);
  margin: 0 0 10px;
  line-height: 1;
  font-style: normal;
}

.stat-label {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-style: normal;
}

/* ------------------------------ 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;
}

.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: 0.9rem;
  color: var(--brand-deep);
  font-weight: 700;
  margin: 0;
}

.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-foto {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

/* Encabezados y listas de columnas de detalles */
.detalle-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-deep);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--line);
  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: 150px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s 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);
  font-weight: 400;
}

.subasta-electronica-card {
  background: var(--c-card-bg);
  border: 1px solid #a89b8a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--c-card-shadow);
  padding: 0;
}


/* 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);
  font-weight: 400;
}

.remate-text {
  margin: 0 0 12px;
  color: var(--c-muted);
  font-size: 0.95rem;
}

.remate-card .remate-footer {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0 16px 16px;
}

/* --- Icons Social --- */
/* Contenedor: Pone los iconos uno al lado del otro */
.social-icons {
  display: flex;
  gap: 15px;      /* Espacio entre iconos */
  margin-top: 15px;
}

/* Estilo de la imagen SVG */
.icon-img {
  width: 52px;    /* Ancho del icono */
  height: 52px;   /* Alto del icono */
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;   /* Un poco transparente al inicio */
}

/* Efecto al pasar el mouse */
.social-link:hover .icon-img {
  transform: translateY(-3px) scale(1.1); /* Se mueve arriba y crece */
  opacity: 1; /* Se vuelve totalmente visible */
}

/* ------------------------------ 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, .video-wrapper img {
  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: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 8px 20px rgba(60,40,22,0.05);
}

/* 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: var(--brand-deep);
  color: white;
  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;
}

/* ------------- Sección Curva -------------------------------------*/
.seccion-con-curva {
    background-color: #ffffff;
    background-image: url('Images/background-curvo.svg');
    /* 3. Posicionamiento: Pegado abajo */
    background-position: top center;
    background-repeat: no-repeat;
    
    /* 4. Tamaño: Que ocupe todo el ancho */
    background-size: 100% auto;

    /* 5. Espaciado Vital: */
    /* Necesitas padding abajo para que el texto no se monte sobre la curva */
    padding-bottom: 150px; 
}

/* ------------------ Sección con Curva Gris ----------------------------------*/
.seccion-con-curva-gris {
    /* 1. Tu color de fondo  */
    background-color: #ffffff;
    background-image: url('Images/background-gris.svg');

    /* 3. Posicionamiento: Pegado abajo */
    background-position: bottom center;
    background-repeat: no-repeat;       
       background-size: 101% auto;

    /* 5. Espaciado Vital: */
    /* Necesitas padding abajo para que el texto no se monte sobre la curva */
    padding-bottom: 150px; 
}

/* ------------------------------ 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, 1000px);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  animation: fadeIn 0.3s 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;
  }
}

/* ========================================================================== */
/* 07 - UTILITIES: Header, detalles heritage y clases utilitarias             */
/* ========================================================================== */

/* Header / barra superior */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.site-header .brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.nav-list a,
.menu a {
  color: var(--ink);
  position: relative;
  transition: color 0.25s ease;
}

.nav-list a:hover,
.menu a:hover {
  color: var(--brand-deep);
}

/* Eyebrow / antetítulo */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 10px;
}

/* Título de sección con detalle de regla cálida */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  margin: 0 0 8px;
}

.section-title em {
  font-style: normal;
  font-weight: 800;
  color: var(--brand-deep);
}

.section-rule {
  width: 64px;
  height: 3px;
  background: var(--brand-deep);
  border-radius: 3px;
  margin: 14px 0 28px;
}

.section-rule.center { margin-left: auto; margin-right: auto; }

/* Banda de cintillo (separadores cálidos) */
.ribbon {
  background: var(--ink);
  color: var(--light-text);
  text-align: center;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  padding: 9px 16px;
}

/* Tarjeta de remate realizado: encabezado con más carácter */
.remate-card h3,
.remate-title {
  font-family: var(--font-display);
}

/* Hero: refuerzo tipográfico */
.home-hero-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--light-text);   /* blanco: legible sobre el fondo oscuro */
}

.home-hero-content .hero-fecha {
  color: var(--light-text);
}

.home-hero-content .eyebrow {
  color: var(--brand-soft);
}

/* Chip de fecha del próximo remate dentro del hero */
.hero-fecha {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 249, 0.12);
  border: 1px solid rgba(255, 253, 249, 0.35);
  color: var(--light-text);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

/* Tarjeta CTA de registro dentro del hero */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 18px 40px rgba(30, 20, 12, 0.35);
  color: var(--ink);
}

.hero-card h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.hero-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* Footer brand: alinear y entonar */
.footer-brand .footer-logo { width: 120px; }

/* ----- Afiche del remate -------------------------------------------------- */
.afiche-frame {
  position: relative;
  display: block;
  background: var(--surface);
  border: 6px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 22px 48px rgba(20, 18, 16, 0.38);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline: 1px solid var(--line);
}

.afiche-frame:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 28px 60px rgba(20, 18, 16, 0.46);
}

.afiche-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Cinta "AFICHE OFICIAL" sobre la esquina */
.afiche-frame .afiche-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Pista de zoom */
.afiche-frame .afiche-zoom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(20, 18, 16, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(2px);
}

/* Banda de registro debajo del hero */
.cta-band {
  background: var(--color-bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}

.cta-band p { margin: 0; color: var(--ink-soft); max-width: 56ch; }
.cta-band strong { color: var(--ink); }

/* Modal del afiche (usa .modal del CSS base) */
#aficheModal .modal-content { background: transparent; box-shadow: none; padding: 0; }
#aficheModal img { border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* ----- Página de acceso / Ingresar --------------------------------------- */
.auth-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.auth-head { text-align: center; margin-bottom: 32px; }

.auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--c-card-shadow);
  padding: 34px 32px;
}

.auth-card.is-aside {
  background: var(--color-bg-2);
  border-top: 4px solid var(--brand-deep);
  display: flex;
  flex-direction: column;
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}

.auth-card .auth-sub {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.auth-card label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.btn-block { display: block; width: 100%; text-align: center; }

.auth-links {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-perks {
  list-style: none;
  margin: 6px 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.auth-perks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 0.96rem;
}

.auth-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-deep);
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3e%3c/svg%3e") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3e%3c/svg%3e") center/14px no-repeat;
}

.auth-card.is-aside .btn { margin-top: auto; }

.auth-note {
  max-width: 1000px;
  margin: 0 auto 56px;
  padding: 0 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Panel de usuario logueado: accesos al remate */
.remate-acceso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 14px;
}

.acceso-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.acceso-btn span { font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); }
.acceso-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.10); border-color: var(--brand-soft); }

.acceso-btn.is-live { background: var(--live); border-color: var(--live); color: #fff; }
.acceso-btn.is-live span { color: rgba(255,255,255,.85); }

.live-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  margin-right: 8px;
  animation: livePulse 1.4s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@media (max-width: 768px) {
  .auth-grid { grid-template-columns: 1fr; }
  .remate-acceso { grid-template-columns: 1fr; }
}

/* ----- Catálogo de lotes -------------------------------------------------- */
.catalog-hero-content h1,
.catalog-hero-content h3 { color: var(--light-text); }

.catalog-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-body);
}
.catalog-summary .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
}
.catalog-summary .sep { opacity: .5; }

/* Barra de herramientas: filtros + selector de vista */
.catalog-toolbar {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: var(--color-bg);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 8px;
}
.catalog-toolbar .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
}

/* Chips de categoría */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--brand-soft); color: var(--brand-deep); }
.chip.active { background: var(--brand); border-color: var(--brand-deep); color: var(--ink); }
.chip .count { opacity: .7; font-weight: 400; margin-left: 4px; }
.chip.active .count { opacity: .85; }

/* Navegación Anterior / Siguiente */
.catalog-nav { display: flex; gap: 8px; }

/* Placeholder de foto del lote (cuando no hay imagen real) */
.lote-media-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 50% -20%, #fff 0%, var(--color-bg-2) 70%);
}
.lote-media-ph svg { width: 64px; height: 64px; opacity: .35; }

/* Badge de categoría sobre la card */
.remate-badge.cat { left: 12px; right: auto; color: var(--brand-deep); background: rgba(255,255,255,.94); }

/* Línea de datos del lote (RP, peso, etc.) */
.lote-datos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.lote-datos b { color: var(--ink); font-weight: 700; }

/* Vistas conmutables */
.view[hidden] { display: none; }

/* Foto del lote: 4:3 sin recortar los datos sobreimpresos */
.foto-lote { aspect-ratio: 4 / 3; background: #000; }
.foto-lote img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }

/* Grilla de stats del animal */
.lote-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 12px;
}
.lote-stats div {
  background: var(--color-bg-2);
  border-radius: 8px;
  padding: 7px 6px;
  text-align: center;
  line-height: 1.15;
}
.lote-stats span { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.lote-stats b { font-size: 0.95rem; color: var(--ink); }

.lote-genealogia { font-size: 0.84rem; color: var(--ink-soft); margin: 0; }
.lote-genealogia b { color: var(--ink); font-weight: 700; }

/* Modal de foto del lote */
#fotoModal .modal-content { background: transparent; box-shadow: none; padding: 0; max-width: min(94vw, 900px); }
#fotoModal img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
#fotoModal .foto-cap { color: #fff; text-align: center; margin-top: 12px; font-weight: 700; font-family: var(--font-body); }

/* Ficha (card) simplificada del catálogo */
.ficha-lote { font-family: var(--font-body); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-deep); margin: 0 0 4px; }
.ficha-cat { color: var(--ink-soft); font-size: .92rem; margin: 2px 0 0; }
.ficha-valor { margin: 10px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.ficha-valor span { display: block; font-family: var(--font-body); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.remate-card .remate-footer .btn-ampliar { width: 100%; text-align: center; }

/* ----- Ventana ampliada del lote (info + video arriba, datos en 3 col abajo) ----- */
#loteModal .modal-content {
  max-width: min(95vw, 1000px);
  max-height: 94vh;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#loteModal .modal-close { color: var(--ink); z-index: 4; top: 6px; right: 12px; }

/* cuerpo scrolleable solo si hiciera falta; la barra inferior queda fija */
.lote-amp-body { flex: 1; overflow-y: auto; }

/* fila superior: info (izq) + video más grande (der) */
.lote-amp-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 26px;
  padding: 26px 28px 6px;
  align-items: start;
}
.lote-amp-info { min-width: 0;}
.lote-amp-info .ficha-lote { margin: 0 0 2px; }
.lote-amp-info h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1.12; margin: 0 0 4px; color: var(--ink); }
.lote-amp-cat { color: var(--ink-soft); margin: 0; }
.lote-amp-info .ld-valor { margin: 14px 0 0; }

.lote-amp-video { min-width: 0; }
.lote-amp-video .video-facade { position: relative; width: 100%; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }

/* datos en 3 columnas, ancho completo, debajo */
.lote-amp-datos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 26px;
  padding: 8px 28px 18px;
}
.lote-amp-datos h4 { font-family: var(--font-body); font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.lote-amp-datos ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.lote-amp-datos li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.lote-amp-datos li span { color: var(--ink-soft); }
.lote-amp-datos li b { color: var(--ink); }

/* barra inferior fija: navegación + cerrar */
.lote-amp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 28px;
  border-top: 1px solid var(--line);
  background: var(--color-bg);
}
.lote-amp-nav .pos { font-weight: 700; color: var(--ink-soft); }
.lote-amp-nav .nav-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 820px) {
  .lote-amp-grid { grid-template-columns: 1fr; gap: 16px; }
  .lote-amp-datos { grid-template-columns: 1fr; }
}

/* Fachada de video: miniatura + botón play (carga el reproductor al click) */
.video-box { width: 100%; }
.video-facade img,
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade img { object-fit: cover; }
.video-facade .play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; height: 48px; border: none; border-radius: 12px;
  background: rgba(110, 93, 64, 0.95);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.video-facade .play::after {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--brand-deep); }

/* Tabla responsive */
.tabla-wrap { overflow-x: auto; }
.tabla-lotes { width: 100%; }
.tabla-lotes td.txt-left, .tabla-lotes th.txt-left { text-align: left; }

@media (max-width: 768px) {
  .catalog-toolbar { top: 64px; }
  .catalog-toolbar .section-inner { justify-content: flex-start; }
}


/* ========================================================================== */
/* 08 - MEDIA QUERIES GLOBALS                                                */
/* ========================================================================== */

/* Responsivo footer-brand */
@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 {
    order: 2;
    min-width: 100%;
  }

  .lote-detalle-video {
    order: 1;
    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;
  }
}
