:root {
  --black: #0c0c0d;
  --black-800: #131315;
  --black-700: #1b1b1e;
  --ink: #0c0c0d;
  --paper: #f5f4ef;
  --yellow: #dbc129;
  --yellow-600: #c2a91c;
  --yellow-rgb: 219, 193, 41;
  --black-rgb: 12, 12, 13;
  --footer-bg: #070708;
  --white: #ffffff;
  --muted: #9a9a94;
  --line: rgba(255, 255, 255, .12);
  --star: var(--yellow);
  /* Italiana: títulos y textos destacados · Figtree: textos y UI */
  --title: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --display: "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --gutter: clamp(16px, 3.5vw, 66px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* "hidden" siempre gana, aunque el elemento tenga display propio */
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--black); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.ico { width: 18px; height: 18px; flex: none; }
.wrap { max-width: 1800px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 3px; border: 0; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn .ico { transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: #ecebe6; }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--yellow-600); }
/* Contorno amarillo, fondo transparente y texto blanco (botón de WhatsApp de la barra) */
.btn--outline { background: transparent; color: #fff; border: 1px solid var(--yellow); }
.btn--outline:hover { background: var(--yellow); color: var(--black); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark .ico { color: var(--yellow); }
.btn--dark:hover { background: var(--black-700); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.link-u { color: var(--white); text-decoration-color: var(--yellow); font-weight: 500; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; letter-spacing: .02em; }
.link-u:hover { opacity: .8; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--white); }
.logo__mark {
  font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.06em;
  background: var(--yellow); color: var(--black); border-radius: 6px; padding: 3px 8px 3px 6px; line-height: 1.2;
}
.logo__text { font-family: var(--body); font-size: 13px; letter-spacing: .02em; font-weight: 500; }
.logo__text b { font-weight: 700; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, backdrop-filter .3s ease;
}
.nav.is-solid { background: rgba(var(--black-rgb), .9); backdrop-filter: blur(10px); }
.nav__inner { height: 62px; display: flex; align-items: center; gap: 40px; padding: 0 var(--gutter); }
.nav__links { margin-left: auto; display: flex; gap: 40px; }
.nav__links a { position: relative; color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 500; letter-spacing: .01em; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__cta { padding: 11px 19px; } /* 1px menos por el borde: mismo alto que antes */
.nav__burger { display: none; margin-left: auto; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 6px auto; transition: transform .25s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: var(--white); background: var(--black); display: flex; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); filter: saturate(.85);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--black-rgb), .6) 0%, rgba(var(--black-rgb), .12) 32%, rgba(var(--black-rgb), .55) 62%, rgba(var(--black-rgb), .94) 100%),
    linear-gradient(90deg, rgba(var(--black-rgb), .45) 0%, rgba(var(--black-rgb), 0) 65%);
}
.hero__top {
  position: absolute; top: 128px; right: var(--gutter); z-index: 3; /* por encima de .hero__content, que ocupa todo el hero */
  display: flex; align-items: center; gap: 22px;
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(var(--black-rgb), .72); backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,.12);
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .02em;
  padding: 10px 18px; border-radius: 999px; transition: background .2s;
}
.hero__pill:hover { background: var(--black); border-color: var(--yellow); }
.hero__pill .ico { color: var(--yellow); }
.hero__thumbs { display: flex; gap: 8px; }
.hero__thumb {
  position: relative; width: 64px; height: 44px; padding: 0; border: 0; border-radius: 6px; overflow: hidden;
  cursor: pointer; background: #000; opacity: .55; outline: 1px solid rgba(255,255,255,.25); outline-offset: 0;
  transition: opacity .25s, outline-color .25s, transform .25s;
}
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__thumb:hover { opacity: .9; transform: translateY(-2px); }
.hero__thumb.is-active { opacity: 1; outline: 2px solid var(--yellow); }
.hero__thumb i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.hero__thumb.is-active i { animation: heroProgress var(--d) linear forwards; }
@keyframes heroProgress { to { transform: scaleX(1); } }

