/* Rolón y Asociados — estilos del sitio (paleta real de marca: naranja + tinta + azul acento) */

:root {
  --orange: #ea5b0c;
  --orange-dark: #c94a08;
  --orange-darker: #a83d08;
  --orange-light: #ff9a5c;
  --orange-tint: #fdece0;
  --ink: #1d1d1d;
  --accent-blue: #505d92;
  --bg: #f9f8f7;
  --surface: #ffffff;
  --text: #262626;
  --muted: #6b6b6b;
  --border: #ececec;
  --success: #1f9d55;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(29, 29, 29, 0.08);
  --shadow-lg: 0 12px 32px rgba(29, 29, 29, 0.16);
  --max-width: 1700px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg) url('/assets/img/pattern-light.svg') repeat;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(94%, var(--max-width));
  margin: 0 auto;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
}

.section { padding: 64px 0; }
.section--alt { background: var(--surface); }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-tag::after { content: ''; display: inline-block; width: 40px; height: 2px; background: var(--orange); }
.section-head .section-tag::before { content: ''; display: inline-block; width: 40px; height: 2px; background: var(--orange); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.text-accent { color: var(--orange); }
.section-head p { color: var(--muted); }
.section-head--row {
  text-align: left; max-width: none; margin: 0 0 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.section-head--row h2 { margin: 0; }
.section-head__link { color: var(--orange-dark); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.section-head__link:hover { color: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(234,91,12,.35); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--outline { border-color: #fff; color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--outline-orange { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn--outline-orange:hover { background: var(--orange); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--on-orange { background: #fff; color: var(--orange-dark); }
.btn--on-orange:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1ebc59; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(10px, 1.5vw, 12px) clamp(14px, 3vw, 20px);
  width: min(94%, var(--max-width));
  margin: 0 auto;
  gap: clamp(8px, 2vw, 16px);
}
.brand { display: flex; align-items: center; gap: clamp(6px, 1.5vw, 10px); color: var(--ink); font-size: clamp(0.9rem, 1.6vw, 1.15rem); min-width: 0; }
.brand__logo { width: clamp(32px, 4vw, 42px); height: clamp(32px, 4vw, 42px); flex-shrink: 0; object-fit: contain; }
.brand span { font-family: "Playfair Display", serif; font-weight: 700; }
@media (min-width: 1101px) { .brand { flex-shrink: 0; } .brand span { white-space: nowrap; } }
.brand small { display: block; font-family: "Poppins", sans-serif; font-weight: 500; font-size: .66rem; color: var(--muted); letter-spacing: .01em; }
@media (min-width: 1101px) and (max-width: 1279px) { .brand small { display: none; } }

.main-nav { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 28px); flex-wrap: nowrap; }
.main-nav a { font-weight: 600; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; font-size: clamp(0.85rem, 1.3vw, 1rem); white-space: nowrap; }
.main-nav a:hover, .main-nav a.is-active { border-color: var(--orange); color: var(--orange-dark); }

.header-actions { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 14px); flex-shrink: 0; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  width: 40px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 8px; font-size: .7rem; line-height: 1; font-weight: 700; color: var(--muted); border: 1px solid var(--border);
}
.lang-switch .lang-flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: block; }
.lang-switch a.is-active { background: var(--orange); color: #fff; border-color: var(--orange); }

.nav-toggle { display: none; background: none; border: none; padding: 6px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

.main-nav__lang { display: none; }

/* Hero — full-bleed, altura y espaciado fluidos (sin breakpoints fijos) */
.hero {
  width: 100%;
  background:
    linear-gradient(120deg, rgba(179,62,4,.72), rgba(234,91,12,.6) 45%, rgba(234,91,12,.35) 75%, rgba(29,29,29,.62)),
    url('/assets/img/hero-oficina.jpg') center/cover no-repeat;
  color: #fff;
  padding-block: clamp(2.25rem, 5vw + 1rem, 6rem) clamp(3.5rem, 9vw + 1rem, 8.5rem);
  display: flex;
  align-items: center;
  min-height: clamp(360px, 52vh, 660px);
}
.hero__inner { max-width: 720px; width: 100%; }
.hero .section-tag { color: #fff; opacity: .9; }
.hero .section-tag::after { background: #fff; }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 1rem + 3vw, 2.6rem); }
.hero p { color: rgba(255,255,255,.9); font-size: clamp(0.92rem, 0.8rem + 0.5vw, 1.05rem); max-width: 560px; }
.hero__actions { display: flex; gap: clamp(10px, 2vw, 14px); margin-top: clamp(16px, 3vw, 22px); flex-wrap: wrap; }

.search-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(14px, 2.5vw, 22px);
  margin-top: clamp(-32px, -6vw, -70px);
  position: relative;
  z-index: 5;
}
.field label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.field select, .field input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .92rem; color: var(--text); background: #fff;
}
.field select:focus, .field input:focus { outline: 2px solid var(--orange-light); border-color: var(--orange); }

/* Buscador estilo portal inmobiliario: pestañas + búsqueda + filtros.
   Todo se reacomoda por sí solo (flex-wrap + tamaños con clamp), sin un
   breakpoint que fuerce un salto brusco a "modo mobile". */
.search-tabs { display: flex; gap: clamp(6px, 1vw, 8px); margin-bottom: clamp(10px, 2vw, 16px); flex-wrap: wrap; }
.search-tab { cursor: pointer; }
.search-tab input { position: absolute; opacity: 0; pointer-events: none; }
.search-tab span {
  display: flex; align-items: center; gap: clamp(5px, 1vw, 8px);
  padding: clamp(8px, 1.4vw, 11px) clamp(12px, 2.5vw, 20px); border-radius: 10px;
  background: var(--bg); color: var(--muted); font-weight: 700; font-size: clamp(0.8rem, 0.7rem + 0.4vw, 0.92rem);
  border: 1px solid var(--border); transition: background .15s ease, color .15s ease; white-space: nowrap;
}
.search-tab input:checked + span { background: var(--orange); color: #fff; border-color: var(--orange); }
.search-tab input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.search-row { display: flex; flex-wrap: wrap; gap: clamp(8px, 1.5vw, 12px); margin-bottom: clamp(8px, 1.5vw, 12px); }
.search-row:last-child { margin-bottom: 0; }
.search-row--main input {
  flex: 1 1 200px; min-width: 0; padding: clamp(10px, 1.8vw, 13px) clamp(12px, 2vw, 16px);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1rem); font-family: inherit; color: var(--text); background: #fff;
}
.search-row--main input:focus { outline: 2px solid var(--orange-light); border-color: var(--orange); }
.search-submit-btn {
  display: flex; align-items: center; justify-content: center;
  width: clamp(42px, 5vw, 50px); flex-shrink: 0;
  background: var(--orange); color: #fff; border: none; border-radius: 8px;
  transition: background .15s ease;
}
.search-submit-btn:hover { background: var(--orange-dark); }
.search-row--filters select {
  flex: 1 1 150px; min-width: min(140px, 100%);
  padding: clamp(8px, 1.4vw, 11px) clamp(10px, 1.8vw, 12px); border: 1px solid var(--border); border-radius: 8px;
  font-size: clamp(0.82rem, 0.75rem + 0.3vw, 0.9rem); font-family: inherit; color: var(--text); background: #fff;
}
.search-row--filters select:focus { outline: 2px solid var(--orange-light); border-color: var(--orange); }

/* Banner de experiencia VR / Tours 360° (inicio) */
.vr-section { padding-block: clamp(1rem, 3vw, 2rem); }
.vr-head { margin-bottom: 32px; }
.vr-banner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch;
  gap: clamp(24px, 4vw, 56px);
}
.vr-banner__content { padding: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.vr-banner h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); line-height: 1.25; font-weight: 800; color: #1F2937; margin: 0 0 14px; max-width: 14ch; }
.vr-banner__content > p { font-size: clamp(.92rem, .85rem + .3vw, 1.02rem); line-height: 1.6; color: #4B5563; margin: 0 0 24px; max-width: 46ch; }

.vr-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.vr-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; align-content: flex-start; }
.vr-steps__num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.vr-steps__icon { color: var(--orange); display: inline-flex; }
.vr-steps__icon svg { width: 26px; height: 26px; }
.vr-steps strong { flex-basis: 100%; font-size: 1.08rem; line-height: 1.25; color: #1F2937; margin-top: 4px; }
.vr-steps small { flex-basis: 100%; font-size: .92rem; line-height: 1.45; color: var(--muted); }

.vr-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.vr-banner__media { position: relative; min-height: 500px; border-radius: 24px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.vr-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; display: block; }
.vr-banner__badge {
  position: absolute; z-index: 2; right: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(20,20,20,.62); color: #fff; padding: 12px 18px; border-radius: 14px; backdrop-filter: blur(6px);
}
.vr-banner__badge strong { font-size: 1.5rem; line-height: 1; }
.vr-banner__badge small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }

@media (max-width: 900px) {
  .vr-banner { grid-template-columns: 1fr; }
  .vr-banner__media { order: -1; min-height: 320px; }
  .vr-banner h2 { max-width: none; }
}
@media (max-width: 600px) {
  .vr-steps { grid-template-columns: 1fr; }
  .vr-steps li { flex-wrap: nowrap; }
  .vr-steps li strong, .vr-steps li small { flex-basis: auto; }
  .vr-steps li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; }
  .vr-steps strong { grid-column: 3; margin: 0; }
  .vr-steps small { grid-column: 3; }
  .vr-banner__actions .btn { width: 100%; }
}

/* Categorías — usa el mismo .container global que el resto de la página */
.section--categories { padding: clamp(2rem, 4vw, 3rem) 0; }
.category-head { text-align: center; max-width: 560px; margin: 0 auto clamp(28px, 4vw, 32px); }
.category-head__eyebrow {
  display: block; color: var(--orange-dark); font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.category-head__title { font-weight: 800; font-size: clamp(1.4rem, 1vw + 1.15rem, 1.9rem); color: var(--ink); margin: 0 0 10px; }
.category-head__subtitle { color: var(--muted); font-size: .95rem; margin: 0; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.category-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 1.5vw, 16px);
  width: 100%; min-width: 0; height: clamp(200px, 16vw, 240px);
  border-radius: var(--radius); color: #fff; font-weight: 700; font-size: clamp(1.1rem, 0.5vw + 0.95rem, 1.25rem);
  background-image: url('/assets/img/pattern-white.svg');
  background-size: 320px; background-blend-mode: overlay; background-color: var(--orange);
  transition: transform .2s ease, box-shadow .2s ease; box-shadow: var(--shadow);
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-tile img { width: clamp(68px, 6vw, 88px); height: auto; }

/* Property cards */
/* Ancho fijo (no 1fr): con pocos resultados las tarjetas no deben estirarse para
   ocupar todo el ancho disponible, se quedan en ~320px y listo. */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 320px));
  gap: 24px;
  margin-top: 10px;
}
.property-card { width: 100%; min-width: 0; }
/* La página de listado tiene sidebar de filtros: su columna de contenido es más angosta
   que las secciones a todo lo ancho del home, así que usa un mínimo de tarjeta más chico. */
