/* ════════════════════════════════════════════════════════════════════════
   KOEN GROUP — Sitio corporativo
   Sistema de diseño: Fraunces (display) · DM Sans (texto) · DM Mono (labels)
   ════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

/* ── Variables de tema ───────────────────────────────────────────────── */
:root {
  --background: #08080A;
  --foreground: #F7F4EE;
  --card: #111110;
  --secondary: #1A1918;
  --border: rgba(247, 244, 238, 0.1);
  --primary: #1E3C54;
  --primary-hover: #16293A;
  --whatsapp: #25D366;
  --whatsapp-hover: #1aa851;
  --accent-number: #97B9C2;

  --fg-15: rgba(247, 244, 238, 0.15);
  --fg-20: rgba(247, 244, 238, 0.20);
  --fg-25: rgba(247, 244, 238, 0.25);
  --fg-28: rgba(247, 244, 238, 0.28);
  --fg-30: rgba(247, 244, 238, 0.30);
  --fg-35: rgba(247, 244, 238, 0.35);
  --fg-38: rgba(247, 244, 238, 0.38);
  --fg-40: rgba(247, 244, 238, 0.40);
  --fg-45: rgba(247, 244, 238, 0.45);
  --fg-50: rgba(247, 244, 238, 0.50);
  --fg-55: rgba(247, 244, 238, 0.55);
  --fg-60: rgba(247, 244, 238, 0.60);
  --fg-65: rgba(247, 244, 238, 0.65);
  --fg-70: rgba(247, 244, 238, 0.70);

  --transition: 0.2s ease;
}

body.light-mode {
  --background: #F5F0EB;
  --foreground: #14100D;
  --card: #FFFFFF;
  --secondary: #EDE8E0;
  --border: rgba(20, 16, 13, 0.16);

  --fg-15: rgba(20, 16, 13, 0.32);
  --fg-20: rgba(20, 16, 13, 0.38);
  --fg-25: rgba(20, 16, 13, 0.42);
  --fg-28: rgba(20, 16, 13, 0.45);
  --fg-30: rgba(20, 16, 13, 0.48);
  --fg-35: rgba(20, 16, 13, 0.52);
  --fg-38: rgba(20, 16, 13, 0.55);
  --fg-40: rgba(20, 16, 13, 0.58);
  --fg-45: rgba(20, 16, 13, 0.62);
  --fg-50: rgba(20, 16, 13, 0.66);
  --fg-55: rgba(20, 16, 13, 0.70);
  --fg-60: rgba(20, 16, 13, 0.75);
  --fg-65: rgba(20, 16, 13, 0.80);
  --fg-70: rgba(20, 16, 13, 0.85);
  --accent-number: #1E3C54;
}

/* ── Reset base ──────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { text-decoration: none; color: inherit; }
input, select, textarea { font-family: inherit; }

.max-w-7xl { max-width: 1280px; margin-inline: auto; }
.max-w-3xl { max-width: 768px; margin-inline: auto; }

/* ── Tipografía ──────────────────────────────────────────────────────── */
.font-display {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  color: var(--foreground);
}
.font-mono { font-family: 'DM Mono', monospace; }

.eyebrow-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border: 1px solid var(--fg-40); color: var(--foreground); }
.btn-outline:hover { border-color: var(--foreground); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-hover); }

/* ── Status badges ───────────────────────────────────────────────────── */
.status-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9.9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  display: inline-block;
}
.status-construccion { background: rgba(51, 64, 74,0.15); color: var(--primary); }
.status-entregado { background: var(--fg-15); color: var(--fg-70); }
.status-proximamente { background: var(--fg-15); color: var(--fg-50); }
.status-operacion { background: rgba(37,211,102,0.12); color: var(--whatsapp); }
.status-confirmada { color: var(--primary); background: transparent; }
.status-disponible { color: var(--whatsapp); background: transparent; }
.status-negociacion { color: var(--fg-55); background: transparent; }
.status-apertura { background: rgba(51, 64, 74,0.15); color: var(--primary); }
.status-comercializacion { background: rgba(37,211,102,0.12); color: var(--whatsapp); }
.status-planificacion { background: var(--fg-15); color: var(--fg-50); }
.hero-tag-status {
  font-family: 'DM Mono', monospace; font-size: 13.2px; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0.75rem 1.25rem; display: inline-block;
  background: var(--primary); color: #fff;
}