.hero__content {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px var(--gutter) 58px;
}
.hero__title {
  font-family: var(--display); font-stretch: 82%; font-weight: 700;
  font-size: clamp(64px, 10.6vw, 168px); line-height: .98; letter-spacing: -.025em;
  margin-left: 13.5%;
  text-wrap: balance;
}
.hero__bottom {
  margin: 64px 0 0 13.5%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  max-width: 1240px;
}
.hero__rating { font-size: 15px; letter-spacing: .02em; color: rgba(255,255,255,.92); transition: color .2s; }
.hero__rating .u { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.hero__rating:hover { color: #fff; }
.hero__rating:hover .u { text-decoration-color: var(--yellow); }
.hero__rating .stars { color: var(--star); letter-spacing: 1px; margin-right: 6px; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; width: 76px; border-radius: 8px; overflow: hidden;
  background: var(--black); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.dock__item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 4px; color: #fff; font-size: 11px; font-weight: 600; font-family: var(--display);
  border-bottom: 1px solid rgba(255,255,255,.08); transition: background .2s;
}
.dock__item:last-child { border-bottom: 0; }
.dock__item:hover { background: var(--black-700); color: var(--yellow); }
.dock__item--wa { background: var(--yellow); color: var(--black); }
.dock__item--wa:hover { background: var(--yellow-600); color: var(--black); }
.dock .ico { width: 20px; height: 20px; }

/* ---------- Teléfonos ---------- */
.phones { list-style: none; display: grid; gap: 8px; }
.phones__item { display: flex; align-items: center; gap: 8px; }
.phones__num { flex: 1; display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); letter-spacing: .01em; color: #fff; white-space: nowrap; }
.phones__num .ico { color: var(--yellow); width: 18px; height: 18px; }
.phones__copy {
  position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; cursor: pointer;
  background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.15); transition: color .2s, border-color .2s, background .2s;
}
.phones__copy:hover { color: var(--yellow); border-color: var(--yellow); }
.phones__copy .ico { width: 16px; height: 16px; }
.phones__ok {
  position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 4px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; z-index: 2;
  font: 600 11px var(--display); background: var(--yellow); color: var(--black); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.phones__copy.is-copied { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.phones__copy.is-copied .phones__ok { opacity: 1; translate: -50% 0; }
.phones__ok { transition: opacity .2s, translate .2s; }

/* Panel de teléfonos del dock */
.dock { overflow: visible; }
.dock__item--wa { border-radius: 8px 8px 0 0; }
#callBtn { border-radius: 0 0 8px 8px; }
button.dock__item { width: 100%; border: 0; border-top: 1px solid rgba(255,255,255,.08); background: transparent; cursor: pointer; font-family: var(--display); }
.dock__item.is-on { color: var(--yellow); background: var(--black-700); }
.dock__panel {
  position: absolute; right: calc(100% + 12px); bottom: 0; width: 290px; padding: 18px 18px 16px;
  background: var(--black); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.4);
  animation: panelIn .3s cubic-bezier(.16, 1, .3, 1);
}
.dock__panel-title { font: 600 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
@keyframes panelIn { from { opacity: 0; transform: translateX(8px) scale(.97); } }

/* Teléfonos en la ficha */
.aside__phones { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.aside__phones .phones { margin-top: 12px; }

/* ---------- Section heads ---------- */
.section-head { padding-bottom: 36px; color: #fff; }
.section-head--dark { color: var(--ink); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; color: var(--yellow); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head--dark .eyebrow { color: var(--ink); }
.section-head--dark .eyebrow::before { background: var(--yellow); height: 3px; }
.section-title { font-family: var(--display); font-stretch: 82%; font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.02em; }

/* ---------- Featured cards ---------- */
.featured { background: var(--black); padding: 110px 0 120px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; aspect-ratio: 435 / 580; border-radius: 10px; overflow: hidden;
  color: #fff; background: var(--black-700); isolation: isolate;
}
.card__imgs { position: absolute; inset: 0; z-index: -1; background: var(--black-700); }
/* color transparente: si una foto tarda, nunca se ve su texto alternativo */
.card__imgs img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent;
  opacity: 0; transition: opacity .45s ease, transform .9s ease;
}
.card { outline: 1px solid transparent; transition: outline-color .3s; }
.card:hover { outline-color: rgba(var(--yellow-rgb), .6); }
.card__imgs img.is-active { opacity: 1; }
.card:hover .card__imgs img.is-active { transform: scale(1.04); }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--black-rgb), 0) 28%, rgba(var(--black-rgb), .5) 52%, rgba(var(--black-rgb), .82) 72%, rgba(var(--black-rgb), .96) 100%);
}
.card__badge {
  position: absolute; top: 32px; left: 32px;
  background: var(--black); color: #fff; font-family: var(--display); font-weight: 700; font-size: 12px; border-left: 3px solid var(--yellow);
  padding: 7px 11px; border-radius: 2px;
}
.card__next {
  position: absolute; top: 50%; right: 16px; z-index: 2; translate: 0 -50%;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); background: rgba(var(--black-rgb), .45); color: #fff; backdrop-filter: blur(6px);
  opacity: .85; transition: opacity .25s, background .2s, color .2s, border-color .2s, scale .2s;
}
.card__next .ico { width: 20px; height: 20px; }
.card:hover .card__next { opacity: 1; }
.card__next:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); scale: 1.06; }
.card__next:active { scale: .94; }
.card__next:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* Loader: mientras carga la próxima foto, la flecha se convierte en un anillo girando */
.card__next::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--yellow); border-right-color: var(--yellow);
  opacity: 0; transition: opacity .2s;
}
.card.is-fetching .card__next::after { opacity: 1; animation: spin .7s linear infinite; }
.card.is-fetching .card__next .ico { opacity: .4; }
@keyframes spin { to { transform: rotate(360deg); } }
.card__body { position: absolute; left: 32px; right: 32px; bottom: 26px; }
.card__title { font-family: var(--display); font-stretch: 82%; font-weight: 700; font-size: clamp(30px, 2.4vw, 46px); line-height: 1; letter-spacing: -.015em; }
.card__addr { font-size: 13px; margin-top: 14px; letter-spacing: .02em; opacity: .9; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-family: var(--display); font-weight: 600; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.tag--accent { background: var(--yellow); color: var(--black); }
.card__specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.28); font-size: 12.5px; letter-spacing: .02em; opacity: .92; }

