h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500 !important;
}

.home-hero {
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  background-position: center;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0) 30%
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0) 1px
    );
  background-size:
    auto,
    9rem 100%;
  pointer-events: none;
}

.home-hero__stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: 2rem;
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}

.home-hero__copy {
  max-width: 48rem;
  animation: homeHeroRise 720ms ease-out both;
}

.home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
}

.home-hero__kicker span {
  display: block;
  width: 2.75rem;
  height: 1px;
  background: var(--light);
}

.home-hero__copy h1 {
  max-width: 42rem;
  margin: 0;
  color: #fff;
  font-size: 2.85rem;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.34);
}

.home-hero__copy p {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  line-height: 1.75;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 0.25rem;
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.home-hero__button--primary {
  border: 1px solid rgba(159, 197, 90, 0.92);
  background: rgba(159, 197, 90, 0.94);
  color: #10200f;
}

.home-hero__button--primary:hover {
  border-color: var(--light);
  background: var(--light);
}

.home-hero__button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.home-hero__button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1.35rem;
}

.home-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding-left: 0.8rem;
  border-left: 1px solid rgba(159, 197, 90, 0.58);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.home-hero__panel {
  display: grid;
  gap: 0.7rem;
  width: min(100%, 29rem);
  animation: homeHeroRise 720ms 140ms ease-out both;
}

.home-hero__panel a {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.2rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.25rem;
  background: rgba(12, 13, 10, 0.22);
  color: #fff;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.home-hero__panel a:hover {
  border-color: rgba(159, 197, 90, 0.66);
  background: rgba(12, 13, 10, 0.34);
}

.home-hero__panel span {
  grid-row: span 2;
  color: var(--light);
  font-weight: 700;
}

.home-hero__panel strong {
  font-size: 1rem;
  font-weight: 600;
}

.home-hero__panel small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
}

@keyframes homeHeroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .home-hero__copy h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
  }

  .home-hero__copy h1 {
    font-size: 5rem;
  }
}

@media (max-width: 767px) {
  .home-hero {
    min-height: 760px;
    padding-bottom: 4rem !important;
  }

  .home-hero__stage {
    align-items: flex-end;
    padding-top: 1rem;
  }

  .home-hero__copy h1 {
    font-size: 2.55rem;
  }

  .home-hero__copy p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .home-hero__button {
    width: 100%;
  }

  .home-hero__panel {
    display: none;
  }

  /* En movil los items del meta se apilan por flex-wrap; anadir
     mas separacion vertical entre lineas para que no queden pegados. */
  .home-hero__meta {
    row-gap: 0.9rem;
    column-gap: 1.1rem;
    margin-top: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__copy,
  .home-hero__panel {
    animation: none;
  }

  .home-hero__button,
  .home-hero__panel a {
    transition: none;
  }
}

/* Active nav item feedback */
.nav-active {
  color: var(--color-primary, #10401b) !important;
  font-weight: 600;
  position: relative;
}

nav a.nav-active-parent {
  color: var(--color-primary, #10401b) !important;
  font-weight: 600;
}

/* Desktop underline for top-level items */
@media (min-width: 1024px) {
  nav.hidden.lg\:flex a.nav-active::after,
  nav.hidden.lg\:flex a.nav-active-parent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
}

/* Mobile: remove muted style when child is active and show a filled left marker */
nav.p-10 a.nav-active {
  color: var(--color-primary, #10401b) !important;
  opacity: 1 !important;
  border-left-color: currentColor !important;
}

/* ─────────────────────────────────────────────────────────────
   Header — switcher de idioma y menú "Casas"
   ───────────────────────────────────────────────────────────── */

/* 1) Cursor pointer en el switcher de idioma (el <span>"ES" no era clicable visualmente) */
nav .uppercase.text-sm,
header .uppercase.text-sm {
  cursor: pointer;
}

/* 2) Acentuar el hover en los ítems desplegables (menú "Casas" + selector de idioma).
      El hover:bg-black/10 original es muy sutil sobre fondo oscuro. */
.bg-input-fill > a:hover {
  background-color: rgba(159, 197, 90, 0.18);
  color: var(--color-primary, #10401b);
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

/* ─────────────────────────────────────────────────────────────
   Header — fix de hover bridge en dropdowns
   El dropdown tiene pt-1 (4px) que crea un gap visual entre el
   label y el contenido. Si el cursor cae en ese gap, mouseleave
   se dispara y el menú se cierra. Solución: extender el área
   sensible del hover con un pseudo-elemento invisible.
   ───────────────────────────────────────────────────────────── */
nav .relative > div[x-show],
header .relative > div[x-show] {
  /* asegurar que el dropdown forma parte del área de hover del padre */
  pointer-events: auto;
}

nav .relative > div[x-show]::before,
header .relative > div[x-show]::before {
  /* puente invisible entre label y contenido del dropdown */
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 12px;
}

/* ─────────────────────────────────────────────────────────────
   Embla Carousel — fix de viewport y botones
   El viewport necesita overflow hidden para que Embla funcione.
   Y los botones desactivados deben ser invisibles (no clicables).
   ───────────────────────────────────────────────────────────── */
.embla__viewport {
  overflow: hidden;
}

.embla__button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.embla__button {
  cursor: pointer;
}

/* Bullet points en sección Características de fichas */
ul.list-disc {
  list-style-type: disc !important;
}
ul.list-disc li {
  list-style-position: outside;
  margin-left: 1rem;
}
ul.list-disc.pl-5 {
  padding-left: 1.5rem !important;
}
