@import url('reset.css');
/*
 =====================================================
Versión mejorada del archivo de estilos CSS para el sitio web de remates en línea.
=====================================================
*/
/*=====================================================
  Fuentes y Tipografía
=====================================================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');


body {
    font-family: 'Inter', sans-serif;
}

/*=====================================================
 Variables de color 
=====================================================*/
:root {
    --primary-orange: #ff8c00;
    --dark-bg: #1e1e1e;
    --light-gray: #f8f9fa;
    --text-muted: #6c757d;

}

body {
    font-family: 'Segoe UI', 'Roboto', 'Inter', "Helvetica Neue", Arial, sans-serif;
    background-color: #fff;
}

/* ======================================================================= 
  Utilidades de texto 
=====================================================================*/
.text-orange {
    color: var(--primary-orange) !important;
}

/* =====================================================================
   Navbar & Header 
   =====================================================================*/

.bg-dark-custom {
    background-color: var(--dark-bg);

}

.navbar-brand {
    line-height: 1.1;
    font-size: 1.2rem;

}

.navbar {
    font-family: 'Inter';
    font-style: regular;
    font-weight: 400;
    font-size: 16px;
    /* leading-trim: none; */
    line-height: 24px;
    letter-spacing: 0px;
    text-align: right;
    border-bottom: #6c757d 1.5px solid;


}

/*======================================================================
  Hero Section 
  =====================================================================*/
/* 📱 BASE STYLES (Mobile / Extra Small) */
.hero-section {
  position: relative;
  padding: 64px 0 0 0; /* No bottom padding so image touches edge */
  display: block;
  background: var(--dark-bg);
  overflow: hidden;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
}

.hero-content .d-flex {
  justify-content: flex-start;
}

/* Image flows naturally below text on mobile */
.hero-image-container {
  position: relative;
  width: 100%;
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: auto;
  z-index: 1;
}

.hero-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
}

/* 💻 TABLET / MEDIUM (min-width: 768px) */
@media (min-width: 768px) {
  .hero-img {
    max-width: 500px;
  }
}

/* 🖥️ DESKTOP / LARGE (min-width: 992px) */
@media (min-width: 992px) {
  .hero-section {
    display: flex;
    align-items: center;
    padding: 96px 0; /* Restore vertical centering padding */
    /* padding: 64px 0; /* Para texto adicional */
    min-height: auto; /* Or set a specific height if needed */
  }

  .hero-image-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    justify-content: flex-end;
    pointer-events: none;
  }

  .hero-img {
    max-width: 600px;
  }
}

/* 🖥️ EXTRA LARGE (min-width: 1200px) */
@media (min-width: 1200px) {
  .hero-image-container {
    width: 60%;
  }

  .hero-img {
    max-width: 750px;
  }

  
}

.rematador-publico {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 100%;
    letter-spacing: -2%;
    text-transform: uppercase;

}

.remates-judiciales {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 3.5rem;
    line-height: 4rem;
    letter-spacing: -3%;


}

.hero-texto {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75rem !important;
    letter-spacing: -2%;


}

/*====================================================================== 
  Botones 
 ========================================================================*/
.btn-orange {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 18px;
    /* leading-trim: none; */
    line-height: 28px;
    letter-spacing: -2%;
    transition: all 0.3s;
}

.btn-orange:hover {
    background-color: #e07b00;
    color: white;
}

.btn-contacto {

    color: white;
    border: 2px solid #e07b00;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 18px;
    /* leading-trim: none; */
    line-height: 28px;
    letter-spacing: -2%;
    transition: all 0.3s;
}

/*====================================================================== 
  TIUTULOS DE SECCIÓN 
 ========================================================================*/

.section-title {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    /* leading-trim: none; */
    line-height: 110%;
    letter-spacing: -3%;
    color: #333;
    border-left: 5px solid var(--primary-orange);
    padding-left: 15px;
    margin-bottom: 0;
}

/*======================================================================
  FILTROS
  =====================================================================*/

.filtros .form-select {
    font-family: 'Inter';
    font-style: semibold;
    font-weight: 600;
    font-size: 32px;
    /* leading-trim: none; */
    line-height: 110%;
    letter-spacing: -3%;
    /*
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.3s;*/
}

/*======================================================================
  CARDS DE REMATES
  =====================================================================*/
/* Aplica a todas las tarjetas */
.card {
    border-radius: 1rem;
    overflow: hidden; /* Evita que el contenido interno tape las esquinas */
    
}