/* ---------- Search ---------- */
/* Fondo: dibujo de las llaves (assets/keys.webp). Va arriba a la derecha, junto al título y sin cruzarlo:
   las cabezas asoman en el espacio libre y el resto queda detrás del buscador y las tarjetas. */
.search {
  padding: 110px 0 120px;
  background: #fff url("/assets/keys.webp") right 3% top 24px / auto 600px no-repeat;
}
/* El título se achica más lento que el espacio libre: las llaves bajan de tamaño por tramos para no tocarlo */
@media (max-width: 1560px) {
  .search { background-size: auto 440px; background-position: right 2% top 40px; }
}
@media (max-width: 1180px) {
  .search { background-size: auto 330px; background-position: right 2% top 48px; }
}
@media (max-width: 900px) {
  /* En celular el título ocupa todo el ancho: las llaves tienen su propio espacio arriba y se funden hacia blanco */
  .search {
    padding-top: 250px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 150px, #fff 245px) no-repeat,
      #fff url("/assets/keys.webp") center 12px / auto 270px no-repeat;
  }
}
.searchbar {
  display: flex; gap: 0; align-items: stretch; background: #fff; border-radius: 10px;
  box-shadow: 0 14px 40px rgba(16,20,42,.07); padding: 10px; margin-bottom: 40px;
}
.field { display: flex; flex-direction: column; gap: 4px; padding: 10px 22px; border-right: 1px solid #e8e6df; min-width: 200px; }
.field--grow { flex: 1; border-right: 0; }
.field span { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7a786f; }
.field select, .field input { font: 500 16px var(--body); color: var(--ink); border: 0; outline: 0; background: transparent; padding: 2px 0; }
.searchbar .btn { border-radius: 6px; }

.types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.type {
  position: relative; height: 210px; border-radius: 10px; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; isolation: isolate;
  cursor: pointer; text-align: left; border: 0; font: inherit;
}
.type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.type::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--black-rgb), .05) 25%, rgba(var(--black-rgb), .85) 100%); transition: background .3s; }
.type:hover img { transform: scale(1.07); }
.type:hover::before { background: linear-gradient(180deg, rgba(var(--black-rgb), .3) 0%, rgba(var(--black-rgb), .95) 100%); }
.type:hover .type__meta { color: var(--yellow); opacity: 1; }
.type__name { font-family: var(--display); font-stretch: 82%; font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -.01em; }
.type__meta { transition: color .2s; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; opacity: .9; }
.type__meta .ico { width: 16px; height: 16px; transition: transform .2s; }
.type:hover .type__meta .ico { transform: translateX(4px); }
.type.is-picked { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- About ---------- */
.about { background: var(--black); color: #fff; padding: 120px 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.about .section-head, .about .section-title { color: #fff; }
/* Foto de la oficina: completa, sin recortes, debajo del título */
.about__office { margin-top: 44px; }
.about__office img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.about__office figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
.about__office figcaption a { display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; transition: color .2s; }
.about__office figcaption a:hover { color: var(--yellow); }
.about__office .ico { width: 16px; height: 16px; color: var(--yellow); }
.about__body p { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.85); max-width: 60ch; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.stats b { color: var(--yellow); display: block; font-family: var(--display); font-stretch: 82%; font-size: 54px; font-weight: 700; line-height: 1; }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--black-800); border-top: 1px solid var(--line); color: #fff; padding: 120px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact__lead { margin-top: 20px; color: rgba(255,255,255,.8); font-size: 17px; }
.contact__form { display: grid; gap: 12px; }
.contact__form input, .contact__form textarea {
  font: 400 16px var(--body); color: #fff; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18); border-radius: 4px; padding: 15px 16px; outline: 0; resize: vertical;
  transition: border-color .2s, background .2s;
}
.contact__form input::placeholder, .contact__form textarea::placeholder { color: rgba(255,255,255,.55); }
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--yellow); background: rgba(255,255,255,.1); }
.contact__form .btn { justify-self: start; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: #a7a59d; border-top: 1px solid var(--line); padding: 56px 16px 40px; font-size: 14px; }
.footer__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.65fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 20px; letter-spacing: .02em; }
.footer__brand .logo__mark { font-size: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-family: var(--display); font-weight: 600; font-size: 11.5px; color: #fff; margin-bottom: 4px; letter-spacing: .01em; }
.footer__col a { letter-spacing: .02em; transition: color .2s; }
.footer__col a:hover { color: var(--yellow); }
.footer__bar { max-width: 1240px; margin: 46px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 12px; letter-spacing: .03em; }
.footer__bar a { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; color: #fff; }

/* ---------- Dock visibility ---------- */
.dock { transition: opacity .35s ease, translate .35s ease, visibility .35s; }
.dock.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; translate: 24px 0; }

/* ---------- Card extras ---------- */
.card__link { position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; border-radius: 10px; }
.card__badge { z-index: 2; }
.card__body { pointer-events: none; }
.card__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.25); background: var(--black-700); }
.card__noimg .ico { width: 56px; height: 56px; }
.empty { color: var(--muted); font-size: 16px; padding: 40px 0; grid-column: 1 / -1; }