/* ── Inputs de formulario ────────────────────────────────────────────── */
.field-input, .field-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--fg-15);
  padding: 0.75rem 0;
  color: var(--foreground);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition);
}
.field-input::placeholder { color: var(--fg-30); }
.field-input:focus, .field-select:focus { outline: none; border-color: var(--primary); }
.field-select { color: var(--fg-65); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23F7F4EE' fill-opacity='0.6' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; }
body.light-mode .field-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231C1714' fill-opacity='0.6' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); }
textarea.field-input { resize: none; }

/* ── Header / Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--primary);
  height: 80px;
  border-bottom: 4px solid var(--accent-number);
}
.navbar-inner {
  max-width: 1280px; margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 1.5rem;
}
.navbar-logo img { height: 38.4px; width: auto; object-fit: contain; }
@media (max-width: 400px) { .navbar-logo img { height: 30px; } }
.navbar-logo { transition: opacity var(--transition); }
.navbar-logo:hover { opacity: 0.85; }

.navbar-nav { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 1024px) { .navbar-nav { display: flex; } }
.navbar-nav button {
  font-family: 'DM Mono', monospace; font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
  transition: color var(--transition); padding-bottom: 2px; white-space: nowrap;
}
.navbar-nav button:hover { color: #fff; }
.navbar-nav button.active { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.6); }

.navbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.navbar-social { display: flex; align-items: center; gap: 0.75rem; margin-right: 0.25rem; }
.navbar-social a { color: rgba(255,255,255,0.75); transition: color var(--transition); display: flex; }
.navbar-social a:hover { color: #fff; }
@media (max-width: 480px) { .navbar-social { display: none; } }
.theme-toggle {
  border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8);
  padding: 0.5rem; transition: color var(--transition), border-color var(--transition);
  display: flex; align-items: center;
}
.theme-toggle:hover { color: #fff; border-color: #fff; }
.mobile-menu-btn { display: flex; color: rgba(255,255,255,0.8); padding: 0.5rem; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.navbar-mobile {
  display: none; border-top: 1px solid rgba(255,255,255,0.15);
  background: var(--primary); padding: 1rem 1.5rem; flex-direction: column;
}
.navbar-mobile.open { display: flex; }
@media (min-width: 1024px) { .navbar-mobile { display: none !important; } }
.navbar-mobile button {
  text-align: left; font-family: 'DM Mono', monospace; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.65);
}
.navbar-mobile button.active { color: #fff; }

/* ── Submenu de Proyectos (desktop dropdown + mobile expandido) ─────── */
.navbar-dropdown { position: relative; display: flex; align-items: center; }
.navbar-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.navbar-dropdown-chevron { transition: transform var(--transition); }
.navbar-dropdown:hover .navbar-dropdown-chevron,
.navbar-dropdown:focus-within .navbar-dropdown-chevron { transform: rotate(180deg); }
.navbar-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--primary); min-width: 190px; padding: 0.5rem 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
  box-shadow: 0 16px 28px rgba(0,0,0,0.25);
}
.navbar-dropdown:hover .navbar-dropdown-menu,
.navbar-dropdown:focus-within .navbar-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.navbar-dropdown-menu a {
  display: block; padding: 0.65rem 1.25rem; font-family: 'DM Mono', monospace; font-size: 13px;
  letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.75); white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.navbar-dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.navbar-mobile-item { display: flex; flex-direction: column; }
.navbar-mobile-submenu { display: flex; flex-direction: column; padding: 0 0 0.5rem 1rem; }
.navbar-mobile-submenu a {
  font-family: 'DM Mono', monospace; font-size: 11.7px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); padding: 0.5rem 0; transition: color var(--transition);
}
.navbar-mobile-submenu a:hover { color: #fff; }

/* ── Hero (home) ─────────────────────────────────────────────────────── */
.hero {
  position: relative; height: 96vh; min-height: 600px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-attachment: fixed;
  opacity: 0; transition: opacity 0.7s;
}
@media (max-width: 768px) { .hero-slide { background-attachment: scroll; } }
.hero-slide.active { opacity: 1; }
.hero-slide.fading { opacity: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: none;
}
.hero-content { position: relative; z-index: 10; width: 100%; padding-bottom: 1rem; transition: opacity 0.4s; }
@media (min-width: 640px) { .hero-content { padding-bottom: 1.5rem; } }
.hero-content.fading { opacity: 0; }
.hero-headline {
  font-family: 'DM Sans', sans-serif; font-weight: 800; color: #fff; line-height: 1.05;
  font-size: 1.26rem; margin-bottom: 1rem; max-width: 48rem; white-space: pre-line;
}
@media (min-width: 640px) { .hero-headline { font-size: 2.1rem; } }
@media (min-width: 768px) { .hero-headline { font-size: 2.52rem; } }
.hero-headline-light { font-weight: 300; letter-spacing: 0.01em; }
.hero-sub {
  color: rgba(255,255,255,0.75); font-size: 0.9375rem; margin-bottom: 2rem;
  max-width: 36rem; line-height: 1.6;
}
@media (min-width: 640px) { .hero-sub { font-size: 1rem; } }
@media (min-width: 768px) { .hero-sub { font-size: 1.125rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-controls { display: flex; align-items: center; gap: 1rem; }
.hero-dots { display: flex; gap: 0.5rem; align-items: center; }
.hero-dot { border-radius: 999px; background: rgba(255,255,255,0.3); width: 6px; height: 6px; transition: all 0.3s; }
.hero-dot:hover { background: rgba(255,255,255,0.6); }
.hero-dot.active { background: #fff; width: 28px; height: 6px; }
.hero-arrows { display: flex; gap: 0.5rem; margin-left: auto; }
.hero-arrow {
  border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7);
  padding: 0.5rem; display: flex; transition: border-color var(--transition), color var(--transition);
}
.hero-arrow:hover { border-color: #fff; color: #fff; }
.hero-counter {
  display: none; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
}
@media (min-width: 768px) { .hero-counter { display: block; } }

/* ── Secciones genéricas ─────────────────────────────────────────────── */
.section { padding: 4rem 1.5rem; max-width: 1280px; margin-inline: auto; }
@media (min-width: 640px) { .section { padding: 6rem 1.5rem; } }
.section-border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-border-t { border-top: 1px solid var(--border); }
.section-border-b { border-bottom: 1px solid var(--border); }

/* ── KOEN, el Espacio ────────────────────────────────────────────────── */
.espacio-section {
  background: url('../img/darkblue.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
  padding: 4rem 1.5rem;
}
@media (min-width: 640px) { .espacio-section { padding: 6rem 1.5rem; } }
@media (max-width: 768px) { .espacio-section { background-attachment: scroll; } }
.espacio-inner { max-width: 1280px; margin-inline: auto; }
.espacio-section .eyebrow-label { color: rgba(255,255,255,0.6); }
.espacio-section .section-title { color: #fff; max-width: 60rem; }
.espacio-text-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .espacio-text-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.espacio-text-grid p { color: rgba(255,255,255,0.7); line-height: 1.7; font-size: 0.9375rem; }

/* ── Stats grid ──────────────────────────────────────────────────────── */
.stats-block {
  display: grid; gap: 2rem; max-width: 1280px; margin-inline: auto; padding: 2.8rem 1.5rem;
}
@media (min-width: 768px) { .stats-block { grid-template-columns: 30fr 70fr; gap: 3rem; align-items: center; } }

.stats-head { text-align: left; }
.stats-title { font-weight: 300; font-size: 1.375rem; line-height: 1.4; color: var(--foreground); }
@media (min-width: 640px) { .stats-title { font-size: 1.625rem; } }

.stats-grid {
  display: flex; flex-wrap: wrap; gap: 0.875rem;
}
.stat-item {
  flex: 1 1 100%; text-align: center; border: 1px solid var(--border); background: var(--card);
  border-radius: 1rem; padding: 1.25rem 1rem;
}
@media (min-width: 480px) { .stat-item { flex-basis: calc(50% - 0.4375rem); } }
@media (min-width: 768px) { .stat-item { flex-basis: calc(33.333% - 0.6rem); } }
.stat-value { font-family: 'DM Sans', sans-serif; font-size: 1.375rem; font-weight: 700; color: var(--accent-number); margin-bottom: 0.375rem; }
@media (min-width: 640px) { .stat-value { font-size: 1.625rem; } }
@media (min-width: 768px) { .stat-value { font-size: 1.75rem; } }
.stat-label { font-family: 'DM Mono', monospace; font-size: 10.8px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-45); }

.trust-description {
  max-width: 42rem; margin-top: 0.75rem; font-size: 0.9375rem; color: var(--fg-45); line-height: 1.8;
}
.trust-grid {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-card {
  border: 1px solid var(--border); background: var(--card);
  padding: 2rem; border-radius: 1.25rem; transition: border-color var(--transition), transform var(--transition);
}
.trust-card:hover { border-color: rgba(51, 64, 74, 0.45); transform: translateY(-3px); }
.trust-card-value {
  font-family: 'Fraunces', serif; font-size: 2.5rem; font-weight: 300; color: var(--primary); margin-bottom: 0.75rem;
}
.trust-card-label {
  font-family: 'DM Mono', monospace; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-50); line-height: 1.8;
}

/* ── Cards de proyectos ──────────────────────────────────────────────── */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .section-head { margin-bottom: 3rem; } }
.section-title { font-size: 1.875rem; }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }
.section-title-nowrap { white-space: nowrap; font-size: clamp(1.05rem, 4.2vw, 3rem); }
.see-all-link { display: flex; align-items: center; gap: 0.5rem; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-40); transition: color var(--transition); }
.see-all-link:hover { color: var(--primary); }

.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  border: 1px solid var(--border); background: var(--card); cursor: pointer;
  transition: border-color var(--transition);
}
.project-card:hover { border-color: rgba(51, 64, 74,0.4); }
.project-card-img { position: relative; height: 13rem; overflow: hidden; background: var(--secondary); }
@media (min-width: 640px) { .project-card-img { height: 14rem; } }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card-badge { position: absolute; top: 0.75rem; left: 0.75rem; }
.project-card-body { padding: 1.25rem; }
@media (min-width: 640px) { .project-card-body { padding: 1.5rem; } }
.project-card-type { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-35); margin-bottom: 0.375rem; }
.project-card-name { font-family: 'Fraunces', serif; font-size: 1.125rem; font-weight: 300; color: var(--foreground); margin-bottom: 0.5rem; }
@media (min-width: 640px) { .project-card-name { font-size: 1.25rem; } }
.project-card-loc { font-size: 0.75rem; color: var(--fg-45); display: flex; align-items: center; gap: 0.375rem; }
.service-card-desc { font-size: 0.9375rem; color: var(--fg-55); line-height: 1.6; }

