/* Global RD Properties — tema de marca v2.
   Moderno y práctico: blanco, grises fríos, azul marino y dorado plano; Inter en todo.
   Móvil primero y con aire de app: cabecera de cristal, barra de pestañas inferior, hojas deslizables y carruseles. */

/* ══ Tokens ══════════════════════════════════════════════════════════════ */
.gr {
  --gr-navy: var(--w-primary, #0b1b38);
  --gr-navy-deep: color-mix(in srgb, var(--gr-navy) 62%, #000);
  --gr-navy-soft: color-mix(in srgb, var(--gr-navy) 86%, #fff);
  --gr-gold: var(--w-accent, #c19a4b);
  --gr-gold-hi: color-mix(in srgb, var(--gr-gold) 58%, #fff);
  --gr-gold-lo: color-mix(in srgb, var(--gr-gold) 68%, #000);
  --gr-bg: var(--w-bg, #ffffff);
  --gr-cream: var(--w-surface, #f4f6f9);
  --gr-ink: var(--w-text, #111a2e);
  --gr-muted: var(--w-muted, #626b7f);
  --gr-line: var(--w-border, #e4e7ec);
  --gr-line-soft: color-mix(in srgb, var(--gr-line) 60%, transparent);
  --gr-r: var(--w-radius, 16px);
  --gr-r-sm: calc(var(--gr-r) * .66);
  --gr-wrap: var(--w-container, 1240px);
  --gr-head: var(--w-font-heading, Inter, system-ui, sans-serif);
  --gr-body: var(--w-font-body, Inter, system-ui, sans-serif);
  --gr-gold-grad: var(--gr-gold);
  --gr-hair: linear-gradient(90deg, transparent, var(--gr-gold), transparent);
  --gr-ease: cubic-bezier(.2, .7, .2, 1);
  --gr-shadow-sm: 0 1px 2px rgba(11, 27, 56, .04), 0 4px 14px -6px rgba(11, 27, 56, .08);
  --gr-shadow: 0 1px 2px rgba(11, 27, 56, .04), 0 18px 40px -18px rgba(11, 27, 56, .22);
  --gr-shadow-lg: 0 2px 6px rgba(4, 12, 30, .06), 0 40px 80px -30px rgba(4, 12, 30, .45);
  --gr-header-h: 62px;
  --gr-tabbar-h: 66px;
  --gr-safe-b: env(safe-area-inset-bottom, 0px);
  margin: 0; background: var(--gr-bg); color: var(--gr-ink); font: 400 1rem/1.65 var(--gr-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 960px) { .gr { --gr-header-h: 82px; } }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--gr-header-h, 62px) + 16px); }
.gr *, .gr *::before, .gr *::after { box-sizing: border-box; }
:where(.gr) img, :where(.gr) video { max-width: 100%; display: block; }
:where(.gr) a { color: inherit; }
:where(.gr) :is(h1, h2, h3) { font-family: var(--gr-head); font-weight: 700; line-height: 1.12; margin: 0; color: var(--gr-navy); letter-spacing: -.028em; text-wrap: balance; }
:where(.gr) p { margin: 0; }
.gr ::selection { background: color-mix(in srgb, var(--gr-gold) 35%, transparent); }
.gr-wrap { width: 100%; max-width: var(--gr-wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .gr-wrap { padding: 0 32px; } }
.gr-narrow { max-width: 860px; }
.gr-center { text-align: center; justify-content: center; }
.gr-muted { opacity: .7; }
.gr-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gr-hide-xs { display: none; } .gr-show-xs { display: inline; }
@media (min-width: 520px) { .gr-hide-xs { display: inline; } .gr-show-xs { display: none; } }
.gr-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--gr-navy); color: #fff; text-decoration: none; font-weight: 600; }
.gr-skip:focus { top: 12px; }


/* ══ Tipografía de apoyo ═════════════════════════════════════════════════ */
.gr-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 .72rem/1.2 var(--gr-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gr-gold-hi); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); margin-bottom: 18px; }
.gr-eyebrow-dark { color: var(--gr-gold-lo); background: color-mix(in srgb, var(--gr-gold) 10%, transparent); border-color: transparent; }
.gr-lead { font-size: 1.06rem; line-height: 1.7; margin-top: 18px; max-width: 58ch; color: var(--gr-muted); }
@media (min-width: 960px) { .gr-lead { font-size: 1.12rem; } }
.gr-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--gr-navy); text-decoration: none; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--gr-gold) 55%, transparent); white-space: nowrap; transition: gap .25s var(--gr-ease), color .2s; }
.gr-link:hover { gap: 12px; color: var(--gr-gold-lo); }

/* ══ Botones ═════════════════════════════════════════════════════════════ */
.gr-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  font: 600 .93rem/1 var(--gr-body); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--gr-ease), box-shadow .25s var(--gr-ease), background-color .2s, color .2s, border-color .2s, filter .2s; }
.gr-btn i { font-size: 1.15em; transition: transform .25s var(--gr-ease); }
.gr-btn:hover i.ph-arrow-right { transform: translateX(3px); }
.gr-btn:active { transform: scale(.97); }
.gr-btn:focus-visible, .gr a:focus-visible, .gr button:focus-visible, .gr input:focus-visible, .gr select:focus-visible, .gr summary:focus-visible { outline: 2px solid var(--gr-gold); outline-offset: 3px; }
.gr-btn-gold { background: var(--gr-gold); color: var(--gr-navy-deep); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--gr-gold) 80%, transparent); }
.gr-btn-gold:hover { filter: brightness(1.06); }
.gr-btn-navy { background: var(--gr-navy); color: #fff; box-shadow: 0 8px 20px -12px rgba(11, 27, 56, .6); }
.gr-btn-navy:hover { background: var(--gr-navy-soft); }
.gr-btn-line { background: transparent; color: var(--gr-navy); border-color: color-mix(in srgb, var(--gr-navy) 22%, transparent); }
.gr-btn-line:hover { border-color: var(--gr-navy); background: var(--gr-cream); }
.gr-btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gr-btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.gr-btn-wa { background: #1fa855; color: #fff; }
.gr-btn-wa:hover { background: #1b964c; }
.gr-btn-sm { min-height: 40px; padding: 0 18px; font-size: .85rem; }
.gr-btn-lg { min-height: 56px; padding: 0 30px; font-size: .98rem; }
.gr-btn-block { width: 100%; }
.gr-btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.gr-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #1fa855; background: color-mix(in srgb, #1fa855 10%, transparent); text-decoration: none; font-size: 1.3rem; transition: background-color .2s, transform .2s; }
.gr-iconbtn:hover { background: color-mix(in srgb, #1fa855 18%, transparent); }
.gr-iconbtn:active { transform: scale(.94); }

/* ══ Cabecera (cristal) ══════════════════════════════════════════════════ */
.gr-header { position: sticky; top: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--w-header-bg, var(--gr-bg)) 84%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.gr-header.is-scrolled { border-bottom-color: var(--gr-line-soft); box-shadow: 0 10px 30px -20px rgba(11, 27, 56, .35); }
.gr-header-in { display: flex; align-items: center; gap: 16px; height: var(--gr-header-h); }
.gr-brand { display: inline-flex; flex: none; }
.gr-brand img { height: 40px; width: auto; transition: height .3s var(--gr-ease); }
.gr-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.gr-nav { display: none; }
@media (max-width: 959px) {
  /* En móvil la llamada a la acción vive en la barra inferior; las landings (cabecera mínima) la conservan */
  .gr-header:not(.is-minimal) .gr-header-actions .gr-btn { display: none; }
  .gr-hero-home .gr-hero-cta .gr-btn { flex: 1 1 100%; }
}
@media (min-width: 960px) {
  .gr-brand img { height: 50px; }
  .gr-header.is-scrolled .gr-brand img { height: 44px; }
  .gr-nav { display: flex; gap: 4px; margin: 0 auto; }
  .gr-nav a { position: relative; padding: 10px 14px; text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--w-header-text, var(--gr-navy)); letter-spacing: .01em; opacity: .82; transition: opacity .2s; }
  .gr-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gr-gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--gr-ease); }
  .gr-nav a:hover, .gr-nav a.is-active { opacity: 1; }
  .gr-nav a:hover::after, .gr-nav a.is-active::after { transform: scaleX(1); }
  .gr-header-actions { margin-left: 0; }
  .gr-header.is-minimal .gr-header-actions { margin-left: auto; }
}

/* ══ Hero ════════════════════════════════════════════════════════════════ */
.gr-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -8%, color-mix(in srgb, var(--gr-gold) 26%, transparent), transparent 62%),
    radial-gradient(700px 500px at -10% 110%, color-mix(in srgb, var(--gr-navy-soft) 80%, transparent), transparent 70%),
    linear-gradient(165deg, var(--gr-navy-soft) 0%, var(--gr-navy) 42%, var(--gr-navy-deep) 100%); }
