/* =========================================================
   Archivo: home.css
   Ruta: /wp-content/themes/furgomadrid/assets/css/home.css
   Uso: estilos de la página Home de Furgomadrid en Gutenberg.
   Banner principal + buscador flotante + bloque de filtros.
   La imagen del banner se gestiona desde Gutenberg, no desde CSS.
========================================================= */

.fm-container{
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
}

.fm-home{
  background: #f5f7fb;
  padding-bottom: 56px;
}


/* =========================================================
   HERO / BANNER PRINCIPAL
========================================================= */

.fm-home-hero{
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 80px 0 140px;
  background: linear-gradient(135deg, rgba(8,16,30,.88), rgba(20,44,78,.74));
}

.fm-home-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.10), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255,255,255,.08), transparent 28%);
  pointer-events: none;
}

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

.fm-home-hero__content{
  max-width: 760px;
  color: #ffffff;
}

.fm-home-hero__eyebrow{
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffffff;
}

.fm-home-hero__title{
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #ffffff;
}

.fm-home-hero__text{
  margin: 0;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,.88);
}


/* =========================================================
   BUSCADOR HORIZONTAL FLOTANTE
========================================================= */

.fm-home-search{
  position: relative;
  z-index: 5;
  margin-top: -72px;
}

.fm-home-search__box{
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15,23,42,.12);
  padding: 22px;
}


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

.fm-home-filters{
  padding: 28px 0 0;
}


/* =========================================================
   AJUSTES GUTENBERG / ASTRA
========================================================= */

.fm-home p:last-child{
  margin-bottom: 0;
}

.fm-home .wp-block-group,
.fm-home .wp-block-columns{
  margin-bottom: 0;
}


/* =========================================================
   BUSCADOR HORIZONTAL
========================================================= */

.fm-home-search-form{
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr auto;
  gap: 14px;
  align-items: center;
}

.fm-home-search-form__field,
.fm-home-search-form__action{
  min-width: 0;
}

.fm-home-search-form select,
.fm-home-search-form button{
  width: 100%;
  height: 58px;
  border: 1px solid #d7deea;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}

.fm-home-search-form select{
  padding: 0 16px;
  background: #ffffff;
  color: #1e293b;
}

.fm-home-search-form select:focus{
  outline: none;
  border-color: #1d4ed8;
}

.fm-home-search-form button{
  padding: 0 24px;

  background: #36a6ee;

  border: 1px solid #7cc8f4;
  color: #111827;

  cursor: pointer;

  transition: .18s ease;
}

  border: 1px solid #7cc8f4;
  color: #111827;

  cursor: pointer;

  transition: .18s ease;
}

.fm-home-search-form button:hover{
  color: #ffffff;
  filter: brightness(.92);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(54,166,238,.35);
}

.fm-home-search-form button:active{
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.25);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px){

  .fm-home-hero{
    min-height: 480px;
    padding: 64px 0 120px;
  }

  .fm-home-search{
    margin-top: -56px;
  }

  .fm-home-search__box{
    border-radius: 20px;
    padding: 18px;
  }

  .fm-home-search-form{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px){

  .fm-container{
    width: min(100% - 24px, 1440px);
  }

  .fm-home-hero{
    min-height: auto;
    padding: 52px 0 96px;
  }

  .fm-home-hero__title{
    font-size: clamp(30px, 9vw, 42px);
  }

  .fm-home-hero__text{
    font-size: 15px;
  }

  .fm-home-search{
    margin-top: -42px;
  }

  .fm-home-search__box{
    border-radius: 18px;
    padding: 16px;
  }

  .fm-home-filters{
    padding-top: 22px;
  }

  .fm-home-search-form{
    grid-template-columns: 1fr;
  }

  .fm-home-search-form select,
  .fm-home-search-form button{
    height: 54px;
    border-radius: 14px;
  }
}
body:not(.home):not(.front-page) .ast-primary-header-bar{
  box-shadow: 0 12px 24px -12px #36a6eecc;
}