/* ── Bloque inversión (home) ─────────────────────────────────────────── */
.invest-block { background: var(--primary); padding: 2.8rem 1.5rem; }
@media (min-width: 640px) { .invest-block { padding: 4.2rem 1.5rem; } }
.invest-block-inner { max-width: 1280px; margin-inline: auto; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .invest-block-inner { grid-template-columns: 70fr 30fr; gap: 4rem; } }
.invest-eyebrow { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.invest-title { font-family: 'Fraunces', serif; font-weight: 300; color: #fff; font-size: 1.875rem; line-height: 1.05; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .invest-title { font-size: 2.25rem; } }
@media (min-width: 768px) { .invest-title { font-size: 3rem; } }
.invest-text { color: rgba(255,255,255,0.75); margin-bottom: 2rem; line-height: 1.6; font-size: 0.9375rem; }
.invest-btn-white {
  padding: 0.875rem 1.75rem; background: #fff; color: var(--primary);
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700; transition: background var(--transition);
}
.invest-btn-white:hover { background: rgba(255,255,255,0.9); }
.invest-stats { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.invest-stat { border: 1px solid rgba(255,255,255,0.2); padding: 0.875rem; }
@media (min-width: 640px) { .invest-stat { padding: 1.05rem; } }
.invest-stat-value { font-family: 'Fraunces', serif; font-size: 1.875rem; font-weight: 300; color: #fff; margin-bottom: 0.25rem; }
@media (min-width: 640px) { .invest-stat-value { font-size: 2.25rem; } }
.invest-stat-label { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ── Noticias ────────────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { cursor: pointer; }
.news-card-img { height: 12rem; overflow: hidden; background: var(--secondary); margin-bottom: 1rem; }
@media (min-width: 640px) { .news-card-img { height: 13rem; margin-bottom: 1.25rem; } }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-meta { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; }
.news-card-title { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 300; color: var(--foreground); line-height: 1.4; transition: color var(--transition); }
@media (min-width: 640px) { .news-card-title { font-size: 1.125rem; } }
.news-card:hover .news-card-title { color: var(--primary); }

/* ── Carrusel en loop de proyectos destacados (home) ──────────────────── */
.featured-slider {
  display: flex; gap: 1.25rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.featured-track { display: flex; gap: 1.25rem; width: max-content; animation: featured-scroll 20s linear infinite; }
.featured-slider:hover .featured-track { animation-play-state: paused; }
@keyframes featured-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.featured-card {
  position: relative; display: block; overflow: hidden; flex: 0 0 auto;
  width: 16rem; aspect-ratio: 4 / 5; background: var(--card);
}
@media (min-width: 640px) { .featured-card { width: 19rem; } }
@media (min-width: 1024px) { .featured-card { width: 21rem; aspect-ratio: 3 / 4; } }
.featured-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; transform: scale(1.03); }
.featured-card:hover .featured-card-img { transform: scale(1.08); }
.featured-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.15) 55%, transparent);
  transition: background 0.4s;
}
.featured-card:hover .featured-card-overlay { background: rgba(0,0,0,0.7); }
.featured-card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; }
.featured-card-name {
  font-family: 'DM Sans', sans-serif; font-weight: 700; color: #fff;
  font-size: 1.0625rem; line-height: 1.2;
}
.featured-card-desc {
  color: rgba(255,255,255,0.75); font-size: 0.8125rem; line-height: 1.5;
  margin-top: 0.5rem; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.featured-card:hover .featured-card-desc { max-height: 7rem; opacity: 1; }

/* ── CTA final ───────────────────────────────────────────────────────── */
.final-cta { padding: 5rem 1rem; text-align: center; }
@media (min-width: 640px) { .final-cta { padding: 7rem 1rem; } }
.final-cta .section-title { max-width: 36rem; margin: 0 auto 2.5rem; }
@media (min-width: 640px) { .final-cta .section-title { margin-bottom: 2.5rem; } }
.cta-group { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Page hero (interior pages with bg image) ───────────────────────── */
.page-hero {
  position: relative; padding: 6rem 1.5rem; background-size: cover; background-position: center;
}
@media (min-width: 640px) { .page-hero { padding: 8rem 1.5rem; } }
.page-hero-fixed { background-attachment: fixed; }
@media (max-width: 768px) { .page-hero-fixed { background-attachment: scroll; } }
.page-hero-overlay-r {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75), rgba(0,0,0,0.5), rgba(0,0,0,0.25)),
              linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.85) 100%);
}
.page-hero-overlay-b { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,1)); }
.page-hero-overlay-blend { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.78), var(--background) 100%); }
#blog-hero { padding-top: 8rem; padding-bottom: 1.75rem; min-height: 56vh; display: flex; align-items: flex-end; }
@media (min-width: 640px) { #blog-hero { padding-top: 9.6rem; padding-bottom: 2.25rem; } }
#blog-hero .page-hero-overlay-blend { background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.1) 45%, var(--background) 100%); }
#proj-hero { padding-top: 10rem; padding-bottom: 1.75rem; min-height: 85vh; display: flex; align-items: flex-end; }
@media (min-width: 640px) { #proj-hero { padding-top: 12rem; padding-bottom: 2.25rem; } }
/* El degradé se arma mezclando var(--background) con transparencia, así
   se oscurece en modo oscuro y se aclara en modo claro automáticamente. */
#proj-hero .page-hero-overlay-blend {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--background) 8%, transparent),
    color-mix(in srgb, var(--background) 35%, transparent) 50%,
    color-mix(in srgb, var(--background) 78%, transparent) 78%,
    color-mix(in srgb, var(--background) 94%, transparent) 92%,
    var(--background) 100%);
}
@media (max-width: 767px) {
  #proj-hero .page-hero-overlay-blend {
    background: linear-gradient(to bottom,
      color-mix(in srgb, var(--background) 12%, transparent),
      color-mix(in srgb, var(--background) 42%, transparent) 40%,
      color-mix(in srgb, var(--background) 82%, transparent) 70%,
      color-mix(in srgb, var(--background) 96%, transparent) 94%,
      var(--background) 100%);
  }
}
.article-hero .page-hero-overlay-blend { background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.15) 45%, var(--background) 100%); }
#proj-hero .page-hero-content { max-width: 1232px; }
/* ── Uso y cifras del proyecto, overlay sobre la foto del hero ──────── */
/* Colores ligados al tema: el degradé de #proj-hero se funde con
   var(--background) (oscuro en modo oscuro, claro en modo claro), así
   que el texto usa las mismas variables del sitio para invertirse con él. */