.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Footer extras ---------- */
.footer__contact { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.footer__contact li, .footer__contact li > a { display: flex; align-items: flex-start; gap: 10px; letter-spacing: .02em; }
.footer__contact .ico { width: 17px; height: 17px; color: var(--yellow); margin-top: 1px; }
.footer__contact a { transition: color .2s; }
.footer__contact a:hover { color: var(--yellow); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.socials .ico { width: 19px; height: 19px; }

/* ---------- Contact extras ---------- */
.contact__info { list-style: none; margin-top: 36px; display: grid; gap: 14px; font-size: 16px; color: rgba(255,255,255,.88); }
.contact__info li, .contact__info li > a { display: flex; align-items: center; gap: 12px; }
.contact__info .ico { color: var(--yellow); width: 20px; height: 20px; }
.contact__info li.contact__hours { align-items: flex-start; }
.contact__hours .ico { margin-top: 2px; }
.nowrap { white-space: nowrap; }
.contact__hours b { display: block; font-weight: 600; color: #fff; margin-bottom: 2px; }
.contact__info a:hover { color: var(--yellow); }
.form-msg { min-height: 1.4em; font-size: 14px; color: var(--yellow); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Inner pages ---------- */
.nav--static { position: sticky; }
.page { background: var(--black); color: #fff; }
.page-head { padding-block: 64px 40px; }
.page-head .section-title { margin-top: 4px; }
.page-head__count { margin-top: 14px; color: var(--muted); font-size: 15px; }

.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; margin-top: 32px; }
.filters select, .filters input {
  width: 100%; font: 500 15px var(--body); color: #fff; background: var(--black-700);
  border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 14px 14px; outline: 0; transition: border-color .2s;
}
.filters select:focus, .filters input:focus { border-color: var(--yellow); }
.filters option { color: #000; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font: 600 13px var(--display); padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.18); transition: all .2s;
}
.chip:hover { border-color: #fff; color: #fff; }
.chip.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.listing { padding-block: 8px 120px; }
.listing { scroll-margin-top: 80px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 56px; flex-wrap: wrap; }
.pager:empty { display: none; }
.pager__nums { display: flex; align-items: center; gap: 6px; }
.pager__btn {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85);
  font: 600 15px var(--display); transition: background .2s, color .2s, border-color .2s;
}
.pager__btn .ico { width: 16px; height: 16px; }
a.pager__btn:hover { border-color: var(--yellow); color: var(--yellow); }
.pager__btn.is-current { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.pager__btn.is-disabled { opacity: .3; }
.pager__btn--nav { padding: 0 16px; }
.pager__gap { color: var(--muted); padding: 0 4px; }
@media (max-width: 640px) {
  .pager__btn--nav span { display: none; }
  .pager__btn--nav { padding: 0; min-width: 44px; }
  .pager { gap: 6px; }
}
.cards.is-loading .card:not(.card--skeleton) { opacity: .45; transition: opacity .2s; }
.card--skeleton { background: var(--black-700); overflow: hidden; }
.card--skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 1.4s linear infinite; }
.card--skeleton .card__body { display: grid; gap: 12px; }
.sk { display: block; border-radius: 6px; background: rgba(255,255,255,.08); }
.sk--title { height: 34px; width: 75%; }
.sk--line { height: 12px; width: 45%; }
.sk--pills { height: 24px; width: 60%; border-radius: 999px; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ---------- Property detail ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); padding: 28px 0 22px; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span[aria-hidden] { opacity: .5; }

.gallery { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.gallery__main { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--black-700); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(var(--black-rgb), .6); color: #fff; backdrop-filter: blur(6px); transition: background .2s, color .2s;
}
.gallery__nav:hover { background: var(--yellow); color: var(--black); }
.gallery__nav--prev { left: 16px; } .gallery__nav--next { right: 16px; }
.gallery__count { position: absolute; right: 16px; bottom: 16px; font: 600 12px var(--display); background: rgba(var(--black-rgb), .7); padding: 6px 10px; border-radius: 999px; }
/* contain: size => la columna no suma alto propio: toma el de la foto principal y las miniaturas scrollean adentro */
.gallery__thumbs {
  display: flex; flex-direction: column; gap: 10px; overflow-y: auto; contain: size; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(var(--yellow-rgb), .6) transparent; padding-right: 4px;
}
.gallery__thumbs::-webkit-scrollbar { width: 4px; }
.gallery__thumbs::-webkit-scrollbar-thumb { background: rgba(var(--yellow-rgb), .6); border-radius: 4px; }
.gallery__thumbs button { flex: none; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .5; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: .85; }
.gallery__thumbs button.is-active { opacity: 1; outline-color: var(--yellow); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding: 44px 0 110px; align-items: start; }
.detail__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font: 700 12px var(--display); padding: 6px 11px; border-radius: 2px; background: var(--black-700); border-left: 3px solid var(--yellow); }
.badge--plain { border-left: 0; background: transparent; outline: 1px solid rgba(255,255,255,.2); }
.detail__title { font-family: var(--display); font-stretch: 82%; font-weight: 700; font-size: clamp(40px, 5vw, 76px); line-height: 1; letter-spacing: -.02em; margin-top: 18px; }
.detail__addr { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: rgba(255,255,255,.8); }
.detail__addr .ico { color: var(--yellow); }
.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.detail h2 { font-family: var(--display); font-stretch: 82%; font-weight: 700; font-size: 30px; letter-spacing: -.01em; margin: 56px 0 20px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; overflow: hidden; }
.spec { background: var(--black); padding: 20px 18px; }
.spec .ico { color: var(--yellow); width: 22px; height: 22px; }
.spec b { display: block; margin-top: 12px; font-family: var(--display); font-size: 22px; font-weight: 700; }
.spec span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.detail__desc { font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.85); max-width: 70ch; }
.detail__desc p + p { margin-top: 1em; }
.features { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; }
.features li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.88); }
.features .ico { color: var(--black); background: var(--yellow); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.map { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--black-700); border: 1px solid rgba(255,255,255,.1); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
.map__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.8); }
.map__link:hover { color: var(--yellow); }

