@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ========================================================================== */
/* 01 - SETTINGS: Variables, Design Tokens, Configuración Global              */
/* ========================================================================== */

:root {
  /* Paleta general */
  --secondary-bg: #6c757d;
  --light-text: #f8f9fa;
  --dark-text: #212529;
  --success-color: #28a745;
  --light-bg: #e6e6e6;
  --color-bg: #f4eee5;
  --color-header: #f7efe5;
  --marron: #fd0303;
  --marron-hover: #fd4407;
  --celeste: #026cc0;

  /* Tokens específicos “Remates realizados” */
  --c-text: #1a1a1a;
  --c-muted: #6b6b6b;
  --c-base: #fc1504;           /* texto / acentos base */
  --c-hover: #e41111;          /* 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;
}

/* ========================================================================== */
/* 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: 'Lato', Helvetica, Arial, Lucida, sans-serif;
  font-style: normal;
  line-height: 1.4;
  color: #5c5c5c;
  overflow-x: hidden; /* Evita scroll horizontal indeseado */
}

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: #545454;
  color: #cfd6ff;

}

.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;

  /* --- LA MAGIA --- */
  /* El orden importa: primero va el color (la capa de arriba) y luego la imagen */
  background-image: 
    linear-gradient(
      rgba(6, 96, 81, 0.8), /* Color #85150e al 50% de opacidad */
      rgba(6, 96, 81, 0.7)  /* Se repite para que sea un color plano */
    ),
    url('Images/portada.jpg'); /* <--- REEMPLAZA CON TU RUTA REAL */

  /* --- 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(100%); /* Opcional: los pone en blanco y negro (bórralo si quieres color) */
  opacity: 0.7; /* Opcional: un poco transparentes */
  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) */
.catalog-hero {
  width: 100%;
  background: #066051;
  color: #f9f6f3;
}

/* Contenido del hero 2 con ancho limitado */
.catalog-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 5px;
  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: #066051;
  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: #a27156;
  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%; - Removido para evitar colapsos en modo columna */
  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%; - Removido */
  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;
  }
}

/* ========================================================================== */
/* 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: #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;
}

/* 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: #fff;
  color: #066051;
  transition: all 0.3s 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-navegacion {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 8px;
  background: #09376b;
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-catalogo {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 8px;
  background: #09376b;
  color: #fff;
  font-weight: 700;
  border: 2px solid #ffffff;   
  cursor: pointer; 
  font-weight:400;
}

/* 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: #1f2937;
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-catalogo {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #e31e24;
  color: #fff;
  font-weight: 700;
  border: 2px solid #ffffff;   
  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: 0 0 4px 0;
  transition: color 0.25s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.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: #066051;
  font-weight: 300;
  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: #d49502;
  transition: width 0.3s ease;
}

.btn-menu:hover {
  color: #d49502;
}

.btn-menu:hover::after {
  width: 100%;
}

/* Botón “Ampliar” en tabla */
.btn-ampliar {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: #099079;
  color: #fff;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-ampliar:hover {
  background-color: #066051;
}

/* 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: #feffff;
  color: white;
}

.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: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #d49502;
  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: #d49502;
  transition: color 0.3s ease;
}

/* Ícono del timer */
.timer-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: #d49502;
}

/* Hover con línea inferior animada */
.timer:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  width: calc(100% - 20px);
  height: 2px;
  background-color: #8a5537;
  border-radius: 2px;
  animation: underlineGrow 0.3s ease forwards;
}

/* ------------------------------ Footer (component) ------------------------ */

.site-footer {
  background-color: #333333;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  padding-top: 10px;
}

/* 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 #8a5537;
  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: #f9f7f5;
  border-color: #8a5537;
}

/* Columna de marca */
.footer-brand {
  text-align: right;
}

.footer-logo {
  width: 180px;
  margin-bottom: 10px;
}

/* Línea inferior */
.footer-bottom {
  background-color: #333333;
  text-align: center;
  padding: 10px 10px;
  font-size: 0.9rem;
  color: #f5eae4;
}

/* ------------------------------ Sección de estadísticas ------------------- */

.home-stats-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 50px;
  position: relative;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 10px;
  line-height: 1;
  font-style: normal;
}

.stat-label {
  font-size: 1rem;
  color: #333;
  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: 0;
  padding-top: 56.25%; /* Relación de aspecto 16:9 (proporción estándar de video) */
}

.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: #85150d;
  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: 120px;
  height: 100px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.lote-detalle-info .evaluador-nombre {
  font-size: 0.9rem;
  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: 5;
}

/* 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;
}

/* 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.35rem;
  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 {
  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: #f7f9ff;
  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: #333333;
  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: Clases utilitarias                                         */
/* ========================================================================== */
/* (vacío por ahora) */


/* ========================================================================== */
/* 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; /* Apila las secciones verticalmente */
    overflow: visible;      /* Asegura que el contenido que crezca no se oculte */
  }

  .lote-detalle-info,
  .lote-detalle-video,
  .lote-detalle-detalles,
  .lote-detalle-galeria-thumbnails {
    width: 100%;
    min-width: 100%;
    flex-basis: auto; /* Permite que la altura se ajuste automáticamente al contenido */
  }

  .lote-detalle-video {
    margin-bottom: 20px; /* Crea el espacio necesario para que no se superponga con la tipificación */
  }

  .lote-detalle-video-wrapper {
    min-height: 0; /* Resetea cualquier valor de escritorio */
  }
}

/* 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;
  }
}