.use-stats-bar { margin-top: 3.5rem; }
.use-stats-grid { display: flex; flex-wrap: wrap; }
.use-stat-item { flex: 1 1 9rem; min-width: 7.5rem; text-align: center; padding: 0 1.25rem 1.5rem; border-left: 1px solid var(--border); }
.use-stat-item:first-child { border-left: none; padding-left: 0; }
.use-stat-item svg { width: 56px; height: 56px; color: var(--fg-70); margin-bottom: 0.85rem; }
.use-stat-value { font-family: 'DM Sans', sans-serif; font-size: 2.25rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.35rem; }
@media (min-width: 640px) { .use-stat-value { font-size: 2.75rem; } }
.use-stat-label { font-family: 'DM Mono', monospace; font-size: 12.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-55); line-height: 1.5; }
@media (max-width: 479px) { .use-stat-item { flex-basis: 45%; border-left: none; border-top: 1px solid var(--border); padding-top: 1.25rem; padding-left: 0; } }
.use-type-row { border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 0.25rem; }
.use-type-title { font-family: 'DM Mono', monospace; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-number); margin-bottom: 0.35rem; font-weight: 700; }
.use-type-tags { font-family: 'DM Mono', monospace; font-size: 12.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-60); }

.hero-desc-grid { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hero-desc-grid { gap: 1.5rem; grid-template-columns: repeat(2, 1fr); } }
.page-hero-logo { display: block; height: 5.46rem; width: auto; }
@media (min-width: 640px) { .page-hero-logo { height: 6.825rem; } }
.page-hero-overlay-dark { position: absolute; inset: 0; background: rgba(0,0,0,0.8); }
.page-hero-content { position: relative; z-index: 10; width: 100%; max-width: 1280px; margin-inline: auto; }
.page-hero-title {
  font-family: 'DM Sans', sans-serif; font-weight: 800; color: #fff; line-height: 1;
  font-size: 2.25rem; max-width: 42rem;
}
@media (min-width: 640px) { .page-hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .page-hero-title { font-size: 4.5rem; } }
.page-hero-sub { margin-top: 1.25rem; color: rgba(255,255,255,0.75); max-width: 28rem; font-size: 0.9375rem; line-height: 1.6; }
@media (min-width: 640px) { .page-hero-sub { margin-top: 1.5rem; } }
.proj-desc-flat { color: var(--fg-70); font-size: 1.03rem; line-height: 1.6; text-align: justify; }

