@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500;600&display=swap");

/*nuevo-topbar: franja por encima del cabezote y debajo del logo - inicio*/
#contenedor-cabezote > #mod-custom165 {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  height: 45px;
  box-sizing: border-box;
  background-color: #1f2024;
  border-bottom: 1px solid #fff;
  box-shadow: 0 8px 14px -5px rgba(31, 32, 36, 0.42);
}
/*nuevo-topbar: franja por encima del cabezote y debajo del logo - final*/

/*nuevo-topbar: el contenido nuevo espera al diseño responsive - inicio*/
#contenedor-cabezote > #mod-custom165 > .nuevo-topbar-caja {
  display: none;
}
/*nuevo-topbar: el contenido nuevo espera al diseño responsive - final*/

/*nuevo-topbar: fondo dividido y caja centrada desde 1920px - inicio*/
@media (min-width: 1920px) {
  #contenedor-cabezote > #mod-custom165 {
    background-image: linear-gradient(to right, #1f2024 0%, #1f2024 50%, #ffc107 50%, #ffc107 100%);
  }

  #contenedor-cabezote > #mod-custom165 > .nuevo-topbar-caja {
    display: block;
    width: 1230px;
    height: 44px;
    margin: 0 auto;
    position: relative;
    background-image: url("/nuevo_topbar/imagenes/fondo_nuevo_topbar_caja_min_1920px.jpg");
    background-position: center center;
    background-repeat: no-repeat;
  }
}
/*nuevo-topbar: fondo dividido y caja centrada desde 1920px - final*/

/*nuevo-topbar: elementos de la referencia desde 1920px - inicio*/
@media (min-width: 1920px) {
  #contenedor-cabezote .nuevo-topbar-contenido {
    display: flex;
    align-items: stretch;
    width: 1037px;
    height: 44px;
    margin-left: 193px;
    color: #fff;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  #contenedor-cabezote .nuevo-topbar-item {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 44px;
    box-sizing: border-box;
    color: #fff;
    text-decoration: none;
  }

  #contenedor-cabezote .nuevo-topbar-item--ubicacion { width: 151px; }
  #contenedor-cabezote .nuevo-topbar-item--telefono { width: 170px; padding-left: 13px; }
  #contenedor-cabezote .nuevo-topbar-item--cafe { width: 199px; padding-left: 15px; }
  #contenedor-cabezote .nuevo-topbar-item--finca { width: 199px; padding-left: 15px; }
  #contenedor-cabezote .nuevo-topbar-item--actualidad { width: 145px; padding-left: 16px; }

  #contenedor-cabezote .nuevo-topbar-item--ubicacion::after,
  #contenedor-cabezote .nuevo-topbar-item--telefono::after,
  #contenedor-cabezote .nuevo-topbar-item--finca::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 27px;
    background: #5c5d60;
    transform: translateY(-50%);
  }

  #contenedor-cabezote .nuevo-topbar-icono {
    display: flex;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-right: 8px;
    border-radius: 50%;
  }

  #contenedor-cabezote .nuevo-topbar-icono img,
  #contenedor-cabezote .nuevo-topbar-icono-finca {
    display: block;
    object-fit: contain;
  }

  #contenedor-cabezote .nuevo-topbar-icono--ubicacion img { width: 14px; height: 17px; }
  #contenedor-cabezote .nuevo-topbar-icono--telefono img { width: 17px; height: 17px; }
  #contenedor-cabezote .nuevo-topbar-icono--cafe img { width: 17px; height: 17px; }
  #contenedor-cabezote .nuevo-topbar-icono--actualidad img { width: 15px; height: 15px; }

  #contenedor-cabezote .nuevo-topbar-icono--ubicacion { background: #ffb600; }
  #contenedor-cabezote .nuevo-topbar-icono--telefono { background: #718b20; }
  #contenedor-cabezote .nuevo-topbar-icono--cafe { background: #bd7a00; }
  #contenedor-cabezote .nuevo-topbar-icono--actualidad { background: #d83437; }
  #contenedor-cabezote .nuevo-topbar-icono--telefono img,
  #contenedor-cabezote .nuevo-topbar-icono--cafe img,
  #contenedor-cabezote .nuevo-topbar-icono--actualidad img { filter: brightness(0) invert(1); }

  #contenedor-cabezote .nuevo-topbar-icono-finca {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    margin-right: 8px;
  }

  #contenedor-cabezote .nuevo-topbar-disparador,
  #contenedor-cabezote .nuevo-topbar-prueba,
  #contenedor-cabezote .nuevo-topbar-desplegable button {
    appearance: none;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }

  #contenedor-cabezote .nuevo-topbar-disparador {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0;
    transition: color 160ms ease;
  }

  #contenedor-cabezote .nuevo-topbar-item--telefono {
    transition: color 160ms ease;
  }

  #contenedor-cabezote .nuevo-topbar-item--telefono:hover,
  #contenedor-cabezote .nuevo-topbar-item--telefono:focus-visible,
  #contenedor-cabezote .nuevo-topbar-item--desplegable:hover > .nuevo-topbar-disparador,
  #contenedor-cabezote .nuevo-topbar-item--desplegable:focus-within > .nuevo-topbar-disparador {
    color: #ffc107;
  }

  #contenedor-cabezote .nuevo-topbar-item--telefono:hover .nuevo-topbar-icono,
  #contenedor-cabezote .nuevo-topbar-item--telefono:focus-visible .nuevo-topbar-icono,
  #contenedor-cabezote .nuevo-topbar-item--desplegable:hover .nuevo-topbar-icono,
  #contenedor-cabezote .nuevo-topbar-item--desplegable:focus-within .nuevo-topbar-icono {
    transform: scale(1.07);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, .18);
  }

  #contenedor-cabezote .nuevo-topbar-item--finca:hover .nuevo-topbar-icono-finca,
  #contenedor-cabezote .nuevo-topbar-item--finca:focus-within .nuevo-topbar-icono-finca {
    transform: scale(1.07);
  }

  #contenedor-cabezote .nuevo-topbar-item--ubicacion > span:last-child,
  #contenedor-cabezote .nuevo-topbar-item--telefono > span:last-child,
  #contenedor-cabezote .nuevo-topbar-disparador > span:not(.nuevo-topbar-icono):not(.nuevo-topbar-flecha) {
    display: inline-flex;
    align-items: center;
    height: 44px;
    line-height: 1;
  }

  #contenedor-cabezote .nuevo-topbar-flecha {
    display: block;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 10px;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(45deg);
  }

  #contenedor-cabezote .nuevo-topbar-item--desplegable:hover .nuevo-topbar-flecha,
  #contenedor-cabezote .nuevo-topbar-item--desplegable:focus-within .nuevo-topbar-flecha {
    transform: translateY(2px) rotate(45deg);
  }

  #contenedor-cabezote .nuevo-topbar-prueba {
    display: block;
    flex: 0 0 147px;
    width: 147px;
    height: 34px;
    margin: 5px 0 0 26px;
    padding: 0;
    line-height: 0;
    transition: transform 160ms ease, filter 160ms ease;
  }

  #contenedor-cabezote .nuevo-topbar-prueba:hover,
  #contenedor-cabezote .nuevo-topbar-prueba:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
  }

  #contenedor-cabezote .nuevo-topbar-prueba img {
    display: block;
    width: 147px;
    height: 34px;
  }

  #contenedor-cabezote .nuevo-topbar-disparador:focus-visible,
  #contenedor-cabezote .nuevo-topbar-prueba:focus-visible,
  #contenedor-cabezote .nuevo-topbar-item--telefono:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
  }
}
/*nuevo-topbar: elementos de la referencia desde 1920px - final*/