/* Si usas encabezados o imágenes, asegúrate que hereden el radio */
.card-header:first-child {
    border-radius: 1rem 1rem 0 0 !important;
}
.card-remate {
    transition: transform 0.2s;
    overflow: hidden;
}

.card-remate:hover {
    transform: translateY(-5px);
}

.icons-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/*====================================================================== 
  BADGE DE FECHA Y ESTADO
 ========================================================================*/
/* Badge de Fecha (Cuadrado blanco) */
.date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 60px;
    z-index: 5;
    line-height: 1.2;
}

/* Badge de Fecha con nuevo orden: Día, Número, Mes, Hora */
.date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: white;
    text-align: center;
    padding: 10px 14px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    min-width: 90px;
    z-index: 5;
    line-height: 1;
    /* Ajuste para que no haya espacios muertos entre líneas */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 1. Nombre del Día (Arriba del número) */
.date-badge .day-name {
    display: block;
    font-family: 'Inter';
    font-weight: 500;
    font-style: medium;
    font-size: 20px;
    /* leading-trim: none; */
    line-height: 20px;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-align: center;
    /* display: block;
    font-size: 0.65rem; /* Tamaño intermedio */
    /*font-weight: 700;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 2px;*/
}

/* 2. Número del día (El más grande) */
.date-badge .day-number {
    display: block;
    font-family: 'Inter';
    font-weight: 700;
    font-style: medium;
    font-size: 40px;
    /* leading-trim: none; */
    line-height: 40px;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-align: center;
    /*vertical-align: middle;*/
}

/* 3. Mes */
.date-badge .month {
    display: block;
    font-family: 'Inter';
    font-weight: 500;
    font-style: medium;
    font-size: 20px;
    /* leading-trim: none; */
    line-height: 20px;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-align: center;
}

/* 4. Hora (El más pequeño con separador) */
.date-badge .time {
    display: block;
    font-family: 'Inter';
    font-weight: 500;
    font-style: medium;
    font-size: 20px;
    /* leading-trim: none; */
    line-height: 20px;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-align: center;
    border-top: 1px solid #eee;
    width: 100%;
    padding-top: 5px;
}

.event-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: 232px;
    text-align: left;
}

.border-orange {
    border-color: #ff8c00 !important;
}

.hora-texto {
    font-family: 'Inter';
    font-weight: 600;
    font-style: semibold;
    font-size: 16px;
    /* leading-trim: none; */
    line-height: 24px;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-align: left;
    color: #333;
}

.lugar-texto {
    font-family: 'Inter';
    font-weight: 400;
    font-style: regular;
    font-size: 14px;
    /* leading-trim: none; */
    line-height: 20px;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-align: left;
    color: #666;
}


/*====================================================================== 
  BADGE DE ESTADO 
 ========================================================================*/

/* Estilo base del Status Badge */
.status-badge {
    position: absolute;
    top: 15px;
    right: 0;
    /* Lo pegamos al borde derecho */
    background-color: white;
    /* Fondo siempre blanco */
    padding: 6px 12px 6px 10px;
    /* Un poco menos de padding a la izquierda por el borde */
    font-family: 'inter';
    font-weight: 600;
    font-style: semibold;
    font-size: 16px;
    /* leading-trim: none; */
    line-height: 20px;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;

    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 5;
    /* La barrita lateral se hace con el borde izquierdo */
    border-left: 4px solid;
    border-bottom-left-radius: 2px;
    border-top-left-radius: 2px;

}

/* Estilo específico para cada estado, usando clases adicionales  en remate*/
.status-badge-remate {
    position: absolute;
    top: 0px;
    right: 0;
    background-color: white;
    padding: 6px 12px 6px 10px;
    font-family: 'Inter';
    font-weight: 600;
    font-style: semibold;
    font-size: 16px;
    /* leading-trim: none; */
    line-height: 20px;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 5;
    border-left: 4px solid;
    /* El color se define en las clases específicas */
}

/* Colores dinámicos según el estado */

.status-rematado {
    color: #555;
    /* Gris oscuro para rematados */
    border-left-color: #555;
}

.status-suspendido {
    color: #dc3545;
    /* Rojo para suspendidos */
    border-left-color: #dc3545;
}

.status-postergado {
    color: #ff8c00;
    /* Naranja para postergados */
    border-left-color: #ff8c00;
}

/*====================================================================== 
  TARJETAS 
 ========================================================================*/
.titulo-tarjeta {
    font-family: 'Inter';
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;
    color: var(--dark-bg);

}

.pie-tarjeta {
    font-family: 'Inter';
    font-weight: 400;
    font-style: regular;
    font-size: 14px;
    /* leading-trim: none; */
    line-height: 20px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: var(--text-muted);
    text-align: left;
}