.pt-navbar { padding-top: 80px; }

/* ── Proyectos: carousel principal ──────────────────────────────────── */
.proj-intro p { color: var(--fg-50); max-width: 32rem; line-height: 1.6; font-size: 0.9375rem; }

/* ── Blog ────────────────────────────────────────────────────────────── */
.blog-date { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-35); margin-bottom: 0.75rem; }
.blog-excerpt { color: var(--fg-70); line-height: 1.6; font-size: 1rem; margin-bottom: 1.25rem; }
.blog-body { color: var(--fg-55); line-height: 1.7; font-size: 0.9375rem; }

/* ── Blog: tarjeta secundaria (con link a artículo aparte) ────────────── */
.blog-card { display: grid; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .blog-card { grid-template-columns: 16rem 1fr; gap: 2rem; align-items: center; } }
.blog-card-img { height: 12rem; background: var(--secondary); overflow: hidden; }
@media (min-width: 640px) { .blog-card-img { height: 11rem; } }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-title { font-family: 'Fraunces', serif; font-size: 1.375rem; font-weight: 300; line-height: 1.3; color: var(--foreground); margin: 0.5rem 0 0.75rem; transition: color var(--transition); }
.blog-card:hover .blog-card-title { color: var(--primary); }
.article-read-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); margin-top: 0.75rem; }
.article-read-link svg { transition: transform var(--transition); }
.blog-card:hover .article-read-link svg { transform: translateX(3px); }

/* ── Artículo completo ─────────────────────────────────────────────────── */
.article-back { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-45); margin-bottom: 2rem; transition: color var(--transition); }
.article-back:hover { color: var(--foreground); }
.article-title { font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1.75rem; line-height: 1.2; color: var(--foreground); margin: 1rem 0 1.25rem; }
@media (min-width: 640px) { .article-title { font-size: 2.25rem; } }
.article-cover-square { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--secondary); margin: 1.75rem 0 2.5rem; }
.article-cover-square img { width: 100%; height: 100%; object-fit: cover; }
.article-source { font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-35); margin-bottom: 2rem; }
.article-body .lead { color: var(--fg-70); line-height: 1.7; font-size: 1.0625rem; margin-bottom: 1.75rem; }
.article-body p { color: var(--fg-60); line-height: 1.75; font-size: 0.9375rem; margin-bottom: 1.5rem; }
.article-body h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 1.5rem; color: var(--foreground); line-height: 1.3; margin: 2.75rem 0 1.25rem; }
.article-body .q { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.0625rem; color: var(--foreground); line-height: 1.4; margin: 2.25rem 0 0.75rem; }
.article-body blockquote { border-left: 2px solid var(--primary); padding-left: 1.25rem; margin: 2rem 0; font-family: 'Fraunces', serif; font-weight: 300; font-size: 1.1875rem; line-height: 1.5; color: var(--foreground); }
.article-figure { margin: 2.5rem 0; }
.article-figure img { width: 100%; height: 22rem; object-fit: cover; }
.article-figure figcaption { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-35); margin-top: 0.75rem; }
.article-attribution { display: flex; align-items: center; gap: 1.25rem; margin: 2.25rem 0 1rem; }
.article-attribution img { width: 5.5rem; height: 5.5rem; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.article-attribution .name { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.9375rem; color: var(--foreground); }
.article-attribution .role { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-40); margin-top: 0.125rem; }