/* (sin ornamento de línea: estética moderna) */
.gr-hero-ornament-off::after { content: ""; position: absolute; z-index: -1; pointer-events: none; opacity: .09; width: 760px; height: 760px; right: -260px; top: 50%; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 520' fill='none' stroke='%23e6cf9a' stroke-width='.8'%3E%3Ccircle cx='260' cy='260' r='200'/%3E%3Ccircle cx='260' cy='260' r='150'/%3E%3Ccircle cx='260' cy='260' r='60'/%3E%3Cpath d='M260 10 284 236 510 260 284 284 260 510 236 284 10 260 236 236Z'/%3E%3Cpath d='M260 90 272 248 430 260 272 272 260 430 248 272 90 260 248 248Z' transform='rotate(45 260 260)'/%3E%3C/svg%3E") center / contain no-repeat; }
.gr-hero-bg { position: absolute; inset: 0; z-index: -2; }
.gr-hero-bg img, .gr-hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gr-hero:has(.gr-hero-bg img, .gr-hero-bg video)::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 12, 30, calc(var(--gr-overlay, .62) * .55)) 0%, rgba(4, 12, 30, calc(var(--gr-overlay, .62) * .85)) 55%, rgba(4, 12, 30, var(--gr-overlay, .62)) 100%); }
.gr-hero:has(.gr-hero-bg img, .gr-hero-bg video)::after { opacity: 0; }
.gr-hero h1 { color: #fff; font-size: clamp(2rem, 7.6vw, 3.6rem); line-height: 1.08; }
.gr-hero h1 em { font-style: normal; color: var(--gr-gold-hi); }
.gr-hero .gr-lead { color: rgba(236, 240, 248, .86); }
.gr-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.gr-chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gr-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); font-size: .84rem; font-weight: 500; color: #eef1f7; }
.gr-chips i { color: var(--gr-gold-hi); font-size: 1rem; }

/* Portada */
.gr-hero-home-in { display: flex; flex-direction: column; justify-content: center; min-height: min(86svh, 820px); padding-top: 56px; padding-bottom: 64px; }
.gr-hero-home-in > * { max-width: 880px; }
.gr-hero-home h1 { font-size: clamp(2.2rem, 8.6vw, 4.3rem); }
.gr-quick { display: flex; gap: 10px; margin: 40px -20px 0; padding: 0 20px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; max-width: none !important; }
.gr-quick::-webkit-scrollbar { display: none; }
.gr-quick a { flex: none; scroll-snap-align: start; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 128px; padding: 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; color: #fff; font-size: .88rem; font-weight: 500; transition: background-color .25s, border-color .25s, transform .25s var(--gr-ease); }
.gr-quick a i { font-size: 1.5rem; color: var(--gr-gold-hi); }
.gr-quick a:hover { background: rgba(255, 255, 255, .1); border-color: color-mix(in srgb, var(--gr-gold) 60%, transparent); transform: translateY(-2px); }
.gr-quick a:active { transform: scale(.97); }
@media (min-width: 760px) { .gr-quick { margin: 56px 0 0; padding: 0; overflow: visible; flex-wrap: wrap; } .gr-quick a { width: 150px; } }

/* Landing: el formulario se superpone como tarjeta */
.gr-hero-grid { display: grid; gap: 30px; padding-top: 40px; padding-bottom: 0; }
.gr-hero-landing .gr-hero-copy { padding-bottom: 4px; }
.gr-hero-form { scroll-margin-top: calc(var(--gr-header-h) + 12px); margin: 0 -6px -1px; }
@media (max-width: 959px) {
  .gr-hero-grid .gr-hero-cta { display: none; }
  /* La tarjeta del formulario «asoma» sobre la franja siguiente, como una app */
  .gr-hero-landing { padding-bottom: 0; background-size: 100% calc(100% - 120px), 100% calc(100% - 120px), 100% calc(100% - 120px); background-repeat: no-repeat; background-color: var(--gr-bg); }
  .gr-hero-landing:has(.gr-hero-bg img, .gr-hero-bg video) .gr-hero-bg, .gr-hero-landing:has(.gr-hero-bg img, .gr-hero-bg video)::before { bottom: 120px; }
  .gr-hero-landing::after { top: 30%; }
  .gr-hero-landing + .gr-trust { margin-top: 0; }
  .gr-hero-landing .gr-hero-form { margin-bottom: 24px; }
}
@media (min-width: 960px) {
  .gr-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(380px, 450px); gap: 72px; align-items: center; min-height: min(82svh, 800px); padding-top: 72px; padding-bottom: 80px; }
  .gr-hero-form { margin: 0; }
}

