/* =========================================================
   Blanco Real Estate — Design System
   Paleta extraída de "Logo Brand Guide": dorado #b68235,
   carbón #201f1d / #2d2b2b, blanco roto #f3f2f2
   ========================================================= */

:root {
  --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --bg-950: #f3f2f2;
  --bg-900: #eae9e9;
  --bg-800: #ffffff;
  --bg-700: #e3dfda;

  --gold-300: #facb8d;
  --gold-400: #a06f24;
  --gold-500: #b68235;
  --gold-600: #7d5411;

  --cream-50: #201f1d;
  --cream-100: #2d2b2b;
  --cream-200: #605d5d;

  --text-primary: var(--cream-100);
  --text-secondary: #605d5d;
  --text-muted: #746e66;

  --border-subtle: rgba(182, 130, 53, 0.35);
  --border-faint: rgba(45, 43, 43, 0.10);

  --shadow-card: 0 20px 50px -22px rgba(45, 43, 43, 0.22);
  --shadow-gold: 0 10px 26px -8px rgba(182, 130, 53, 0.3);

  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --dur: 0.6s;

  --max-width: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(5rem, 10vw, 9rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg-950);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

::selection { background: var(--gold-500); color: var(--cream-50); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-950); }
::-webkit-scrollbar-thumb { background: var(--gold-600); border-radius: 10px; border: 2px solid var(--bg-950); }

/* Skip link (accesibilidad) */
.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--gold-500); color: var(--cream-50);
  padding: 0.75rem 1.25rem; border-radius: 4px; font-weight: 600; z-index: 999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--gold-500);
}
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); color: var(--cream-50); }
.section-title em { font-style: normal; font-weight: 500; color: var(--gold-600); }
.section-lede { color: var(--text-secondary); font-size: 1.05rem; max-width: 46ch; margin-top: 1.25rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2rem; border-radius: 2px; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold-500); color: var(--bg-950); }
.btn-primary:hover { background: var(--gold-400); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(45,43,43,0.25); color: var(--cream-100); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-600); transform: translateY(-2px); }
.btn[disabled], .btn.is-soon { opacity: 0.5; cursor: not-allowed; }

.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal-left.is-visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal-right.is-visible { opacity: 1; transform: none; }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* Progress bar */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); width: 0%; z-index: 1000; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  padding: 1.5rem 0; transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  padding: 0.85rem 0; background: rgba(243, 242, 242, 0.86); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--border-faint), 0 20px 40px -30px rgba(45,43,43,0.15);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; color: var(--gold-500); }
.brand-word { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em; color: var(--cream-50); line-height: 1; }
.brand-word span { display: block; font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.32em; color: var(--gold-400); font-weight: 600; margin-top: 0.3rem; }

.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2.25rem); }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text-secondary);
  position: relative; padding: 0.4rem 0; transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold-400);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--cream-50); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-actions .btn { padding: 0.75rem 1.4rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 0.5rem; z-index: 950;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--cream-50); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 0 0 0 30%; background: var(--bg-900); flex-direction: column; justify-content: center; align-items: flex-start; padding: 3rem; gap: 2rem; transform: translateX(100%); transition: transform 0.45s var(--ease); border-left: 1px solid var(--border-subtle); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 7rem; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -10% -5%; z-index: -5;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(182,130,53,0.18), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(182,130,53,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-950), var(--bg-900) 60%, var(--bg-950));
  will-change: transform;
}

/* ---- Carrusel de fotos del hero (efecto "vídeo") ---- */
.hero-slideshow { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1);
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; animation: hero-kenburns 7s ease-out forwards; }
@keyframes hero-kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

.hero-slide-photo { background-size: cover; background-position: center; }