.proj-main { display: flex; flex-direction: column; border: 1px solid var(--border); }
@media (min-width: 1024px) { .proj-main { display: grid; grid-template-columns: repeat(5, 1fr); } }
.proj-main-img { position: relative; height: 18rem; background: var(--secondary); overflow: hidden; grid-column: span 3; }
@media (min-width: 640px) { .proj-main-img { height: 24rem; } }
@media (min-width: 1024px) { .proj-main-img { height: 500px; } }
.proj-slides { position: absolute; inset: 0; }
.proj-slide { position: absolute; inset: -2%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.7s; }
.proj-slide.active { opacity: 1; }
.proj-main-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65), transparent); }
.proj-main-img-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem; }
@media (min-width: 640px) { .proj-main-img-info { padding: 2rem; } }
.proj-main-img-info .pname { font-family: 'DM Sans', sans-serif; font-size: 1.25rem; font-weight: 800; color: #fff; margin-top: 0.25rem; }
@media (min-width: 640px) { .proj-main-img-info .pname { font-size: 1.5rem; } }
.proj-main-img-info .ploc { font-size: 0.75rem; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 0.375rem; margin-top: 0.375rem; }
.proj-main-arrows { position: absolute; top: 1rem; right: 1rem; display: flex; gap: 0.5rem; }
.proj-arrow-btn { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 0.625rem; display: flex; transition: background var(--transition); }
.proj-arrow-btn:hover { background: rgba(0,0,0,0.8); }
.proj-zoom-btn {
  position: absolute; bottom: 1rem; right: 1rem; z-index: 5;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  padding: 0.625rem; display: flex; transition: background var(--transition);
}
@media (min-width: 640px) { .proj-zoom-btn { bottom: 1.25rem; right: 1.25rem; } }
.proj-zoom-btn:hover { background: rgba(0,0,0,0.8); }

/* ── Lightbox de foto ampliada ───────────────────────────────────────── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center; padding: 2rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 0.625rem; display: flex;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(0,0,0,0.8); }

.proj-info-panel {
  grid-column: span 2; background: var(--secondary); padding: 1.25rem;
  display: flex; flex-direction: column; justify-content: space-between;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) { .proj-info-panel { padding: 2rem; } }
@media (min-width: 1024px) { .proj-info-panel { border-top: none; border-left: 1px solid var(--border); } }
.proj-counter { font-family: 'DM Mono', monospace; font-size: 9.9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--fg-45); margin-bottom: 1.5rem; }
@media (min-width: 640px) { .proj-counter { margin-bottom: 1.75rem; } }
.proj-desc { font-size: 1.03rem; color: var(--fg-70); line-height: 1.6; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .proj-desc { margin-bottom: 2rem; } }
/* ── Carrusel de tipologías (locales / suites / oficinas...) ────────── */
.proj-typology-carousel { width: 100%; margin-top: 2rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .proj-typology-carousel { margin-top: 2.25rem; margin-bottom: 2.5rem; } }
.proj-typology-slides { position: relative; width: 100%; min-height: 9.5rem; }
.proj-typology-slide { position: absolute; inset: 0; width: 100%; opacity: 0; visibility: hidden; transition: opacity 0.5s ease; }
.proj-typology-slide.active { position: relative; opacity: 1; visibility: visible; }
.proj-typology-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.proj-typology-name { font-family: 'DM Sans', sans-serif; font-size: 1.75rem; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; color: var(--foreground); }
@media (min-width: 640px) { .proj-typology-name { font-size: 2.1rem; } }
.proj-typology-specs { display: flex; flex-direction: column; gap: 0.85rem; }
.proj-typology-specs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.proj-typology-specs .l { font-family: 'DM Mono', monospace; font-size: 12.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-45); }
.proj-typology-specs .v { font-size: 1.5rem; font-weight: 700; color: var(--accent-number); line-height: 1.1; }
@media (min-width: 640px) { .proj-typology-specs .v { font-size: 1.75rem; } }
.proj-typology-status { flex-shrink: 0; display: inline-block; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.45rem 0.9rem; border-radius: 999px; }
.proj-typology-status-available { color: var(--whatsapp); background: rgba(37,211,102,0.12); }
.proj-typology-status-sold { color: var(--fg-55); background: var(--fg-15); }
.proj-typology-status-below { margin-bottom: 1.25rem; margin-top: -0.5rem; }
.proj-typology-dots { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.proj-typology-dot { border-radius: 999px; background: var(--fg-25); width: 10px; height: 10px; transition: all 0.3s; }
.proj-typology-dot:hover { background: var(--fg-45); }
.proj-typology-dot.active { background: var(--primary); width: 34px; height: 10px; }

.proj-specs-mini { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem; margin-top: 2rem; }
@media (min-width: 640px) { .proj-specs-mini { gap: 1.25rem; margin-bottom: 2.5rem; margin-top: 2.25rem; } }
.proj-specs-mini .l { font-family: 'DM Mono', monospace; font-size: 12.1px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-45); margin-bottom: 0.5rem; }
.proj-specs-mini .v { font-size: 1.6rem; font-weight: 700; color: var(--accent-number); line-height: 1.1; }
@media (min-width: 640px) { .proj-specs-mini .v { font-size: 1.9rem; } }
.proj-progress-wrap { margin-bottom: 1.5rem; }
@media (min-width: 640px) { .proj-progress-wrap { margin-bottom: 2rem; } }
.proj-progress-head { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.proj-progress-head span:first-child { font-family: 'DM Mono', monospace; font-size: 9.9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-45); }
.proj-progress-head span:last-child { font-family: 'DM Mono', monospace; font-size: 9.9px; color: var(--primary); }
.proj-progress-track { height: 1px; background: var(--fg-15); }
.proj-progress-fill { height: 1px; background: var(--primary); transition: width 0.7s; }