/* ══ Formulario ══════════════════════════════════════════════════════════ */
.gr-form { position: relative; background: #fff; color: var(--gr-ink); border-radius: calc(var(--gr-r) + 6px); padding: 28px 22px 22px; box-shadow: var(--gr-shadow-lg); border: 1px solid var(--gr-line-soft); scroll-margin-top: calc(var(--gr-header-h) + 12px); }
@media (min-width: 520px) { .gr-form { padding: 34px 30px 26px; } }
.gr-form-head { margin-bottom: 20px; }
.gr-form-head h2 { font-size: 1.3rem; line-height: 1.2; }
.gr-form-head p { color: var(--gr-muted); font-size: .9rem; margin-top: 8px; }
.gr-field { margin-bottom: 14px; }
.gr-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--gr-ink); margin-bottom: 6px; }
.gr-form input[type=text], .gr-form input[type=email], .gr-form input[type=tel], .gr-form select {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--gr-line); border-radius: 12px; background: var(--gr-cream); color: var(--gr-ink);
  font: 500 1rem var(--gr-body); appearance: none; -webkit-appearance: none; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.gr-form input::placeholder { color: #a3a9b6; }
.gr-form select, .gr-filters select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a7440' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.gr-form input:focus, .gr-form select:focus { border-color: var(--gr-gold); background-color: #fff; outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gr-gold) 18%, transparent); }
.gr-form select:invalid { color: #9aa1ae; }
.gr-phone { display: grid; grid-template-columns: 108px 1fr; gap: 8px; }
.gr-phone select { padding-left: 12px; font-size: .92rem; }
.gr-form .gr-btn-block { margin-top: 8px; }
.gr-form-note { display: flex; gap: 8px; color: var(--gr-muted); font-size: .75rem; line-height: 1.5; margin-top: 14px; }
.gr-form-note i { color: var(--gr-gold-lo); font-size: 1rem; flex: none; }
.gr-form-note a { color: var(--gr-navy); }
.gr-form-error { background: #fdf1f0; color: #9a2a1b; border: 1px solid #f1cfc9; padding: 11px 14px; border-radius: 12px; font-size: .88rem; margin-bottom: 12px; }
.gr-form .gr-btn-label { white-space: normal; text-align: center; line-height: 1.25; }

/* ══ Franja de confianza ═════════════════════════════════════════════════ */
.gr-trust { background: var(--gr-navy-deep); color: rgba(226, 232, 243, .88); position: relative; }
.gr-trust-in { display: flex; gap: 10px 36px; justify-content: flex-start; padding-top: 16px; padding-bottom: 16px; font-size: .82rem; font-weight: 500; letter-spacing: .02em; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.gr-trust-in::-webkit-scrollbar { display: none; }
.gr-trust i { color: var(--gr-gold-hi); font-size: 1.15rem; vertical-align: -3px; margin-right: 6px; }
@media (min-width: 760px) { .gr-trust-in { justify-content: center; font-size: .88rem; padding-top: 20px; padding-bottom: 20px; } }
.gr-hero-landing + .gr-trust { background: transparent; color: var(--gr-muted); }
.gr-hero-landing + .gr-trust::before { display: none; }
.gr-hero-landing + .gr-trust i { color: var(--gr-gold-lo); }
@media (min-width: 960px) { .gr-hero-landing + .gr-trust { background: var(--gr-navy-deep); color: rgba(226, 232, 243, .88); } .gr-hero-landing + .gr-trust::before { display: block; } .gr-hero-landing + .gr-trust i { color: var(--gr-gold-hi); } }

/* ══ Secciones ═══════════════════════════════════════════════════════════ */
.gr-section { padding: 64px 0; }
@media (min-width: 960px) { .gr-section { padding: 112px 0; } }
.gr-section-alt { background: var(--gr-cream); }
.gr-section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.gr-section-head h2 { font-size: clamp(1.65rem, 5vw, 2.5rem); }
.gr-section-head p { color: var(--gr-muted); margin-top: 14px; }
.gr-section-head .gr-eyebrow { margin-bottom: 14px; }
.gr-section-head.is-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: left; max-width: none; }
.gr-section-head.is-split .gr-link { flex: none; margin-bottom: 6px; }
@media (min-width: 960px) { .gr-section-head { margin-bottom: 56px; } }

.gr-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .gr-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gr-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Carrusel deslizable en móvil (rejilla normal desde tableta) */
@media (max-width: 759px) {
  .gr .gr-rail { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 20px; margin: 0 -20px; padding: 4px 20px 18px; scrollbar-width: none; }
  .gr .gr-rail::-webkit-scrollbar { display: none; }
  .gr .gr-rail > * { scroll-snap-align: start; }
  .gr .gr-gallery.gr-rail { grid-auto-columns: 78%; margin-bottom: 18px; }
}

.gr-card { position: relative; background: #fff; border: 1px solid var(--gr-line-soft); border-radius: var(--gr-r); padding: 30px 26px; box-shadow: var(--gr-shadow-sm); transition: transform .35s var(--gr-ease), box-shadow .35s var(--gr-ease), border-color .3s; }
.gr-card:hover { transform: translateY(-4px); box-shadow: var(--gr-shadow); border-color: color-mix(in srgb, var(--gr-gold) 40%, var(--gr-line)); }
.gr-card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--gr-gold-lo); font-size: 1.45rem; margin-bottom: 18px; background: color-mix(in srgb, var(--gr-gold) 12%, #fff); }
.gr-card h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.gr-card p { color: var(--gr-muted); font-size: .95rem; }
.gr-card-link { text-decoration: none; display: block; color: inherit; }
.gr-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .88rem; font-weight: 600; color: var(--gr-gold-lo); letter-spacing: .02em; transition: gap .25s var(--gr-ease); }

/* Tres caminos para invertir */
.gr-paths { display: grid; gap: 14px; }
@media (min-width: 900px) { .gr-paths { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.gr-path { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: var(--gr-r); text-decoration: none; color: #fff;
  background: radial-gradient(420px 260px at 100% 0%, color-mix(in srgb, var(--gr-gold) 22%, transparent), transparent 70%), linear-gradient(160deg, var(--gr-navy-soft), var(--gr-navy-deep));
  box-shadow: var(--gr-shadow); transition: transform .4s var(--gr-ease), box-shadow .4s var(--gr-ease); }
.gr-path:hover { transform: translateY(-5px); box-shadow: var(--gr-shadow-lg); }
.gr-path:hover .gr-more { gap: 12px; }
.gr-path:active { transform: scale(.985); }
.gr-path-n { position: absolute; right: 24px; top: 26px; font: 600 .78rem/1 var(--gr-body); letter-spacing: .08em; color: rgba(255, 255, 255, .45); }
.gr-path-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--gr-gold-hi); font-size: 1.4rem; margin-bottom: 44px; }
.gr-path h3 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.gr-path p { color: rgba(220, 227, 240, .78); font-size: .94rem; }
.gr-path .gr-more { color: var(--gr-gold-hi); margin-top: auto; padding-top: 24px; }
@media (min-width: 900px) { .gr-path { min-height: 400px; padding: 38px 34px 34px; } .gr-path-icon { margin-bottom: 72px; } }

/* ══ Galería ═════════════════════════════════════════════════════════════ */
.gr-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 34px; }
@media (min-width: 760px) { .gr-gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } .gr-gallery .gr-shot:first-child:nth-last-child(n+4) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
.gr-shot { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: var(--gr-r); overflow: hidden; background: var(--gr-navy); cursor: zoom-in; }
.gr-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--gr-ease); }
.gr-shot:hover img { transform: scale(1.04); }
.gr-gallery-empty { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gr-shot-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: default; color: var(--gr-gold-hi); text-align: center; padding: 20px;
  background: radial-gradient(260px 160px at 80% 0%, color-mix(in srgb, var(--gr-gold) 22%, transparent), transparent), linear-gradient(160deg, var(--gr-navy-soft), var(--gr-navy-deep)); }
