/* ================================================================== */
/* XZONAS VALENCIA - CSS DESKTOP (SIN REGLAS DE GRID)                */
/* Extraído de desktop-consolidated.css - Solo navbar/layout/carousel */
/* ================================================================== */

/* ============================================================ */
/* NAVBAR STICKY - FIXED EN TOP PARA DESKTOP Y MÓVIL */
/* ============================================================ */
nav.navbar,
nav.navbar.navbar-default,
nav.navbar.navbar-fixed-top,
.navbar-fixed-top {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
  width: 100% !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 0 !important;
}

/* Asegurar que body no tenga padding-top que empuje el contenido */
body {
  padding-top: 0 !important;
}

/* Contenedor principal justo después del navbar */
body>.contenedor100:first-of-type,
body>.containerGrid:first-of-type {
  margin-top: 0 !important;
}

/* ============================================================ */
/* RESET GLOBAL PARA DESKTOP */
/* ============================================================ */
@media (min-width: 993px) {

  /* ELIMINAR ESPACIADOR INNECESARIO EN DESKTOP */
  #desplazarmenu {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Full-bleed: sin padding superior artificial en el contenedor principal */
  .contenedor100.F_gris03 {
    padding-top: 0 !important;
  }

  body {
    padding-top: 0 !important;
  }

  /* OCULTAR BLOQUES INNECESARIOS EN DESKTOP */
  #busqueda-avanzada,
  #bloque-mapa-anunciantes,
  #resultados-busqueda-avanzada {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* ============================================================ */
/* CARRUSEL DESTACADAS DEL DÍA - DESKTOP OPTIMIZADO */
/* ============================================================ */
@media (min-width: 993px) {

  /* CONTAINER PRINCIPAL DESTACADAS */
  #cnt_destacadas_diaB {
    position: relative !important;
    top: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 240px !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    padding: 0 0 20px 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    overflow: visible !important;
    z-index: 100 !important;
  }

  /* TÍTULO DESTACADAS */
  .titdestacada {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
    color: #e91e63 !important;
    font-weight: bold !important;
    font-size: 1.8em !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }

  /* CARRUSEL BOOTSTRAP */
  #portaCarrusel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 15px 0 !important;
    overflow: hidden !important;
  }

  #myCarouselTop {
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
  }

  #myCarouselTop .carousel-inner {
    width: 100% !important;
    height: 180px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  #myCarouselTop .item {
    display: inline-block !important;
    width: auto !important;
    height: 180px !important;
    vertical-align: top !important;
    white-space: normal !important;
  }

  #myCarouselTop .slide-flex-row {
    display: inline-flex !important;
    gap: 15px !important;
    height: 180px !important;
  }

  /* MINIATURAS CARRUSEL */
  #portaCarrusel .miniatura-carrusel {
    flex: 0 0 auto !important;
    width: 200px !important;
    height: 160px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
    border: 3px solid #e91e63 !important;
  }

  #portaCarrusel .miniatura-carrusel img.img-responsive {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px !important;
    display: block !important;
  }

  #portaCarrusel .miniatura-carrusel:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
  }
}

/* ============================================================ */
/* LAYOUT GENERAL - SIN REGLAS DE GRID */
/* ============================================================ */
@media (min-width: 993px) {

  /* Contenedores principales */
  .navbar-fixed-top {
    position: sticky !important;
    top: 0 !important;
  }

  .container-fluid {
    width: 100% !important;
    padding: 0 15px !important;
  }

  .contenedor100 {
    width: 100% !important;
    margin: 0 auto !important;
  }

  .contenedor100.F_blanco,
  .contenedor100.F_gris03 {
    padding: 20px 15px !important;
  }

  /* Theme switch */
  .theme-switch-container {
    position: relative !important;
    z-index: 9999 !important;
  }

  /* Imágenes responsive */
  .img-responsive {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .logo-container img {
    max-height: 60px !important;
  }

  /* Botones */
  .btn {
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
  }

  .btn-primary {
    background-color: #e91e63 !important;
    border-color: #e91e63 !important;
    color: #fff !important;
  }

  .btn-primary:hover {
    background-color: #c2185b !important;
    border-color: #c2185b !important;
  }

  /* Paginación */
  .pagination {
    display: flex !important;
    justify-content: center !important;
    margin: 20px 0 !important;
  }

  .pagination .page-link {
    padding: 8px 12px !important;
    margin: 0 2px !important;
    border-radius: 4px !important;
  }
}