.aside { position: sticky; top: 90px; background: var(--black-800); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 28px; }
.aside__label { font: 600 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aside__price { font-family: var(--display); font-stretch: 82%; font-weight: 700; font-size: 44px; line-height: 1; margin-top: 10px; color: var(--yellow); }
.aside__actions { display: grid; gap: 10px; margin-top: 24px; }
.aside__actions .btn { justify-content: center; }
.btn--ghost { background: transparent; color: #fff; outline: 1px solid rgba(255,255,255,.25); outline-offset: -1px; }
.btn--ghost:hover { outline-color: #fff; }
.aside form { display: grid; gap: 10px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.aside input, .aside textarea {
  font: 400 15px var(--body); color: #fff; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px; padding: 12px 14px; outline: 0; resize: vertical;
}
.aside input:focus, .aside textarea:focus { border-color: var(--yellow); }
.aside form .btn { justify-content: center; }

.similar { background: var(--black-800); border-top: 1px solid var(--line); padding: 96px 0 110px; }
.notfound { padding-block: 140px; text-align: center; }
.notfound p { color: var(--muted); margin: 16px 0 28px; }

/* =====================================================================
   Identidad: títulos en Italiana, logo en imagen y fondo de Contacto
   ===================================================================== */
/* ---------- Títulos en Italiana (una sola variante: sin negrita ni condensado) ---------- */
:is(
  .hero__title, .section-title, .card__title, .type__name, .stats b,
  .detail__title, .detail h2, .aside__price,
  .login__card h1, .adm-head h1, .panel h2, .confirm h3, .success h3
) {
  font-family: var(--title);
  font-weight: 400;
  font-stretch: normal;
  letter-spacing: 0;
}
.hero__title { font-size: clamp(54px, 9vw, 150px); line-height: 1.02; }
.section-title { line-height: 1.05; }
.card__title { font-size: clamp(30px, 2.3vw, 44px); line-height: 1.05; }
.stats b { font-size: 60px; }
/* El "+" de Italiana es muy fino y raro: se usa el de Figtree */
.stats__plus { font-family: var(--body); font-style: normal; font-weight: 400; font-size: .72em; vertical-align: .1em; margin-right: .06em; }

/* ---------- Logo: imagen en vez del "CP" de texto ---------- */
.logo__mark {
  width: 40px; height: 40px; padding: 0; border-radius: 6px; font-size: 0; color: transparent;
  background: var(--yellow) url("/assets/logo-cp.webp") center / cover no-repeat;
}
.logo__text {
  font-family: var(--title); font-size: 15px; letter-spacing: .14em; font-weight: 400;
}
.logo__text b { font-weight: 400; }

/* ---------- Contacto: ilustración de fondo con el contenido encima ---------- */
.contact {
  position: relative; isolation: isolate; border-top: 0;
  background: var(--black) url("/assets/contact.webp") center / cover no-repeat;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--black-rgb), .86) 0%, rgba(var(--black-rgb), .6) 55%, rgba(var(--black-rgb), .8) 100%);
}
.contact__form input,
.contact__form textarea {
  background: rgba(var(--black-rgb), .55); backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  .contact::before { background: rgba(var(--black-rgb), .8); }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__title, .hero__bottom { margin-left: 0; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open { background: var(--black); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 62px; left: 0; right: 0;
    background: var(--black); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .hero__top { top: 86px; left: var(--gutter); right: var(--gutter); flex-wrap: wrap; gap: 12px; }
  .hero__bottom { margin-top: 36px; flex-direction: column; align-items: flex-start; }
  .searchbar { flex-direction: column; }
  .field { border-right: 0; border-bottom: 1px solid #e8e6df; min-width: 0; }
  .field--grow { border-bottom: 0; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .dock { top: auto; bottom: 16px; right: 16px; transform: none; width: auto; flex-direction: row; }
  .dock__item { padding: 10px 14px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.08); }
  .dock__item span { display: none; }
  .dock__item--wa { border-radius: 8px 0 0 8px; }
  #callBtn { border-radius: 0 8px 8px 0; }
  button.dock__item { width: auto; border-top: 0; }
  .dock__panel { right: 0; bottom: calc(100% + 10px); width: min(290px, calc(100vw - 32px)); }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type { height: 160px; padding: 16px; }
  .type__name { font-size: 22px; }
  .card__badge { top: 22px; left: 22px; }
  .card__next { right: 12px; width: 40px; height: 40px; }
  .card__body { left: 22px; right: 22px; }
  .stats { grid-template-columns: 1fr; }
  .stats b { font-size: 44px; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .detail { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .dock.is-hidden { translate: 0 24px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; overflow-x: auto; contain: none; padding: 0 0 4px; }
  .gallery__thumbs button { width: 96px; }
}
@media (max-width: 640px) {
  .filters { grid-template-columns: 1fr; }
  .gallery__main { aspect-ratio: 4 / 3; }
  .map { aspect-ratio: 4 / 3; }
  .hero__thumb { width: 52px; height: 38px; }
}
/* =====================================================================
   Ajustes responsive (revisión en 320, 375, 768, 1024, 1366 y 1920 px)
   ===================================================================== */
/* Textos largos sin espacios (mails, links) nunca ensanchan la página */
.contact__info, .footer__contact, .detail__desc, .detail__addr, .card__addr { overflow-wrap: anywhere; }
.contact__grid > *, .about__grid > *, .footer__inner > *, .detail > * { min-width: 0; }

/* Nombres largos: la tarjeta muestra como máximo 3 líneas */
.card__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .06em; }

/* Galería de la ficha: nunca más alta que la pantalla (en notebooks se ve el título sin bajar) */
.gallery__main { max-height: max(300px, calc(100vh - 330px)); max-height: max(300px, calc(100svh - 330px)); }

/* Áreas táctiles cómodas (mínimo ~40 px) */
.nav__burger { width: 44px; height: 44px; }
.field span { font-size: 12px; }
.field select, .field input { min-height: 40px; padding: 8px 0; }
.phones__num { padding-block: 6px; }
.map__link { padding-block: 8px; }

@media (max-width: 1100px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .footer__col { gap: 2px; }
  .footer__col a { padding-block: 8px; }
  .footer__contact { gap: 0; }
  /* el área táctil va en el link, no en la fila */
  .footer__contact li > a, .contact__info li > a { padding-block: 10px; }
  .footer__contact span a, .contact__info span a { display: inline-block; padding-block: 10px; }
  .footer__contact li > .ico { margin-top: 10px; }
  .contact__info { gap: 0; }
  .crumbs { gap: 0 8px; padding-block: 16px 12px; }
  .crumbs a { padding-block: 10px; }
  .link-u, .hero__rating { display: inline-block; padding-block: 10px; }
}
@media (max-width: 640px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:last-child:nth-child(odd) { grid-column: 1 / -1; } /* sin hueco gris si la cantidad es impar */
  .card { aspect-ratio: 4 / 5; }          /* un poco más bajas: menos scroll en el listado */
  .card__title { font-size: 30px; }
}
@media (max-width: 400px) {
  .nav__inner { gap: 12px; }
  .logo__text { font-size: 12.5px; letter-spacing: .08em; }
}

/* =====================================================================
   Contacto y WhatsApp (clarify + adapt)
   ===================================================================== */
/* Formulario de consulta: etiquetas visibles, teléfono obligatorio, email opcional */
.cform { display: grid; gap: 16px; }
.cform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__field { display: grid; gap: 6px; }
.cform__label { font: 600 14px var(--body); color: #fff; letter-spacing: .01em; }
.cform__opt { font-weight: 400; color: var(--muted); }
.cform input, .cform textarea {
  width: 100%; font: 400 16px var(--body); color: #fff; caret-color: var(--yellow);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); border-radius: 6px;
  padding: 13px 14px; outline: 0; resize: vertical; transition: border-color .2s, box-shadow .2s, background .2s;
}
.cform input::placeholder, .cform textarea::placeholder { color: rgba(255,255,255,.58); }
.cform input:focus-visible, .cform textarea:focus-visible { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(var(--yellow-rgb), .28); background: rgba(255,255,255,.09); }
.cform__hint { font-size: 13px; color: var(--muted); }
.cform__error { font-size: 13px; color: #ffa594; }
.cform [aria-invalid="true"] { border-color: #ffa594; }
.cform__submit { justify-self: start; margin-top: 4px; }
.cform__msg { min-height: 1.4em; font-size: 15px; line-height: 1.5; }
.cform__msg.is-ok { color: var(--yellow); }
.cform__msg.is-error { color: #ffc2b6; }
.cform__msg a { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.contact .cform input, .contact .cform textarea { background: rgba(var(--black-rgb), .55); backdrop-filter: blur(6px); }

.contact__wa { margin-top: 28px; }
.aside__form { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.aside__form .aside__label { margin-bottom: 14px; }
.aside .cform { margin: 0; padding: 0; border: 0; gap: 14px; }
.aside .cform__submit { justify-self: stretch; justify-content: center; }

/* WhatsApp dentro del menú del celular */
.nav__wa-mobile { display: none; }

/* Botón flotante de WhatsApp (solo celular, aparece después del hero) */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 56px; height: 56px; border-radius: 50%;
  display: none; place-items: center; background: var(--yellow); color: var(--black);
  box-shadow: 0 8px 24px rgba(0,0,0,.35); opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity .3s ease, translate .3s cubic-bezier(.16, 1, .3, 1), background .2s;
}
.wa-fab .ico { width: 26px; height: 26px; }
.wa-fab.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.wa-fab:active { background: var(--yellow-600); }

/* Botón secundario del hero: WhatsApp con borde, cómodo para el pulgar */
.hero__wa { gap: 10px; }

@media (max-width: 900px) {
  /* En celular el único WhatsApp es el botón del hero (más el flotante al bajar):
     sin menú rápido (WhatsApp/Oficina/Llamar), sin botón en el menú y sin botón en Contacto */
  .dock, .contact__wa { display: none !important; }
  .wa-fab { display: grid; }
  .footer { padding-bottom: 96px; } /* el botón flotante no tapa el pie */
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 220px; justify-content: center; }
  .hero__content { padding-bottom: 48px; }
  /* En celular la pastilla y las miniaturas van en el flujo, arriba del título: nunca lo tapan */
  .hero { flex-direction: column; }
  .hero__top { position: relative; top: auto; left: auto; right: auto; margin: 86px var(--gutter) 0; }
  .hero__content { flex: 1; padding-top: 32px; }
}

/* =====================================================================
   Hero: presentación de la marca y flecha para bajar
   ===================================================================== */
/* Primera imagen del carrusel: la imagen de la marca (logo centrado sobre el marrón con textura, sin las frases).
   En esa imagen se oculta solo el título; las reseñas y los botones quedan. */
.hero__brand {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #302721 url("/assets/hero-cp-fondo.webp") center / cover no-repeat; /* el marrón con textura de la imagen original */
  opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s;
}
.hero.is-brand .hero__brand { opacity: 1; visibility: visible; }
.hero__brand-logo { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: clamp(220px, 24vw, 460px); height: auto; }
@media (max-width: 900px) { .hero__brand-logo { width: min(62vw, 300px); top: 40%; } }
/* Sobre el fondo de la marca no hace falta oscurecer: queda el marrón tal cual */
.hero__veil { transition: opacity 1.2s ease; }
.hero.is-brand .hero__veil { opacity: 0; }
.hero__title { transition: opacity .7s ease, visibility .7s; }
.hero.is-brand .hero__title { opacity: 0; visibility: hidden; }
/* En la imagen de la marca no hay propiedad: sin píldora */
.hero__pill { transition: opacity .7s ease, visibility .7s; }
.hero.is-brand .hero__pill { opacity: 0; visibility: hidden; }
.hero__thumb--brand { background: #302721; }
.hero__thumb--brand img { object-fit: contain; padding: 4px; }

/* Flechas para bajar: tres flechas una al lado de la otra, apuntando hacia abajo, que bajan y suben juntas.
   Sin círculo ni puntas redondeadas */
.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; z-index: 3; transform: translateX(-50%); padding: 8px 6px;
  display: flex; align-items: flex-start; gap: 14px; color: #fff;
  transition: opacity .3s;
}
.hero__scroll svg { display: block; width: 24px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: butt; stroke-linejoin: miter; animation: heroArrow 1.8s ease-in-out infinite; }
.hero__scroll:hover { color: var(--yellow); }
.hero__scroll.is-gone { opacity: 0; pointer-events: none; }
@keyframes heroArrow {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(7px); opacity: 1; }
}
.hero__content { padding-bottom: 96px; }
@media (max-width: 900px) {
  .hero__content { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll svg { animation: none; opacity: .9; }
}

/* =====================================================================
   Tarjetas (typeset + layout)
   ===================================================================== */
/* El nombre en Figtree: firme sobre cualquier foto. Italiana queda para títulos de sección y fichas. */
.card .card__title {
  font-family: var(--body); font-weight: 600; font-stretch: normal;
  font-size: clamp(21px, 1.55vw, 26px); line-height: 1.22; letter-spacing: -.012em;
  text-shadow: 0 1px 14px rgba(var(--black-rgb), .45);
}
/* La flecha (centrada a la derecha) nunca pisa el nombre */
.card:has(.card__next) .card__title { padding-right: 52px; }
.card__addr { margin-top: 10px; }
@media (max-width: 640px) {
  .card .card__title { font-size: 22px; }
}

/* =====================================================================
   Polish
   ===================================================================== */
::selection { background: var(--yellow); color: var(--black); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.btn:focus-visible { outline-offset: 3px; }
.field:focus-within { box-shadow: inset 0 -2px 0 var(--yellow); }
.field select:focus-visible, .field input:focus-visible { outline: 0; }
.field span { color: #66645c; } /* 5.9:1 sobre blanco (antes 4.4:1) */
.type { background: var(--black-700); } /* mientras carga la foto, el texto blanco sigue legible */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