.hero-slide-placeholder {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.85rem;
  background: repeating-linear-gradient(135deg, var(--bg-800), var(--bg-800) 14px, var(--bg-900) 14px, var(--bg-900) 28px);
  color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-slide-placeholder svg { width: 46px; height: 46px; color: var(--gold-500); opacity: 0.75; }

.hero-scrim {
  position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(100deg,
    rgba(243,242,242,0.97) 0%,
    rgba(243,242,242,0.88) 32%,
    rgba(243,242,242,0.45) 62%,
    rgba(243,242,242,0.08) 100%);
}

.hero-arch {
  position: absolute; right: -6%; top: 50%; translate: 0 -50%; z-index: -2;
  width: min(50vw, 620px); opacity: 0.32; color: var(--gold-500);
  will-change: transform;
}
.hero-grain { position: absolute; inset: 0; z-index: -1; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active { animation: none; }
}
.hero-content { max-width: 780px; }
.hero-content .eyebrow { color: var(--gold-600); }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.6rem); color: var(--cream-50); }
.hero-title em { font-style: normal; font-weight: 500; color: var(--gold-600); }
.hero-sub { margin-top: 1.75rem; font-size: 1.15rem; color: var(--text-secondary); max-width: 54ch; }
.hero-actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- Buscador de propiedades en el hero (estilo portal) ---- */
.hero-search {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: end; gap: 1rem;
  background: var(--bg-800); border: 1px solid var(--border-subtle); border-radius: 8px;
  padding: 1.5rem; box-shadow: var(--shadow-card); max-width: 780px;
}
.hero-search-field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 160px; min-width: 150px; }
.hero-search-field label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.hero-search-field select {
  background: var(--bg-950); border: 1px solid var(--border-faint); border-radius: 4px; padding: 0.7rem 0.75rem;
  color: var(--cream-100); font: inherit; font-size: 0.88rem;
}
.hero-search-field select:focus { border-color: var(--gold-500); outline: none; }
.hero-search-submit { flex: 0 0 auto; padding: 0.85rem 1.6rem; }
@media (max-width: 640px) {
  .hero-search { padding: 1.15rem; }
  .hero-search-submit { width: 100%; justify-content: center; }
}
.hero-scroll-cue {
  position: absolute; bottom: 2.5rem; left: var(--gutter); display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
}
.hero-scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--gold-500), transparent); animation: pulse-line 2.4s ease-in-out infinite; }
@keyframes pulse-line { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Section shells ---------- */
section { padding: var(--section-pad) 0; position: relative; }
.section-alt { background: var(--bg-900); }
.section-border-top { border-top: 1px solid var(--border-faint); }

/* ---------- Cabecera de página interna (páginas sin hero) ---------- */
.page-header { padding: clamp(7.5rem, 15vw, 10.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-header .section-lede { margin-top: 1rem; max-width: 60ch; }

/* ---------- CTA franja (usado para cerrar la landing hacia Contacto) ---------- */
.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--bg-800); border: 1px solid var(--border-subtle); border-radius: 10px;
  padding: clamp(2rem, 5vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}
.cta-strip h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); color: var(--cream-50); }
.cta-strip p { color: var(--text-secondary); margin-top: 0.5rem; }

/* ---------- Teaser corto (usado en la landing para enlazar a páginas propias) ---------- */
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.teaser-grid .section-lede { margin-top: 1.25rem; }
.teaser-visual { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, var(--bg-800), var(--bg-950) 70%); display: flex; align-items: center; justify-content: center; }
.teaser-visual svg { width: 45%; color: var(--gold-500); opacity: 0.85; }
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } .teaser-visual { order: -1; aspect-ratio: 16/9; } }