.icono-remate {
    width: 28px;
    height: 28px;

    margin-right: 8px;
    vertical-align: middle;

}

.direccion {
    font-family: 'Inter';
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0%;
    text-align: left;
    vertical-align: middle;
}

/*====================================================================== 
  SERVICIOS SECTION
 ========================================================================*/

.bg-light-gray {
    background-color: #fcfcfc;

}

.accordion-button:not(.collapsed) {
    background-color: white;
    color: #333;
    box-shadow: none;
    border-bottom: 2px solid var(--light-gray);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

/* ===============================
   ACCORDION EDICTO - TEXTO + FLECHA
================================ */
.accordion-button.accordion-edicto {
    color: #f39c12;
    font-weight: bold;
}

.accordion-button.accordion-edicto:not(.collapsed) {
    color: #e67e22;
}

/* Flecha cerrada */
.accordion-button.accordion-edicto::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f39c12'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Flecha abierta */
.accordion-button.accordion-edicto:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e67e22'%3E%3Cpath fill-rule='evenodd' d='M1.646 11.354a.5.5 0 0 1 .708 0L8 5.707l5.646 5.647a.5.5 0 0 1 .708-.708l-6-6a.5.5 0 0 1-.708 0l-6 6a.5.5 0 0 1 0 .708z'/%3E%3C/svg%3E");
}

.accordion-button.accordion-edicto:focus {
    box-shadow: none;
}

/*====================================================================== 
  MODAL  CAROUSEL DE IMAGENES
 ========================================================================*/
#modalGaleria .carousel-control-prev-icon,
#modalGaleria .carousel-control-next-icon {
    filter: invert(1);
}

#modalGaleria img {
    background-color: #000;
}

/*====================================================================== 
  IMAGENES DE REMATES 
 ========================================================================*/
/* Contenedor Grid personalizado */
.galeria-grid-custom {
    display: flex;
    justify-content: center;
    gap: 8px; /* Espacio entre el bloque izquierdo y derecho */
    max-width: 1272px; /* 632 + 632 + 8 gap */
    margin: 0 auto;
}

/* Bloque Izquierdo */
.contenedor-izquierdo {
    width: 632px;
    height: 384px;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.img-galeria-main {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto llene el espacio sin deformarse */
    display: block;
}

/* Bloque Derecho */
.contenedor-derecho {
    width: 632px;
    height: 384px;
    display: grid;
    grid-template-columns: repeat(2, 312px);
    grid-template-rows: repeat(2, 188px);
    gap: 8px; /* Espacio entre las 4 fotitos */
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden; /* Corta las imágenes que desborden el radio */
}

.foto-secundaria {
    width: 312px;
    height: 188px;
}

.img-galeria-sub {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ajuste del Badge para que no tape los bordes curvos */
/*.date-badge {
    position: absolute;
    bottom: 15px; /* Lo bajamos un poco */
   /* left: 15px;
    z-index: 10;
}*/

/*====================================================================== 
  FOOTER
 ========================================================================*/
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 40px 0;
    font-weight: 400;
    font-family: 'Inter';
    font-style: regular;
    font-size: 16px;
    /*leading-trim: CAP_HEIGHT;*/
    line-height: 20px;
    letter-spacing: 0px;
    text-align: center;

}

.iconos-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a:hover {
    color: var(--primary-orange) !important;
}

.border-start-orange {
    border-left: 4px solid var(--primary-orange);
}

/*====================================================================== 
  ESTILOS ESPECÍFICOS LA DESCRIPCION DEL REMATE
 ========================================================================*/
.detalle-remate {
    font-family: 'Inter';

}

/* Contenedor de la descripción técnica */
.remate-descripcion-header {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: var(--dark-bg);
    margin-bottom: 12px;
    display: block;
    text-transform: lowercase;
}

.remate-propiedad-nombre {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: var(--dark-bg);
    margin-bottom: 12px;
    display: block;

}

.remate-propiedad-detalles {

    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: var(--dark-bg);
    margin-bottom: 12px;
    display: block;


}

.remate-propiedad-padron {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: var(--dark-bg);
    display: block;

}

/* Listado de Servicios y Gastos */
.remate-seccion-titulo {
    font-family: 'Inter';
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: underline;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.remate-lista-servicios {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: var(--dark-bg);
    display: block;
    margin-top: 10px;
}

.remate-lista-servicios li::before {
    content: "•";
    color: var(--primary-orange);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 5px;
}

.lugar-remate {
    font-family: 'Inter';
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    vertical-align: middle;
}