.proj-info-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.proj-info-actions .btn-full { width: 100%; padding: 0.875rem; background: transparent; border: 1px solid var(--fg-25); color: var(--foreground); font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; transition: border-color var(--transition), color var(--transition); }
.proj-info-actions .btn-full:hover { border-color: var(--foreground); }
.proj-info-actions-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.proj-mini-btn { padding: 0.75rem; background: var(--primary); color: #fff; font-family: 'DM Mono', monospace; font-size: 9.9px; letter-spacing: 0.18em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 0.375rem; transition: background var(--transition); }
.proj-mini-btn:hover { background: var(--primary-hover); }
.proj-mini-btn-wa { background: var(--whatsapp); color: #fff; }
.proj-mini-btn-wa:hover { background: var(--whatsapp-hover); }

/* ── Thumbnails ──────────────────────────────────────────────────────── */
.proj-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
@media (min-width: 640px) { .proj-thumbs { gap: 0.75rem; margin-top: 1rem; } }
.proj-thumb {
  flex: 1; min-width: 0; height: 100px; padding: 0; position: relative;
  overflow: hidden; background: var(--secondary); border: 1px solid var(--border);
  cursor: pointer; transition: border-color var(--transition);
}
.proj-thumb.active { border-color: var(--primary); }
.proj-thumb:not(.active):hover { border-color: var(--fg-25); }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity var(--transition); }
.proj-thumb.active img, .proj-thumb:hover img { opacity: 1; }
@media (min-width: 640px) { .proj-thumb-label span { font-size: 9.9px; } }

/* ── Tabs técnicos ───────────────────────────────────────────────────── */
.tech-tabs-wrap { margin-top: 2rem; border: 1px solid var(--border); background: var(--secondary); }
@media (min-width: 640px) { .tech-tabs-wrap { margin-top: 2.5rem; } }
.tech-tabs-nav { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tech-tab-btn {
  flex: 1; min-width: max-content; padding: 1.1rem 1.1rem;
  font-family: 'DM Mono', monospace; font-size: 9.9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-50); background: transparent;
  border-right: 1px solid var(--border);
  transition: color var(--transition), background var(--transition); white-space: nowrap;
}
.tech-tab-btn:last-child { border-right: none; }
@media (min-width: 640px) { .tech-tab-btn { font-size: 11px; } }
.tech-tab-btn:hover { color: var(--fg-65); background: var(--border); }
.tech-tab-btn.active { color: #fff; background: var(--primary); font-weight: 700; }
.tech-tab-btn.active:hover { color: #fff; background: var(--primary); }
.tech-tab-panel { padding: 1.25rem; }
@media (min-width: 640px) { .tech-tab-panel { padding: 2rem; } }
.proj-map-iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (min-width: 640px) { .proj-map-iframe { height: 460px; } }
.amenities-grid { display: flex; flex-wrap: nowrap; justify-content: center; gap: 1.75rem; overflow-x: auto; padding-bottom: 0.5rem; }
.amenity-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; flex: 0 0 auto; width: 7rem; }
.amenity-item svg { width: 3rem; height: 3rem; flex-shrink: 0; color: #2CA8E0; }
@media (min-width: 640px) { .amenity-item svg { width: 3.5rem; height: 3.5rem; } }
.amenity-item p { color: var(--fg-70); font-size: 0.9375rem; line-height: 1.3; }

/* Descripción (tab) */
.proj-desc-tagline { font-family: 'Fraunces', serif; font-weight: 300; font-size: 1.375rem; color: var(--foreground); line-height: 1.35; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .proj-desc-tagline { font-size: 1.625rem; } }
.proj-desc-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .proj-desc-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.proj-desc-body { color: var(--fg-70); font-size: 1.03rem; line-height: 1.7; text-align: justify; }

/* ¿Te interesa? (tab) */
.interest-tab-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; padding: 1rem 0; }
@media (min-width: 640px) { .interest-tab-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } }
.interest-tab-title { font-family: 'Fraunces', serif; font-weight: 300; font-size: 1.375rem; line-height: 1.35; color: var(--foreground); margin-bottom: 0.75rem; }
@media (min-width: 640px) { .interest-tab-title { font-size: 1.625rem; } }
.interest-tab-desc { color: var(--fg-70); font-size: 1.03rem; line-height: 1.7; }
.interest-tab-side { display: flex; flex-direction: column; gap: 1.5rem; }
.interest-tab-checklist { display: flex; flex-direction: column; gap: 0.6rem; }
.interest-tab-checklist div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.825rem; color: var(--fg-55); font-family: 'DM Mono', monospace; }
.interest-tab-checklist span { color: var(--primary); }
.interest-tab-side .btn { padding: 0.9rem 2rem; width: 100%; }

.brochure-cta { border-top: 1px solid var(--border); padding: 1rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; justify-content: space-between; }
@media (min-width: 640px) { .brochure-cta { flex-direction: row; align-items: center; padding: 1.5rem; } }
.brochure-cta .pname { font-family: 'Fraunces', serif; font-size: 1.125rem; color: var(--foreground); margin-bottom: 0.125rem; }
@media (min-width: 640px) { .brochure-cta .pname { font-size: 1.125rem; } }
.brochure-cta .psub { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-40); }
.brochure-cta .btn-brochure { display: flex; align-items: center; gap: 0.75rem; background: var(--primary); color: #fff; padding: 1rem 1.5rem; font-size: 0.9375rem; letter-spacing: 0.15em; text-transform: uppercase; font-family: 'DM Mono', monospace; transition: background var(--transition); width: 100%; justify-content: center; }
@media (min-width: 640px) { .brochure-cta .btn-brochure { width: auto; padding: 1rem 2rem; } }
.brochure-cta .btn-brochure:hover { background: var(--primary-hover); }

/* ── Bloque "me gusta este proyecto" ─────────────────────────────────── */
.like-block { border: 1px solid rgba(51, 64, 74,0.3); background: var(--secondary); padding: 1.5rem; }
@media (min-width: 640px) { .like-block { padding: 2rem; } }
@media (min-width: 768px) { .like-block { padding: 3rem; } }
.like-block-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .like-block-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.like-block .eyebrow-label { font-size: 11px; }
.like-checklist { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.like-checklist div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.825rem; color: var(--fg-55); font-family: 'DM Mono', monospace; }
.like-checklist span { color: var(--primary); }
.like-block .field-input { font-size: 15.4px; }
.form-success { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 0; text-align: center; }
@media (min-width: 640px) { .form-success { padding: 3rem 0; } }
.form-success-icon { width: 4rem; height: 4rem; border-radius: 999px; background: rgba(51, 64, 74,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.875rem; }
.form-success .ftitle { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--foreground); margin-bottom: 0.5rem; }
.form-success p.fdesc { color: var(--fg-65); font-size: 1.03rem; line-height: 1.6; max-width: 20rem; }
.form-success .reset-link { margin-top: 1.5rem; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-45); transition: color var(--transition); }
.form-success .reset-link:hover { color: var(--fg-60); }