.gr-shot-ph i { font-size: 2.2rem; } .gr-shot-ph span { color: rgba(226, 232, 243, .85); font-weight: 500; font-size: .92rem; }
.gr-actions-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 519px) { .gr-actions-row .gr-btn { width: 100%; } }

/* Visor */
.gr-lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(3, 9, 22, .94); color: #fff; display: none; place-items: center; }
.gr-lightbox[open] { display: grid; animation: gr-fade .25s var(--gr-ease); }
.gr-lightbox::backdrop { background: transparent; }
.gr-lightbox img { max-width: 94vw; max-height: 84dvh; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; touch-action: pan-y; }
.gr-lightbox-x, .gr-lightbox-nav { position: fixed; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.25rem; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gr-lightbox-x { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.gr-lightbox-nav { top: 50%; transform: translateY(-50%); }
.gr-lightbox-nav.is-prev { left: 14px; } .gr-lightbox-nav.is-next { right: 14px; }
.gr-lightbox-nav[hidden] { display: none; }
.gr-lightbox-count { position: fixed; bottom: calc(18px + var(--gr-safe-b)); left: 50%; transform: translateX(-50%); font-size: .82rem; letter-spacing: .12em; color: rgba(255, 255, 255, .75); }
@media (max-width: 759px) { .gr-lightbox-nav { display: none; } }

/* ══ Autoridad ═══════════════════════════════════════════════════════════ */
.gr-authority { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(800px 400px at 0% 0%, color-mix(in srgb, var(--gr-gold) 14%, transparent), transparent 70%), linear-gradient(165deg, var(--gr-navy) 0%, var(--gr-navy-deep) 100%); }
.gr-authority h2 { color: #fff; font-size: clamp(1.75rem, 5.2vw, 2.7rem); }
.gr-authority .gr-lead { color: rgba(220, 227, 240, .8); }
.gr-authority-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .gr-authority-grid { grid-template-columns: 1.05fr 1fr; gap: 88px; } }
.gr-pillars, .gr-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.gr-pillars li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.gr-pillars li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.gr-pillars i { font-size: 1.6rem; color: var(--gr-gold-hi); flex: none; margin-top: 2px; }
.gr-pillars strong, .gr-steps strong { display: block; font: 600 1.02rem/1.3 var(--gr-body); color: #fff; margin-bottom: 3px; }
.gr-pillars span, .gr-steps span { color: rgba(205, 213, 230, .8); font-size: .92rem; }
.gr-steps-title { font: 600 .72rem/1 var(--gr-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gr-gold-hi); margin-bottom: 18px !important; }
.gr-steps { margin-top: 0; gap: 12px; position: relative; }
.gr-steps li { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: var(--gr-r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.gr-step-n { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gr-gold); color: var(--gr-navy-deep); font: 700 .95rem/1 var(--gr-body); }
.gr-authority .gr-steps span.gr-step-n { color: var(--gr-navy-deep); font-size: .95rem; }

/* ══ Preguntas frecuentes ════════════════════════════════════════════════ */
.gr-faq { display: grid; gap: 0; border-top: 1px solid var(--gr-line); }
.gr-faq details { border-bottom: 1px solid var(--gr-line); }
.gr-faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 600 1.02rem/1.4 var(--gr-body); color: var(--gr-navy); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.gr-faq summary::-webkit-details-marker { display: none; }
.gr-faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gr-line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%238a7440' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; transition: transform .3s var(--gr-ease), background-color .2s; }
.gr-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gr-cream); }
.gr-faq p { padding: 0 48px 24px 0; color: var(--gr-muted); }
@media (min-width: 760px) { .gr-faq summary { font-size: 1.08rem; padding: 24px 0; } }

/* ══ CTA final ═══════════════════════════════════════════════════════════ */
.gr-final { background: var(--gr-cream); padding: 72px 0; text-align: center; position: relative; }
.gr-final-emblem { width: 52px; height: auto; margin: 0 auto 22px; opacity: .95; }
.gr-final h2 { font-size: clamp(1.75rem, 5.2vw, 2.7rem); }
.gr-final p { color: var(--gr-muted); margin: 14px auto 0; max-width: 46ch; }
.gr-final .gr-hero-cta { margin-top: 30px; }
@media (min-width: 960px) { .gr-final { padding: 120px 0; } }
@media (max-width: 519px) { .gr-final .gr-btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; } }

/* ══ Gracias ═════════════════════════════════════════════════════════════ */
.gr-thanks { padding: 84px 0 96px; background: var(--gr-cream); min-height: 70svh; display: grid; align-items: center; }
.gr-thanks-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: var(--gr-gold-lo); background: #fff; font-size: 2.6rem; margin-bottom: 26px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--gr-gold) 8%, transparent); animation: gr-pop .6s var(--gr-ease) both; }
.gr-thanks h1 { font-size: clamp(1.8rem, 5.4vw, 2.7rem); }
.gr-thanks .gr-lead { margin-left: auto; margin-right: auto; }

/* ══ Páginas de texto ════════════════════════════════════════════════════ */
.gr-prose-page { padding-top: 48px; padding-bottom: 80px; max-width: 860px; }
.gr-prose-title { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 24px; }
.gr-prose h2, .gr-prose h3 { margin: 32px 0 12px; }
.gr-prose h2 { font-size: 1.4rem; } .gr-prose h3 { font-size: 1.15rem; }
.gr-prose p, .gr-prose li { color: #3a4560; }
.gr-prose p { margin: 0 0 16px; }
.gr-prose a { color: var(--gr-gold-lo); }
.gr-flash { max-width: var(--gr-wrap); margin: 14px auto 0; padding: 0 20px; }
.gr-notice { padding: 13px 16px; border-radius: 14px; font-weight: 500; font-size: .92rem; }
.gr-notice.is-ok { background: #edf7f0; color: #1b5e37; } .gr-notice.is-bad { background: #fdf1f0; color: #9a2a1b; }

/* ══ Pie ═════════════════════════════════════════════════════════════════ */
.gr-footer { position: relative; background: var(--w-footer-bg, #071226); color: var(--w-footer-text, #c9d0de); padding: 56px 0 calc(var(--gr-tabbar-h) + var(--gr-safe-b) + 28px); }
.gr-footer a { color: inherit; text-decoration: none; opacity: .85; transition: opacity .2s, color .2s; } .gr-footer a:hover { opacity: 1; color: var(--gr-gold-hi); }
.gr-footer-top { display: flex; align-items: center; gap: 16px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gr-footer-emblem { display: inline-grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff; }
.gr-footer-emblem img { width: 46px; height: auto; }
.gr-footer-name { display: block; font: 700 1.25rem/1.2 var(--gr-body); color: #fff; letter-spacing: -.02em; } .gr-footer-name span { color: var(--gr-gold-hi); }
.gr-footer em { display: block; font-style: normal; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gr-gold-hi); margin-top: 6px; opacity: .9; }
.gr-footer-grid { display: grid; gap: 34px; }
@media (min-width: 860px) { .gr-footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 64px; } }
.gr-footer p { font-size: .9rem; max-width: 48ch; opacity: .8; line-height: 1.7; }
.gr-footer h3 { color: #fff; font: 600 .74rem var(--gr-body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; opacity: .75; }
.gr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: .92rem; }
.gr-footer li i { color: var(--gr-gold-hi); margin-right: 6px; vertical-align: -2px; }
.gr-social { display: flex; gap: 10px; margin-top: 20px; }
.gr-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); font-size: 1.15rem; }
.gr-social a:hover { border-color: var(--gr-gold); }
.gr-footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .76rem; opacity: .6; }
@media (min-width: 960px) { .gr-footer { padding: 80px 0 36px; } }
.gr:has(.gr-sticky) .gr-footer { padding-bottom: calc(96px + var(--gr-safe-b)); }
@media (min-width: 960px) { .gr:has(.gr-sticky) .gr-footer { padding-bottom: 36px; } }

/* ══ Barra de pestañas (móvil) ═══════════════════════════════════════════ */
.gr-tabbar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--gr-tabbar-h) + var(--gr-safe-b)); padding: 0 6px var(--gr-safe-b);
  background: color-mix(in srgb, var(--gr-bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  border-top: 1px solid var(--gr-line-soft); box-shadow: 0 -12px 30px -22px rgba(11, 27, 56, .4); }
.gr-tabbar > a, .gr-tabbar > button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--gr-tabbar-h); padding: 0 2px 4px;
  border: 0; background: none; color: #7b8396; text-decoration: none; font: 500 .66rem/1 var(--gr-body); letter-spacing: .02em; cursor: pointer; transition: color .2s; }