/* ---------- Sobre nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-copy p { color: var(--text-secondary); margin-top: 1.25rem; }
.about-copy p:first-of-type { font-size: 1.15rem; color: var(--cream-100); }
.pillars { display: grid; gap: 1.75rem; }
.pillar { display: flex; gap: 1.25rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border-faint); }
.pillar:last-child { border-bottom: none; padding-bottom: 0; }
.pillar-num { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-500); flex-shrink: 0; width: 2.4rem; }
.pillar h3 { font-size: 1.1rem; color: var(--cream-50); margin-bottom: 0.4rem; }
.pillar p { color: var(--text-secondary); font-size: 0.95rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--bg-800); border: 1px solid var(--border-faint); border-radius: 6px;
  padding: 2.25rem 2rem; transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-subtle); box-shadow: var(--shadow-card); }
.service-icon { width: 42px; height: 42px; color: var(--gold-500); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.2rem; color: var(--cream-50); margin-bottom: 0.75rem; }
.service-card p { color: var(--text-secondary); font-size: 0.94rem; }
.service-card .tag { display: inline-block; margin-top: 1.25rem; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); }

/* ---------- Zona ---------- */
.zone-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.zone-list { display: grid; gap: 0; }
.zone-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--border-faint);
  transition: padding-left 0.35s var(--ease);
}
.zone-item:hover { padding-left: 0.75rem; }
.zone-item:first-child { border-top: 1px solid var(--border-faint); }
.zone-item h3 { font-size: 1.05rem; color: var(--cream-50); font-weight: 600; font-family: var(--font-sans); }
.zone-item span { color: var(--text-muted); font-size: 0.85rem; text-align: right; }
.zone-visual { position: relative; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, var(--bg-800), var(--bg-950) 70%); display: flex; align-items: center; justify-content: center; }
.zone-visual svg { width: 55%; color: var(--gold-500); opacity: 0.85; }

@media (max-width: 860px) { .zone-wrap { grid-template-columns: 1fr; } .zone-visual { order: -1; aspect-ratio: 16/9; } }

/* ---------- Propiedades: ficha tipo portal ---------- */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.property-card {
  border: 1px solid var(--border-faint); border-radius: 8px; overflow: hidden; background: var(--bg-800);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.property-card:hover { transform: translateY(-6px); border-color: var(--gold-500); box-shadow: var(--shadow-card); }
.property-media {
  position: relative;
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.6rem;
  background: repeating-linear-gradient(135deg, var(--bg-800), var(--bg-800) 10px, var(--bg-700) 10px, var(--bg-700) 20px);
  color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.property-media svg { width: 34px; height: 34px; color: var(--gold-500); opacity: 0.7; }
.property-media.has-photo { background: none; }
.property-media img { width: 100%; height: 100%; object-fit: cover; }

.property-badge {
  position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2;
  background: var(--gold-500); color: var(--cream-50); font-family: var(--font-sans);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 3px;
}
.fav-btn {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(243,242,242,0.85);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn svg { width: 17px; height: 17px; stroke: var(--cream-50); fill: none; stroke-width: 1.8; transition: fill 0.25s var(--ease), stroke 0.25s var(--ease); }
.fav-btn.is-fav svg { fill: var(--gold-500); stroke: var(--gold-600); }

.property-body { padding: 1.35rem 1.5rem 1.6rem; }
.property-price { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--gold-600); }
.property-ref { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-muted); white-space: nowrap; }
.property-body h3 { font-family: var(--font-sans); font-size: 1.02rem; color: var(--cream-100); font-weight: 600; margin-top: 0.5rem; }
.property-location { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem; }
.property-specs { display: flex; flex-wrap: wrap; gap: 0 0.9rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border-faint); }
.property-specs li { font-size: 0.82rem; color: var(--text-secondary); }
.property-specs li b { color: var(--cream-100); font-weight: 600; }
.property-cta { display: block; margin-top: 1.1rem; width: 100%; justify-content: center; padding: 0.7rem 1rem; font-size: 0.78rem; }
.properties-note { margin-top: 2.5rem; text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.properties-count { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.5rem; }

/* ---- Barra de filtros (propiedades.html) ---- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: end; gap: 1.25rem;
  background: var(--bg-800); border: 1px solid var(--border-faint); border-radius: 8px;
  padding: 1.5rem; margin-bottom: 2.5rem;
}
.filter-field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 160px; min-width: 150px; }
.filter-field label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.filter-field select {
  background: var(--bg-950); border: 1px solid var(--border-faint); border-radius: 4px; padding: 0.7rem 0.75rem;
  color: var(--cream-100); font: inherit; font-size: 0.88rem;
}
.filter-field select:focus { border-color: var(--gold-500); outline: none; }
.filter-reset { flex: 0 0 auto; background: none; border: none; color: var(--gold-600); font-size: 0.82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 0.7rem 0; }
.properties-empty { text-align: center; color: var(--text-muted); padding: 3rem 1rem; }

/* ---------- Franja "explorar más" (versión mínima en landing) ---------- */
.explore-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-faint); border: 1px solid var(--border-faint); border-radius: 8px; overflow: hidden; }
.explore-item {
  background: var(--bg-800); padding: 1.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background 0.3s var(--ease);
}
.explore-item:hover { background: var(--bg-900); }
.explore-item span { font-size: 0.98rem; font-weight: 600; color: var(--cream-100); }
.explore-item svg { width: 16px; height: 16px; color: var(--gold-500); flex-shrink: 0; transition: transform 0.3s var(--ease); }
.explore-item:hover svg { transform: translateX(4px); }
@media (max-width: 720px) { .explore-strip { grid-template-columns: 1fr; } }