/*nuevo-topbar: cinco botones por desplegable desde 1920px - inicio*/
@media (min-width: 1920px) {
  #contenedor-cabezote .nuevo-topbar-desplegable {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    z-index: 20;
    width: 200px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid #ffc107;
    background: #1f2024;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .28);
  }

  #contenedor-cabezote .nuevo-topbar-item--desplegable:hover > .nuevo-topbar-desplegable,
  #contenedor-cabezote .nuevo-topbar-item--desplegable:focus-within > .nuevo-topbar-desplegable {
    display: block;
    animation: nuevo-topbar-entrada 160ms ease-out both;
  }

  @keyframes nuevo-topbar-entrada {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  #contenedor-cabezote .nuevo-topbar-desplegable li + li {
    border-top: 1px solid rgba(255, 255, 255, .18);
  }

  #contenedor-cabezote .nuevo-topbar-desplegable button {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    padding: 0 11px;
    border-left: 3px solid transparent;
    text-align: left;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, padding-left 160ms ease;
  }

  #contenedor-cabezote .nuevo-topbar-desplegable button:hover,
  #contenedor-cabezote .nuevo-topbar-desplegable button:focus-visible {
    background: #303137;
    color: #fff;
    border-left-color: #ffc107;
    padding-left: 14px;
    outline: none;
  }
}
/*nuevo-topbar: cinco botones por desplegable desde 1920px - final*/

/*nuevo-topbar: popup gris de prueba desde 1920px - inicio*/
#nuevo-topbar-popup:not([open]) { display: none; }

@media (min-width: 1920px) {
  #nuevo-topbar-popup[open] {
    display: block;
    width: 600px;
    height: 380px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #888;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .45);
  }

  #nuevo-topbar-popup::backdrop { background: rgba(0, 0, 0, .55); }

  #nuevo-topbar-popup .nuevo-topbar-popup-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #555;
    border-radius: 4px;
    background: #888;
    color: #222;
    font: 24px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
  }

  #nuevo-topbar-popup .nuevo-topbar-popup-cerrar:hover,
  #nuevo-topbar-popup .nuevo-topbar-popup-cerrar:focus-visible {
    background: #aaa;
    transform: scale(1.06);
  }
}
/*nuevo-topbar: popup gris de prueba desde 1920px - final*/

@media (prefers-reduced-motion: reduce) {
  #contenedor-cabezote .nuevo-topbar-contenido *,
  #nuevo-topbar-popup .nuevo-topbar-popup-cerrar {
    transition: none !important;
    animation: none !important;
  }
}