.listing-layout .property-grid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 320px)); }
/* Mobile: una sola columna centrada respecto a la pantalla (antes quedaba pegada a la izquierda). */
@media (max-width: 767px) {
  .property-grid, .listing-layout .property-grid { grid-template-columns: minmax(0, 420px); justify-content: center; }
}

/* Carrusel de propiedades destacadas: 5 tarjetas visibles en desktop, con flechas de navegación */
.carousel { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.carousel__arrow {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.carousel__arrow:hover { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: var(--shadow-lg); }
.carousel__arrow:disabled { opacity: .35; pointer-events: none; }
.carousel__track {
  flex: 1; min-width: 0; display: flex; gap: 24px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track .property-card { flex: 0 0 calc((100% - 4 * 24px) / 5); min-width: 0; scroll-snap-align: start; }

@media (max-width: 1599px) { .carousel__track .property-card { flex-basis: calc((100% - 3 * 24px) / 4); } }
@media (max-width: 1199px) { .carousel__track .property-card { flex-basis: calc((100% - 2 * 24px) / 3); } }
@media (max-width: 899px)  { .carousel__track .property-card { flex-basis: calc((100% - 1 * 24px) / 2); } }
@media (max-width: 599px)  {
  .carousel__track .property-card { flex-basis: 100%; }
  .carousel__arrow { width: 40px; height: 40px; }
}
.property-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-card__img { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, #dfe6ef, #c7d2e0); overflow: hidden; }
.property-card__img img { width: 100%; height: 100%; object-fit: cover; }
.property-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}
.property-card__badge--status { left: auto; right: 12px; background: var(--ink); }
.property-card__badge--tour {
  top: auto; bottom: 12px; left: 12px;
  background: rgba(29,29,29,.82); display: inline-flex; align-items: center; gap: 5px;
}
.property-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.property-card__price { color: var(--orange-dark); font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; }
.property-card__title { font-size: 1rem; margin-bottom: 6px; }
.property-card__loc { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.property-card__meta { display: flex; gap: 14px; color: var(--muted); font-size: .82rem; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.property-card__meta span { display: flex; align-items: center; gap: 5px; }
.property-card__cta { margin-top: 14px; }

.section-foot { text-align: center; margin-top: 40px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
  background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 2.5vw, 28px);
  box-shadow: var(--shadow); text-align: left;
}
.service-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.service-card__icon {
  flex-shrink: 0; width: clamp(48px, 5vw, 56px); height: clamp(48px, 5vw, 56px); border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(234,91,12,.3);
}
.service-card__icon img { width: 60%; height: 60%; object-fit: contain; }
.service-card h3 { font-size: 1.05rem; margin: 0; }
.service-card p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--orange-dark); font-weight: 700; font-size: .9rem;
  transition: gap .15s ease;
}
.service-card__link:hover { gap: 10px; }

/* Servicios en el inicio: texto a la izquierda, 6 tarjetas chicas a la derecha. */
.services-home__layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.services-home__intro { display: flex; flex-direction: column; align-items: flex-start; }
.services-home__intro h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); line-height: 1.15; font-weight: 800; color: #1F2937; margin: 0 0 14px; }
.services-home__intro p { color: #4B5563; font-size: clamp(.92rem, .85rem + .3vw, 1.02rem); line-height: 1.6; margin: 0 0 24px; max-width: 42ch; }
.services-home__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.services-home__card {
  background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 14px; padding: 20px 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}
.svc-icon {
  display: block; width: 40px; height: 40px; margin-bottom: 12px; background: var(--orange);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.services-home__card h3 { font-size: 1.14rem; line-height: 1.3; margin: 0 0 6px; color: #1F2937; }
.services-home__card p { font-size: .92rem; line-height: 1.5; color: var(--muted); margin: 0; }
@media (max-width: 1100px) {
  /* Una columna: título y texto arriba, tarjetas y al final el botón. */
  .services-home__layout { display: flex; flex-direction: column; gap: 0; }
  .services-home__intro { display: contents; }
  .services-home__intro h2 { order: 1; }
  .services-home__intro p { order: 2; margin-bottom: 24px; }
  .services-home__grid { order: 3; }
  .services-home__intro .btn { order: 4; align-self: center; margin-top: 28px; }
}
@media (max-width: 600px) {
  .services-home__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .services-home__card { padding: 16px 14px; }
}

.services-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: clamp(28px, 4vw, 44px); border-radius: var(--radius); overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--ink) 0%, var(--orange-dark) 60%, var(--orange) 100%);
  padding: clamp(26px, 4vw, 44px) clamp(24px, 4vw, 48px);
}
.services-banner__content { flex: 1 1 320px; }
.services-banner__content h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); margin: 0; line-height: 1.3; color: #fff; }
.services-banner__content h3 span { color: #ffd7b3; }
.services-banner__tags { margin: 14px 0 0; font-size: .85rem; color: rgba(255,255,255,.8); }
.services-banner__trust { display: flex; gap: clamp(20px, 3vw, 36px); flex-wrap: wrap; }
.services-banner__trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; min-width: 76px; text-align: center; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.why-item { text-align: center; padding: 10px; }
.why-item__icon {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center;
}
.why-item h3 { font-size: 1.18rem; }
.why-item p { color: var(--muted); font-size: 1rem; }

.stats-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  background: linear-gradient(120deg, var(--orange-dark), var(--orange));
  color: #fff; border-radius: var(--radius); padding: 32px 20px; margin-top: 50px;
}
.stats-bar div { text-align: center; }
.stats-bar strong { display: block; font-size: 1.8rem; color: #fff; }
.stats-bar span { font-size: .82rem; color: rgba(255,255,255,.85); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.testimonial-card__stars { color: var(--orange); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card p { color: var(--text); font-style: italic; }
.testimonial-card__author { font-weight: 700; color: var(--ink); font-size: .9rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--orange-dark), var(--orange));
  color: #fff; border-radius: var(--radius); padding: 44px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 56px 0 24px; border-top: 5px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer a:hover { color: var(--orange-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand strong { color: #fff; font-family: "Playfair Display", serif; font-size: 1.15rem; }
.footer-links li { margin-bottom: 10px; font-size: .9rem; }
.footer-contact li { margin-bottom: 12px; font-size: .9rem; display: flex; gap: 8px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .75rem; color: #fff;
  transition: background .15s ease;
}
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .82rem; text-align: center; }

/* Filters + listing page */
.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters-card {
  background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  position: sticky; top: 90px;
}
.filters-card h3 { font-size: 1rem; margin-bottom: 16px; }
.filters-card .field { margin-bottom: 16px; }
.filters-card .field-hint { display: block; margin-top: 6px; font-size: .74rem; line-height: 1.35; color: var(--muted); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--muted); font-size: .92rem; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border); font-size: .88rem; font-weight: 600;
}
.pagination a:hover { border-color: var(--orange); color: var(--orange-dark); }
.pagination .is-active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Property detail */
.breadcrumb { color: var(--muted); font-size: 13px; line-height: 20px; margin-bottom: 16px; }
.property-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.property-header h1 { font-size: 34px; line-height: 42px; font-weight: 700; color: #1F2937; margin-bottom: 6px; }
.property-header__location { font-size: 15px; line-height: 22px; color: #6B7280; margin: 0; }
.property-header__price { font-size: 28px; line-height: 36px; font-weight: 700; color: #1F2937; white-space: nowrap; }

/* Bloque principal: galería de fotos (60%) + tarjeta de características (40%), exacto por spec.
   Con gap:32px, "3fr 2fr" reparte el ancho restante 60/40 (ej. en 1700px: 1002px / 32px / 666px). */
.property-hero { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; margin-bottom: 48px; align-items: start; }

.gallery-main { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: #dfe6ef; aspect-ratio: 4/3; height: auto; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main--placeholder img { object-fit: contain; padding: 40px; background: var(--bg); }
.gallery-main__badge {
  position: absolute; top: 16px; left: 16px; background: var(--orange); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .02em;
}
.gallery-main__counter {
  position: absolute; left: 16px; bottom: 16px; background: rgba(0,0,0,.65); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 8px 12px; border-radius: 8px;
}
.gallery-main__fullscreen {
  position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 8px;
  background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; transition: background .15s ease;
}
.gallery-main__fullscreen:hover { background: rgba(0,0,0,.75); }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1; box-shadow: var(--shadow); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }
.gallery__nav:hover { background: var(--orange); color: #fff; }

.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs__tile { position: relative; height: 110px; border-radius: 10px; overflow: hidden; background: #dfe6ef; cursor: pointer; }
.gallery-thumbs__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; text-align: center; line-height: 1.3;
}

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 999; display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox .gallery__nav { background: rgba(255,255,255,.16); color: #fff; }
.lightbox .gallery__nav:hover { background: var(--orange); }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; border: 0; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,.26); }
.lightbox__counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700;
  background: rgba(255,255,255,.14); padding: 6px 16px; border-radius: 999px; font-size: .85rem;
}

/* Tarjeta de características: ancho 100% de su columna, altura NATURAL (nunca igual a la galería). */
.property-hero__specs {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 22px 24px;
  box-sizing: border-box;
}
.property-hero__specs h3 { margin: 0 0 14px; font-size: 20px; line-height: 28px; font-weight: 700; color: #1F2937; }

.property-hero__specs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 8px; }
.property-hero__spec { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.property-hero__spec-icon {
  flex-shrink: 0; width: 34px; height: 34px; min-width: 34px; border-radius: 9px;
  background: rgba(241, 90, 36, 0.08); color: #F15A24;
  display: flex; align-items: center; justify-content: center;
}
.property-hero__spec-icon svg { width: 18px; height: 18px; }
.property-hero__spec-body { display: flex; flex-direction: column; }
.property-hero__spec-label { font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #6B7280; margin-bottom: 1px; }
.property-hero__spec-value { font-size: 15px; line-height: 20px; font-weight: 700; color: #1F2937; }

.property-hero__location {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.06);
}
.property-hero__location-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: rgba(241, 90, 36, 0.08); color: #F15A24;
  display: flex; align-items: center; justify-content: center;
}
.property-hero__location-text span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6B7280; margin-bottom: 3px; }
.property-hero__location-text strong { font-size: 15px; font-weight: 600; color: #1F2937; }

/* Descripción: ahora vive dentro de la tarjeta "Características principales". */
.property-hero__description { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.06); }
.property-hero__description h4 { font-size: 16px; font-weight: 700; color: #1F2937; margin: 0 0 10px; }
.property-hero__description p {
  font-size: 14px; line-height: 22px; color: #4B5563; margin: 0;
  max-height: 260px; overflow-y: auto; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.25) transparent;
}
.property-hero__description .benefit-grid { grid-template-columns: 1fr; margin-top: 16px; }

/* Dos columnas: galería y tarjeta miden siempre lo mismo. La descripción no empuja la tarjeta
   (aporta solo 160px al alto natural): usa el espacio que sobre y, si el texto es largo, se
   desplaza dentro. Si la tarjeta queda más alta que la galería, la foto principal se estira. */
@media (min-width: 768px) {
  .property-hero { align-items: stretch; }
  .property-hero__media { display: flex; flex-direction: column; min-width: 0; }
  .property-hero__media .gallery-main { flex: 1 1 auto; }
  .property-hero__specs { display: flex; flex-direction: column; }
  .property-hero__description { flex: 1 1 0; min-height: 160px; display: flex; flex-direction: column; }
  .property-hero__description p { flex: 1 1 0; min-height: 0; max-height: none; }
}

.property-hero__specs-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.property-hero__specs-actions .btn {
  width: 100%; height: 46px; border-radius: 23px;
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.property-hero__specs-actions .btn--whatsapp { background: #25D366; color: #fff; }

/* Página independiente de Tour Virtual: mismo card de Características, altura pareja con el tour. */
.tour-hero { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; margin-bottom: 48px; align-items: stretch; }
.tour-hero > * { min-width: 0; }
.tour-hero__media { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #000; min-height: 480px; }
.tour-hero__media iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }
.tour-hero .property-hero__specs { height: 100%; display: flex; flex-direction: column; }
.tour-hero .property-hero__specs-actions { margin-top: auto; padding-top: 20px; }

/* Debajo del bloque principal: Características + Ubicación (o Ubicación + formulario en tours) lado a lado, siempre visibles. */
.detail-tabs { margin-bottom: 24px; }

.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-columns--single { grid-template-columns: 1fr; }
.detail-columns .contact-card { position: static; height: 100%; box-sizing: border-box; }

.detail-card { background: #FFFFFF; border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; padding: 28px; box-sizing: border-box; }
.detail-card h2 { font-size: 24px; font-weight: 700; color: #1F2937; margin: 0 0 16px; }

.detail-tabs__tour-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16/9; }
.detail-tabs__tour-media iframe { width: 100%; height: 100%; border: 0; display: block; }

.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.benefit-card { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.benefit-card__icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: rgba(241, 90, 36, 0.08); color: #F15A24;
  display: flex; align-items: center; justify-content: center;
}
.benefit-card strong { font-size: .92rem; color: #1F2937; }

.feature-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.feature-checklist li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink); }
.feature-checklist li::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .68rem; font-weight: 700;
}

/* Mapa dentro de la tarjeta "Ubicación de la propiedad" (sin afectar el mapa de /contacto). */
#section-location .map-embed { margin-top: 0; border-radius: 12px; }
#section-location .map-embed iframe { height: 320px; }

.map-embed { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 16px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Cuando la tarjeta de Ubicación queda estirada por un vecino más alto (grid stretch),
   el mapa ocupa todo el alto disponible en vez de dejar espacio en blanco abajo. */
.detail-card--map { display: flex; flex-direction: column; }
.detail-card--map .map-embed { flex: 1; margin-top: 16px; }
.detail-card--map .map-embed iframe { height: 100%; min-height: 220px; }
.map-embed__btn {
  position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--ink); font-size: .8rem; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow); transition: background .15s ease, color .15s ease;
}
.map-embed__btn:hover { background: var(--orange); color: #fff; }

.contact-card {
  background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg);
  position: sticky; top: 90px;
}
.contact-card h3 { font-size: 1.05rem; }
.contact-card p { color: var(--muted); font-size: .88rem; }

.similar-section { margin-top: 72px; }
.similar-section .section-head--row h2 { font-size: 28px; font-weight: 700; }
.similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (min-width: 1600px) { .similar-grid { grid-template-columns: repeat(5, 1fr); } }

/* Forms */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: .95rem; font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; font-weight: 600; }
.form-alert--success { background: rgba(31,157,85,.12); color: var(--success); }
.form-alert--error { background: rgba(220,38,38,.1); color: #b91c1c; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; }

/* About / contact */
.about-hero {
  background:
    url('/assets/img/pattern-white.svg') repeat,
    linear-gradient(120deg, var(--orange-darker), var(--orange) 60%, var(--orange));
  color: #fff; padding: 56px 0; text-align: center;
}
.about-hero h1 { color: #fff; }
.about-hero p { color: rgba(255,255,255,.9); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.contact-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
.contact-photo img { width: 100%; height: auto; display: block; }
.contact-info li { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-info li strong { display: block; color: var(--ink); }
.contact-info li span { color: var(--muted); font-size: .92rem; }

.icon {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--accent-blue);
}

/* 404 */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 3rem; }

/* Responsive */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .listing-layout { grid-template-columns: 1fr; }
  .filters-card { position: static; }
  .contact-card { position: static; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

/* El menú horizontal necesita esto de ancho mínimo; por debajo, colapsa a hamburguesa
   para evitar que el header se desborde (antes ocurría entre 720-980px). */
@media (max-width: 1100px) {
  .site-header__bar { justify-content: flex-start; }
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--surface); flex-direction: column; padding: 24px; gap: 4px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; gap: 8px; }
  /* En mobile el selector de idioma vive dentro del menú, no en la barra (evita amontonar). */
  .header-actions .lang-switch { display: none; }
  .main-nav__lang { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
  .main-nav__lang a {
    width: 68px; padding: 10px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    border-radius: 10px; font-size: .85rem; font-weight: 700; color: var(--muted); border: 1px solid var(--border);
  }
  .main-nav__lang .lang-flag { width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: block; }
  .main-nav__lang a.is-active { background: var(--orange); color: #fff; border-color: var(--orange); }
}

@media (max-width: 480px) {
  .brand small { display: none; }
  .brand span { font-size: .95rem; }
  .btn--whatsapp.btn--sm { padding: 8px 14px; font-size: .8rem; }
}

@media (max-width: 720px) {
  .category-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Ficha de propiedad: breakpoints exactos por spec (1200 / 768 / 480). */
@media (max-width: 1199px) and (min-width: 768px) {
  .property-hero { grid-template-columns: 55fr 45fr; gap: 24px; }
  .tour-hero { grid-template-columns: 55fr 45fr; gap: 24px; }
}
@media (max-width: 767px) {
  .property-hero { grid-template-columns: 1fr; }
  .detail-columns { grid-template-columns: 1fr; }
  .tour-hero { grid-template-columns: 1fr; }
  .tour-hero__media { min-height: 240px; }
  .tour-hero__media iframe { min-height: 240px; }
}
@media (max-width: 479px) {
  .property-hero__specs-grid { grid-template-columns: 1fr; }
  .feature-checklist { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 4/3; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .similar-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) and (min-width: 480px) {
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1199px) and (min-width: 768px) {
  .similar-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Cuestionario "¿En qué podemos ayudarte?" */

.quiz-layout { display: grid; grid-template-columns: 55% 45%; gap: 40px; align-items: stretch; aspect-ratio: 1047 / 370; }
.quiz-layout__main { min-width: 0; display: flex; flex-direction: column; }
.quiz-layout__media { border-radius: 20px; overflow: hidden; min-height: 320px; }
.quiz-layout__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Barra de progreso, arriba */
.quiz-progress-top[hidden] { display: none; }
.quiz-progress-top { flex: none; margin-bottom: 24px; }
.quiz-progress-top__label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: 8px; }
.quiz-progress-bar { height: 5px; border-radius: 999px; background: var(--border); overflow: hidden; }
.quiz-progress-bar span { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width .3s ease; width: 0; }

/* Navegación, siempre pegada abajo */
.quiz-nav-bottom[hidden] { display: none; }
.quiz-nav-bottom { flex: none; display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.quiz-nav__link { background: none; border: none; color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; padding: 4px 0; transition: color .15s; }
.quiz-nav__link:hover { color: var(--orange-dark); }

/* El escenario de preguntas ocupa todo el espacio entre el progreso y la navegación */
.quiz-stage { flex: 1; display: flex; flex-direction: column; position: relative; }
.quiz-step { display: none; }
.quiz-step.is-active { display: flex; flex-direction: column; flex: 1; animation: quiz-fade .3s ease; }
@keyframes quiz-fade { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.quiz-step h2 { font-size: 1.3rem; margin: 0 0 22px; color: var(--ink); text-align: left; flex: none; }

/* Tarjetas iniciales: 2 columnas, filas parejas que llenan el alto disponible.
   Ícono a la izquierda y texto (título + descripción) a la derecha, para aprovechar
   bien el poco alto disponible sin perder la descripción de cada opción. */
.quiz-cards { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 10px; }
.quiz-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px;
  text-align: left; cursor: pointer; display: flex; flex-direction: row; align-items: center; gap: 10px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden;
}
.quiz-card:hover { transform: translateY(-3px) scale(1.015); box-shadow: var(--shadow-lg); border-color: var(--orange-light); }
.quiz-card__icon { flex: none; margin-bottom: 0; }
.quiz-card__icon .svc-icon { width: 30px; height: 30px; }
.quiz-card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.quiz-card__title { display: block; font-weight: 700; font-size: 1.03rem; color: var(--ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quiz-card__desc { font-size: .94rem; color: var(--muted); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Opciones de pregunta: se ubican naturalmente arriba del bloque, sin estirarse */
.quiz-options { flex: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.quiz-options--grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.quiz-option {
  text-align: left; padding: 14px 18px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface); font-size: .96rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.quiz-option:hover { border-color: var(--orange-light); background: var(--orange-tint); transform: scale(1.01); }
.quiz-option.is-selected { border-color: var(--orange); background: var(--orange-tint); color: var(--orange-dark); }

.quiz-thanks h2 { margin-bottom: 10px; }
.quiz-thanks p { color: var(--muted); margin-bottom: 22px; }

/* Resultados */
.quiz-results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 12px; }
.quiz-result-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.quiz-result-card__img { display: block; aspect-ratio: 4/3; overflow: hidden; }
.quiz-result-card__img img { width: 100%; height: 100%; object-fit: cover; }
.quiz-result-card__body { padding: 14px 16px; }
.quiz-result-card__op { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--orange-dark); background: var(--orange-tint); padding: 2px 9px; border-radius: 999px; margin-bottom: 8px; }
.quiz-result-card__price { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.quiz-result-card__title { font-size: .92rem; font-weight: 600; margin: 4px 0; color: var(--ink); }
.quiz-result-card__loc { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.quiz-result-card__meta { display: flex; gap: 10px; font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.quiz-result-card__actions { display: flex; gap: 8px; }
.quiz-result-card__actions a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 9px; font-size: .8rem; font-weight: 700; }
.quiz-result-card__actions a.quiz-result-card__view { background: var(--ink); color: #fff; }
.quiz-result-card__actions a.quiz-result-card__wa { background: #25D366; color: #fff; }
.quiz-results-empty { text-align: center; color: var(--muted); padding: 20px 0; }
.quiz-results-cta { margin-top: 24px; }
.quiz-results-cta p { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.quiz-results-view-all { display: block; margin-top: 12px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.quiz-results-view-all:hover { color: var(--orange-dark); }

@media (max-width: 1100px) and (min-width: 768px) {
  .quiz-layout { grid-template-columns: 58% 42%; gap: 24px; }
}
@media (max-width: 767px) {
  .quiz-layout { grid-template-columns: 1fr; gap: 24px; aspect-ratio: auto; }
  .quiz-layout__media { min-height: 200px; max-height: 220px; order: 2; }
  .quiz-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .quiz-card { padding: 18px 14px; }
  .quiz-card__title { white-space: normal; overflow: visible; text-overflow: clip; }
  .quiz-card__desc { -webkit-line-clamp: 3; }
  .quiz-options--grid { grid-template-columns: 1fr; }
  .quiz-results-grid { grid-template-columns: 1fr; }
}

/* Cuerpo de un artículo del blog: fluye toda la altura que necesite, sin scroll interno. */
.blog-article__body {
  margin-top: 8px; background: var(--surface); border-radius: 16px;
  padding: 28px 32px; box-shadow: var(--shadow);
}
@media (max-width: 479px) {
  .blog-article__body { padding: 20px; }
}
.blog-article__body p { font-size: 1rem; line-height: 1.75; color: #374151; margin: 0 0 20px; }
.blog-article__body h2 { font-size: 1.3rem; line-height: 1.35; color: #1F2937; margin: 32px 0 14px; }
.blog-article__body h2:first-child { margin-top: 0; }
.blog-article__body ul { list-style: disc; margin: 0 0 20px; padding-left: 22px; }
.blog-article__body li { font-size: 1rem; line-height: 1.7; color: #374151; margin-bottom: 6px; }
.blog-article__body > *:last-child { margin-bottom: 0; }
.blog-article__body strong { color: #1F2937; font-weight: 700; }
.blog-article__body a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }
.blog-article__body a:hover { color: var(--orange); }

/* Redes sociales (inicio): videos de YouTube con carga al hacer clic + grilla de posts de Instagram */
.social-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.social-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.social-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.social-video__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.social-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.social-video__play:hover img { transform: scale(1.04); }
.social-video__icon { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.social-video__caption { margin: 10px 4px 0; font-weight: 600; color: var(--ink); font-size: .95rem; }
.social-subtitle { text-align: center; font-size: 1.3rem; margin: 48px 0 20px; }
.social-posts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.social-post { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; display: block; background: var(--border); }
.social-post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.social-post:hover img { transform: scale(1.06); }
.social-post__badge { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.social-post__badge svg { width: 16px; height: 16px; }
.social-post__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font-size: .8rem; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,.7)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) {
  .social-videos { grid-template-columns: 1fr; }
  .social-posts { grid-template-columns: repeat(3, 1fr); }
}