/* ---------- Blog: listado de artículos ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }
.post-card {
  display: flex; flex-direction: column; border: 1px solid var(--border-faint); border-radius: 8px; overflow: hidden;
  background: var(--bg-800); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.post-card:hover { transform: translateY(-6px); border-color: var(--gold-500); box-shadow: var(--shadow-card); }
.post-card-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-category { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-600); }
.post-card h3 { font-size: 1.1rem; color: var(--cream-100); }
.post-excerpt { color: var(--text-secondary); font-size: 0.92rem; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }
.post-meta a { color: var(--gold-600); font-weight: 600; }

/* ---------- Artículo individual ---------- */
.article-header { padding: clamp(7.5rem, 15vw, 10.5rem) 0 2.5rem; }
.article-meta { display: flex; gap: 1rem; align-items: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }
.article-body { max-width: 68ch; }
.article-body p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; margin-top: 1.4rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.25rem; color: var(--cream-50); }
.article-body ul { margin-top: 1rem; padding-left: 1.3rem; color: var(--text-secondary); }
.article-body li { margin-top: 0.5rem; }
.article-back { margin-top: 3rem; }

/* ---------- Blog teaser ---------- */
.blog-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2.5rem;
  background: var(--bg-800); border: 1px solid var(--border-subtle); border-radius: 10px; padding: clamp(2rem, 5vw, 3.5rem); }
.blog-teaser-copy { max-width: 560px; }
.blog-teaser h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); color: var(--cream-50); }
.blog-teaser p { margin-top: 1rem; color: var(--text-secondary); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-info dl { display: grid; gap: 1.5rem; margin-top: 2rem; }
.contact-info dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 0.35rem; }
.contact-info dd { color: var(--cream-100); font-size: 1.02rem; }
.contact-map { margin-top: 2rem; aspect-ratio: 16/10; border-radius: 8px; border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, var(--bg-800), var(--bg-950)); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.82rem; text-align: center; padding: 1.5rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.form-field input, .form-field textarea {
  background: var(--bg-800); border: 1px solid var(--border-faint); border-radius: 4px; padding: 0.9rem 1rem;
  color: var(--cream-100); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(182,130,53,0.15); outline: none; }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-consent { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.82rem; color: var(--text-muted); }
.form-consent input { margin-top: 0.25rem; accent-color: var(--gold-500); }
.form-consent a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 2px; }
.form-status { font-size: 0.88rem; margin-top: 0.5rem; min-height: 1.2em; }
.form-status.is-success { color: #3f7a3f; }
.form-status.is-error { color: #a63b3b; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-900); border-top: 1px solid var(--border-faint); padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.footer-brand p { margin-top: 1.25rem; color: var(--text-muted); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.25rem; }
.footer-col ul { display: grid; gap: 0.85rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.92rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.75rem; border-top: 1px solid var(--border-faint);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--text-muted); font-size: 0.82rem; }

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

/* Counter placeholder note box (used sparingly, e.g. missing-data callouts) */
.data-note {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--gold-600); background: rgba(182,130,53,0.12); border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.7rem; border-radius: 999px; margin-top: 0.75rem;
}