.gr-tabbar i { font-size: 1.5rem; transition: transform .25s var(--gr-ease); }
.gr-tabbar > a:active i, .gr-tabbar > button:active i { transform: scale(.88); }
.gr-tabbar .is-active { color: var(--gr-navy); font-weight: 600; }
.gr-tabbar .is-active::before { content: ""; position: absolute; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--gr-gold); }
.gr-tab-main { color: var(--gr-navy) !important; font-weight: 600 !important; }
.gr-tab-fab { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; margin-bottom: 2px; border-radius: 16px; background: var(--gr-navy); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(11, 27, 56, .7), 0 0 0 5px var(--gr-bg); }
.gr-tab-fab i { font-size: 1.45rem; }
@media (min-width: 960px) { .gr-tabbar { display: none; } .gr-footer { padding-bottom: 36px; } }
.gr:has(.gr-sticky) .gr-tabbar { display: none; }

/* ══ Hojas inferiores (dialog) ═══════════════════════════════════════════ */
html:has(dialog[open]) { overflow: hidden; }
.gr-sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88dvh; background: transparent; overflow: visible; color: var(--gr-ink); }
.gr-sheet::backdrop { background: rgba(4, 12, 30, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: gr-fade .25s var(--gr-ease); }
.gr-sheet[open] .gr-sheet-card { animation: gr-sheet-in .38s var(--gr-ease); }
.gr-sheet-card { position: relative; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--gr-bg); border-radius: 26px 26px 0 0; padding: 12px 20px calc(24px + var(--gr-safe-b)); box-shadow: 0 -20px 60px -20px rgba(4, 12, 30, .4); }
.gr-sheet-handle { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--gr-line); margin: 0 auto 16px; }
.gr-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gr-sheet-head .gr-eyebrow { margin-bottom: 8px; }
.gr-sheet-head h2 { font-size: 1.4rem; }
.gr-sheet-x { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gr-line); background: #fff; color: var(--gr-navy); font-size: 1.05rem; cursor: pointer; }
.gr-sheet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gr-sheet-list a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--gr-line-soft); text-decoration: none; box-shadow: var(--gr-shadow-sm); }
.gr-sheet-list a:active { transform: scale(.985); }
.gr-sheet-list a > span:nth-child(2) { flex: 1; min-width: 0; }
.gr-sheet-list strong { display: block; font: 600 .98rem/1.3 var(--gr-body); color: var(--gr-navy); }
.gr-sheet-list small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--gr-muted); font-size: .8rem; line-height: 1.45; margin-top: 3px; }
.gr-sheet-list a > i { color: var(--gr-gold-lo); }
.gr-sheet-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gr-navy); color: var(--gr-gold-hi); font-size: 1.3rem; }
.gr-sheet-sub { margin: 22px 0 10px; font: 600 .74rem/1 var(--gr-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gr-muted); }
.gr-typechips { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-typechips a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--gr-line); background: #fff; text-decoration: none; font-size: .86rem; font-weight: 500; color: var(--gr-navy); }
.gr-typechips i { color: var(--gr-gold-lo); font-size: 1.1rem; }
.gr-sheet-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--gr-line); font-size: .82rem; }
.gr-sheet-links a { color: var(--gr-muted); text-decoration: none; }
.gr-sheet-links:empty { display: none; }
@media (min-width: 760px) {
  .gr-sheet { margin: auto; max-width: 520px; }
  .gr-sheet-card { border-radius: 26px; padding-bottom: 28px; }
  .gr-sheet-handle { display: none; }
}