/* ── Genéricos: timeline, equipo, valores ───────────────────────────── */
.timeline-row { display: flex; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .timeline-row { gap: 2.5rem; padding: 1.75rem 0; } }
.timeline-row.first { border-top: 1px solid var(--border); }
.timeline-row .step-num { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.05em; color: var(--primary); padding-top: 0.25rem; flex-shrink: 0; }
.timeline-row .step-title { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 300; color: var(--foreground); margin-bottom: 0.375rem; }
@media (min-width: 640px) { .timeline-row .step-title { font-size: 1.125rem; } }
.timeline-row .step-desc { font-size: 0.9375rem; color: var(--fg-45); line-height: 1.6; }
.timeline-row .year { font-family: 'DM Mono', monospace; color: var(--primary); font-size: 0.9375rem; flex-shrink: 0; width: 2.5rem; }
@media (min-width: 640px) { .timeline-row .year { width: 3rem; } }
.timeline-row .event { color: var(--fg-60); font-size: 0.9375rem; line-height: 1.6; }

.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .partners-grid { grid-template-columns: repeat(4, 1fr); } }
.partner-box { border: 1px solid var(--border); padding: 1.5rem 1rem; text-align: center; transition: border-color var(--transition); }
@media (min-width: 640px) { .partner-box { padding: 2rem 1rem; } }
.partner-box:hover { border-color: var(--fg-20); }
.partner-box p { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 300; color: var(--fg-55); }

.values-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 1280px; margin-inline: auto; padding: 3.5rem 1.5rem; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 5rem 1.5rem; } }
.value-item .vt { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.value-item .vd { color: #fff; line-height: 1.6; font-size: 0.9375rem; }
#vision-mision .value-item .vt { color: rgba(20,40,50,0.7); }
#vision-mision .value-item .vd { color: #14283A; }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .team-grid { gap: 1.5rem; } }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.team-member-img { height: 13rem; background: var(--secondary); overflow: hidden; margin-bottom: 0.75rem; }
@media (min-width: 640px) { .team-member-img { height: 16rem; margin-bottom: 1rem; } }
@media (min-width: 768px) { .team-member-img { height: 18rem; } }
.team-member-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.5s; }
.team-member:hover .team-member-img img { filter: grayscale(0); }
.team-member .tname { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 300; color: var(--foreground); }
@media (min-width: 640px) { .team-member .tname { font-size: 1.125rem; } }
.team-member .trole { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-38); margin-top: 0.125rem; }

/* ── Contacto ────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.contact-intro { color: var(--fg-70); line-height: 1.6; font-size: 0.9375rem; margin-bottom: 2.5rem; max-width: 24rem; }
@media (min-width: 640px) { .contact-intro { margin-bottom: 3rem; } }
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .contact-items { gap: 2rem; margin-bottom: 3rem; } }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ic { color: var(--primary); margin-top: 0.125rem; flex-shrink: 0; }
.contact-item .l { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-50); margin-bottom: 0.125rem; }
.contact-item .v { color: var(--fg-70); font-size: 0.9375rem; }
.contact-map { border: 1px solid var(--border); background: var(--card); height: 12rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 640px) { .contact-map { height: 13rem; } }
.contact-map .mtext { text-align: center; }
.contact-map .mtext p { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-20); margin-top: 0.5rem; }
.contact-form-fields { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .contact-form-fields { gap: 1.75rem; margin-bottom: 2.25rem; } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--background); padding: 3rem 1.5rem 2rem; }
@media (min-width: 640px) { .site-footer { padding: 4rem 1.5rem 2.5rem; } }
.footer-inner { max-width: 1280px; margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; margin-bottom: 3.5rem; } }
.footer-col.brand { grid-column: span 2; }
@media (min-width: 768px) { .footer-col.brand { grid-column: span 1; } }
.footer-col.brand img { height: 44.8px; margin-bottom: 1rem; }
@media (min-width: 640px) { .footer-col.brand img { margin-bottom: 1.25rem; } }
.footer-social { display: flex; gap: 0.875rem; margin-top: 1.25rem; }
.footer-social a { color: var(--fg-45); transition: color var(--transition); }
.footer-social a:hover { color: var(--primary); }
.footer-col.brand p { font-size: 0.9rem; color: var(--fg-35); line-height: 1.6; }
.footer-col-title { font-family: 'DM Mono', monospace; font-size: 10.8px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-30); margin-bottom: 1rem; }
.footer-col a, .footer-col button { display: block; text-align: left; font-size: 0.9rem; color: var(--fg-50); margin-bottom: 0.625rem; transition: color var(--transition); }
.footer-col a:hover, .footer-col button:hover { color: var(--fg-80); }
.footer-col p { font-size: 0.9rem; color: var(--fg-45); margin-bottom: 0.625rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .footer-bottom { padding-top: 2rem; } }
.footer-bottom .copy { font-family: 'DM Mono', monospace; font-size: 10.8px; letter-spacing: 0.05em; color: var(--fg-25); }
.footer-legal { display: flex; gap: 1.25rem; }
@media (min-width: 640px) { .footer-legal { gap: 1.75rem; } }
.footer-legal button { font-family: 'DM Mono', monospace; font-size: 10.8px; letter-spacing: 0.05em; color: var(--fg-25); transition: color var(--transition); margin: 0; }
.footer-legal button:hover { color: var(--fg-50); }

/* ── WhatsApp flotante ───────────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  background: var(--whatsapp); color: #fff; padding: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: background var(--transition);
  display: flex; border-radius: 0;
}
.wa-float:hover { background: var(--whatsapp-hover); }


/* Utilidades varias */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.flex-row { display: flex; align-items: center; }
.gap-2 { gap: 0.5rem; }