/* ══ CTA flotante (landings y ficha) ═════════════════════════════════════ */
.gr-sticky { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(10px + var(--gr-safe-b)); display: flex; align-items: center; gap: 8px; padding: 8px;
  border-radius: 18px; background: color-mix(in srgb, #fff 90%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--gr-line-soft); box-shadow: 0 18px 40px -16px rgba(11, 27, 56, .45); transition: transform .4s var(--gr-ease), opacity .3s; }
.gr-sticky .gr-btn { flex: 1; min-height: 48px; padding: 0 16px; font-size: .9rem; }
.gr-sticky .gr-sticky-icon { flex: none; width: 48px; padding: 0; font-size: 1.4rem; }
.gr-sticky.is-hidden { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.gr-sticky-price { flex: 1; min-width: 0; padding: 0 6px 0 14px; display: flex; flex-direction: column; line-height: 1.15; }
.gr-sticky-price span { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gr-muted); font-weight: 600; }
.gr-sticky-price strong { font: 700 .98rem/1.2 var(--gr-body); color: var(--gr-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-sticky-detail .gr-btn-gold { flex: none; }
@media (min-width: 960px) { .gr-sticky { display: none; } }

/* ══ Propiedades: etiquetas y tarjetas ═══════════════════════════════════ */
.gr-tag { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font: 600 .68rem/1 var(--gr-body); letter-spacing: .04em; }
.gr-tag-navy { background: var(--gr-navy); color: #fff; }
.gr-tag-glass { background: rgba(255, 255, 255, .88); color: var(--gr-navy); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gr-tag-gold { background: var(--gr-gold-grad); color: var(--gr-navy-deep); }
.gr-tag-ok { background: #e8f5ed; color: #1b5e37; } .gr-tag-warn { background: #fbf0dc; color: #7d5300; }
.gr-more-row { margin-top: 36px; }
.gr-grid-props { grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .gr-grid-props { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gr-grid-props { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.gr-prop { position: relative; background: #fff; border: 1px solid var(--gr-line-soft); border-radius: var(--gr-r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--gr-shadow-sm); transition: transform .4s var(--gr-ease), box-shadow .4s var(--gr-ease); }
.gr-prop:hover { transform: translateY(-4px); box-shadow: var(--gr-shadow); }
.gr-prop:active { transform: scale(.99); }
.gr-prop.is-sold .gr-prop-media img { filter: grayscale(.85); }
.gr-prop-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--gr-navy); overflow: hidden; margin: 8px 8px 0; border-radius: calc(var(--gr-r) - 6px); }
.gr-prop-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 12, 30, .28) 0%, transparent 32%); pointer-events: none; }
.gr-prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--gr-ease); }
.gr-prop:hover .gr-prop-media img { transform: scale(1.05); }
.gr-prop-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gr-gold-hi); font-size: 2.8rem; background: radial-gradient(260px 160px at 80% 0%, color-mix(in srgb, var(--gr-gold) 20%, transparent), transparent), linear-gradient(160deg, var(--gr-navy-soft), var(--gr-navy-deep)); }
.gr-prop-tags { position: absolute; z-index: 1; pointer-events: none; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.gr-prop-tags-inline { position: static; margin: 0 0 14px; }
.gr-prop-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gr-prop-loc { color: var(--gr-muted); font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-prop-loc i { color: var(--gr-gold-lo); }
.gr-prop-title { font: 600 1.06rem/1.35 var(--gr-body); letter-spacing: -.015em; }
.gr-prop-title a { text-decoration: none; }
.gr-prop-title a::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta es clicable */
.gr-prop-price { font: 700 1.1rem/1.3 var(--gr-body); color: var(--gr-navy); letter-spacing: .01em; margin: 2px 0 10px; }
.gr-prop-specs { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--gr-line-soft); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; font-weight: 500; color: var(--gr-ink); }
.gr-prop-specs i { color: var(--gr-gold-lo); font-size: 1.05rem; vertical-align: -3px; }
.gr-prop-note { color: var(--gr-gold-lo); font-size: .8rem; font-weight: 600; }

/* ══ Listado ═════════════════════════════════════════════════════════════ */
.gr-listhead { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 40px 0 44px;
  background: radial-gradient(700px 360px at 100% 0%, color-mix(in srgb, var(--gr-gold) 22%, transparent), transparent 65%), linear-gradient(165deg, var(--gr-navy-soft), var(--gr-navy-deep)); }
.gr-listhead h1 { color: #fff; font-size: clamp(1.75rem, 6vw, 3rem); }
.gr-listhead .gr-lead { color: rgba(220, 227, 240, .8); margin-top: 12px; }
@media (min-width: 960px) { .gr-listhead { padding: 72px 0 80px; } }
.gr-listing { padding: 0 0 80px; background: var(--gr-bg); }

.gr-filters { position: sticky; top: calc(var(--gr-header-h) + env(safe-area-inset-top, 0px)); z-index: 40; margin: 0 -20px; padding: 12px 20px; background: var(--gr-bg); }
.gr-filters.is-open { z-index: 95; } /* por encima de la cabecera y la barra inferior mientras la hoja está abierta */
.gr-toolbar { display: flex; gap: 8px; }
.gr-filter-q { position: relative; display: block; flex: 1; min-width: 0; }
.gr-filter-q i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gr-muted); font-size: 1.1rem; pointer-events: none; }
.gr-filters input[type=search] { width: 100%; height: 50px; padding: 0 16px 0 44px; border: 1px solid var(--gr-line); border-radius: 12px; background: #fff; font: 500 .95rem var(--gr-body); color: var(--gr-ink); box-shadow: var(--gr-shadow-sm); -webkit-appearance: none; appearance: none; }
.gr-filters input[type=search]:focus { outline: none; border-color: var(--gr-gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gr-gold) 16%, transparent); }
.gr-filter-toggle { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 50px; min-width: 50px; justify-content: center; padding: 0 16px; border-radius: 12px; border: 1px solid var(--gr-line); background: #fff; color: var(--gr-navy); font: 600 .88rem var(--gr-body); cursor: pointer; box-shadow: var(--gr-shadow-sm); }
.gr-filter-toggle i { font-size: 1.2rem; }
.gr-filter-toggle b { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--gr-gold); color: var(--gr-navy-deep); font-size: .7rem; }
.gr-filter span { display: block; font-size: .82rem; font-weight: 600; color: var(--gr-ink); margin-bottom: 6px; }
.gr-filters select { width: 100%; height: 50px; padding: 0 40px 0 16px; border: 1px solid var(--gr-line); border-radius: 12px; background-color: #fff; font: 500 .95rem var(--gr-body); color: var(--gr-ink); -webkit-appearance: none; appearance: none; }
.gr-filters select:focus { outline: none; border-color: var(--gr-gold); }
.gr-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gr-filters-head strong { font: 700 1.3rem var(--gr-body); letter-spacing: -.02em; color: var(--gr-navy); }
.gr-filters-foot { display: flex; gap: 10px; margin-top: 8px; }
.gr-filters-foot .gr-btn { flex: 1; }
@media (max-width: 899px) {
  /* Filtros como hoja inferior */
  .gr-filters-panel { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; gap: 14px; max-height: 86dvh; overflow-y: auto; padding: 22px 20px calc(22px + var(--gr-safe-b));
    background: var(--gr-bg); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px -20px rgba(4, 12, 30, .45); transform: translateY(105%); visibility: hidden; transition: transform .4s var(--gr-ease), visibility 0s .4s; }
  .gr-filters.is-open .gr-filters-panel { transform: none; visibility: visible; transition: transform .4s var(--gr-ease); }
  .gr-filters::after { content: ""; position: fixed; inset: 0; z-index: 85; background: rgba(4, 12, 30, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .gr-filters.is-open::after { opacity: 1; pointer-events: auto; }
}
@media (min-width: 900px) {
  .gr-filters { position: relative; top: auto; margin: -34px 0 0; padding: 14px; border-radius: 24px; background: #fff; border: 1px solid var(--gr-line-soft); box-shadow: var(--gr-shadow); display: grid; grid-template-columns: minmax(240px, 1.6fr) 4fr; gap: 12px; align-items: end; }
  .gr-filter-toggle, .gr-filters-head { display: none; }
  .gr-filters input[type=search] { box-shadow: none; background: var(--gr-cream); border-color: transparent; }
  .gr-filters-panel { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 10px; align-items: end; }
  .gr-filters-foot { margin: 0; }
  .gr-filters-foot .gr-btn { min-height: 50px; }
  .gr-filters-foot .gr-btn-navy { display: none; }
  .gr-filters select { height: 50px; background-color: var(--gr-cream); border-color: transparent; }
  .gr-filter span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.gr-typetabs { display: flex; gap: 8px; overflow-x: auto; margin: 6px -20px 0; padding: 6px 20px 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.gr-typetabs::-webkit-scrollbar { display: none; }
.gr-typetabs a { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: transparent; border: 1px solid var(--gr-line); text-decoration: none; font-weight: 500; font-size: .88rem; color: var(--gr-navy); transition: background-color .2s, border-color .2s, color .2s; }
.gr-typetabs a i { font-size: 1.1rem; color: var(--gr-gold-lo); }
.gr-typetabs a span { font-size: .72rem; padding: 2px 7px; border-radius: 99px; background: var(--gr-cream); color: var(--gr-muted); }
.gr-typetabs a:hover { border-color: var(--gr-navy); }
.gr-typetabs a.is-active { background: var(--gr-navy); color: #fff; border-color: var(--gr-navy); }
.gr-typetabs a.is-active i { color: var(--gr-gold-hi); }
.gr-typetabs a.is-active span { background: rgba(255, 255, 255, .14); color: #fff; }
@media (min-width: 900px) { .gr-typetabs { margin: 26px 0 0; padding: 0 0 6px; flex-wrap: wrap; } }
.gr-count { color: var(--gr-muted); font-size: .86rem; margin: 6px 2px 18px; }
.gr-count a { color: var(--gr-gold-lo); }
.gr-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; font-size: .9rem; color: var(--gr-muted); }
.gr-pager a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gr-line); background: #fff; color: var(--gr-navy); text-decoration: none; font-size: 1.1rem; transition: border-color .2s; }
.gr-pager a:hover { border-color: var(--gr-navy); }
.gr-empty { text-align: center; padding: 64px 24px; background: #fff; border: 1px solid var(--gr-line-soft); border-radius: var(--gr-r); box-shadow: var(--gr-shadow-sm); }
.gr-empty > i { font-size: 2.6rem; color: var(--gr-gold-lo); } .gr-empty h2 { font-size: 1.35rem; margin: 12px 0 8px; } .gr-empty p { color: var(--gr-muted); margin: 0 auto 8px; max-width: 46ch; }

/* ══ Ficha de propiedad ══════════════════════════════════════════════════ */
.gr-preview { background: #fbf0dc; color: #7d5300; text-align: center; padding: 10px 16px; font-weight: 600; font-size: .88rem; }
.gr-detail { padding-top: 18px; padding-bottom: 80px; }
.gr-crumbs { font-size: .8rem; color: var(--gr-muted); display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-bottom: 18px; overflow: hidden; white-space: nowrap; }
.gr-crumbs a { text-decoration: none; } .gr-crumbs a:hover { color: var(--gr-gold-lo); } .gr-crumbs span { color: var(--gr-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.gr-crumbs i { font-size: .7rem; opacity: .6; }
.gr-detail-head { display: grid; gap: 16px; margin-bottom: 22px; }
.gr-detail-head h1 { font-size: clamp(1.6rem, 5.4vw, 2.6rem); }
.gr-detail-loc { color: var(--gr-muted); margin-top: 10px; font-size: .95rem; } .gr-detail-loc i { color: var(--gr-gold-lo); }
.gr-detail-price { display: flex; flex-direction: column; }
.gr-detail-price span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gr-muted); font-weight: 600; }
.gr-detail-price strong { font: 700 clamp(1.4rem, 4vw, 1.9rem)/1.2 var(--gr-body); letter-spacing: -.02em; color: var(--gr-navy); } .gr-detail-price small { color: var(--gr-muted); font-size: .78rem; letter-spacing: .06em; }
@media (min-width: 860px) { .gr-detail-head { grid-template-columns: 1fr auto; align-items: end; gap: 32px; } .gr-detail-price { text-align: right; } }

.gr-pgallery-wrap { position: relative; }
.gr-gallery-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(4, 12, 30, .6); color: #fff; font-size: .76rem; font-weight: 600; letter-spacing: .04em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.gr-pgallery { display: grid; gap: 8px; border-radius: var(--gr-r); overflow: hidden; }
.gr-pgallery .gr-shot { border-radius: 0; aspect-ratio: auto; height: 100%; }
@media (max-width: 859px) {
  /* Carrusel a sangre, como en una app */
  .gr-pgallery { display: flex; gap: 0; margin: 0 -20px; border-radius: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .gr-pgallery::-webkit-scrollbar { display: none; }
  .gr-pgallery .gr-shot { flex: 0 0 100%; aspect-ratio: 4 / 3; height: auto; scroll-snap-align: center; }
  .gr-pgallery-0 .gr-prop-ph { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 3; }
  .gr-pgallery-wrap .gr-gallery-count { right: 0; }
  .gr-shot-more { display: none !important; }
}
@media (min-width: 860px) {
  .gr-pgallery { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; }
  .gr-pgallery .gr-shot:first-child { grid-column: 1; grid-row: span 2; }
  .gr-pgallery-1 { grid-template-columns: 1fr; grid-auto-rows: 520px; } .gr-pgallery-1 .gr-shot:first-child { grid-row: auto; }
  .gr-pgallery-2 { grid-template-columns: 2fr 1fr; } .gr-pgallery-2 .gr-shot:first-child { grid-row: span 2; }
  .gr-pgallery-3 { grid-template-columns: 2fr 1fr; } .gr-pgallery-4 .gr-shot:nth-child(4) { grid-column: span 2; }
  .gr-pgallery-0 { grid-auto-rows: 360px; grid-template-columns: 1fr; } .gr-pgallery-0 .gr-prop-ph { position: static; }
  .gr-gallery-count { display: none; }
}
.gr-shot-kind { position: absolute; left: 12px; bottom: 12px; }
.gr-shot-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 12, 30, .55); color: #fff; font: 700 1.5rem var(--gr-body); }

.gr-specbar { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--gr-line); border-radius: var(--gr-r); background: #fff; overflow: hidden; }
.gr-specbar li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 8px; border-right: 1px solid var(--gr-line-soft); border-bottom: 1px solid var(--gr-line-soft); margin: 0 -1px -1px 0; }
.gr-specbar i { color: var(--gr-gold-lo); font-size: 1.4rem; } .gr-specbar strong { font: 700 1.05rem/1.2 var(--gr-body); color: var(--gr-navy); } .gr-specbar span { font-size: .78rem; color: var(--gr-muted); }
@media (min-width: 700px) { .gr-specbar { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.gr-detail-grid { display: grid; gap: 36px; margin-top: 36px; }
@media (min-width: 980px) { .gr-detail-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; } .gr-detail-side { position: sticky; top: calc(var(--gr-header-h) + 20px); } }
.gr-lead-dark { color: var(--gr-ink); font-size: 1.15rem; margin: 0 0 8px; }
.gr-block { margin-top: 36px; } .gr-block h2 { font-size: 1.35rem; margin-bottom: 14px; }
.gr-dl { margin: 0; display: grid; border-top: 1px solid var(--gr-line); }
.gr-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--gr-line); font-size: .95rem; }
.gr-dl dt { color: var(--gr-muted); } .gr-dl dd { margin: 0; font-weight: 600; text-align: right; color: var(--gr-navy); }
@media (min-width: 700px) { .gr-dl { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.gr-amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gr-amenities li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: #fff; border: 1px solid var(--gr-line-soft); border-radius: 14px; font-weight: 500; font-size: .9rem; } .gr-amenities i { color: var(--gr-gold-lo); font-size: 1.3rem; }
.gr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 519px) { .gr-actions .gr-btn { flex: 1 1 100%; } }
.gr-detail-side .gr-form { box-shadow: var(--gr-shadow); }
.gr-similar { margin-top: 72px; }
.gr-hidden-shots { display: none; }

/* ══ Animaciones ═════════════════════════════════════════════════════════ */
@keyframes gr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gr-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes gr-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gr-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Entrada del hero al cargar */
.gr-hero-home-in > *, .gr-hero-copy > * { animation: gr-rise .9s var(--gr-ease) both; }
.gr-hero-home-in > :nth-child(2), .gr-hero-copy > :nth-child(2) { animation-delay: .08s; }
.gr-hero-home-in > :nth-child(3), .gr-hero-copy > :nth-child(3) { animation-delay: .16s; }
.gr-hero-home-in > :nth-child(n+4), .gr-hero-copy > :nth-child(n+4) { animation-delay: .24s; }
.gr-hero-form { animation: gr-rise 1s .2s var(--gr-ease) both; }
/* Aparición al hacer scroll: theme.js añade .gr-reveal solo a lo que está fuera de la pantalla al cargar */
.gr-reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--gr-ease), transform .9s var(--gr-ease); transition-delay: var(--gr-d, 0s); }
.gr-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gr *, .gr *::before, .gr *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .gr-reveal { opacity: 1; transform: none; }
}
