/* =====================================================
   PROCISBA — Main Stylesheet
   ===================================================== */

/* ─── RESET & BASE ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #FAFAF8;
  --bg-alt:    #F2EFE9;
  --ink:       #1A1A18;
  --ink-mid:   #5A5752;
  --ink-light: #9A9690;
  --accent:    #B8845A;
  --accent-dk: #96663E;
  --white:     #FFFFFF;
  --border:    #E4E0D8;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --sp-xs:  0.5rem;
  --sp-s:   1rem;
  --sp-m:   2rem;
  --sp-l:   4rem;
  --sp-xl:  7rem;

  --max: 1200px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --nav-h: 90px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── LAYOUT HELPERS ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-divider {
  max-width: var(--max);
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ─── NAVIGATION ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  background: rgba(250, 250, 248, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}


nav.dark-init .nav-logo,
nav.dark-init .nav-links a:not(.nav-cta),
nav.dark-init .nav-toggle span { filter: none; }

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

nav.scrolled .nav-logo-img,
nav.light .nav-logo-img { filter: none; }

.nav-links {
  display: flex;
  gap: var(--sp-m);
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

nav.scrolled .nav-links a,
nav.light .nav-links a { color: var(--ink-mid); }

.nav-links a:hover { color: var(--accent) !important; }

.nav-cta {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 2px !important;
  color: var(--white) !important;
  transition: all 0.2s !important;
}

nav.scrolled .nav-cta,
nav.light .nav-cta {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

nav.scrolled .nav-toggle span,
nav.light .nav-toggle span { background: var(--ink); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.mobile-menu a:hover { opacity: 1; color: var(--accent); }

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: var(--gutter);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-mid);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost-white:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ─── HOMEPAGE HERO ──────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-image: url('/assets/uploads/2020/08/backgroundhome2.jpg');
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-line1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 400;
  color: #B8925A;
  line-height: 1.15;
  margin-bottom: 0.1rem;
}

.hero-line2 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.75rem;
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  transition: background 0.25s, color 0.25s;
  text-decoration: none;
}
.hero-cta:hover {
  background: transparent;
  color: var(--white);
}

/* ─── PAGE HERO (inner pages) ────────────────────── */
.page-hero {
  background: var(--ink);
  padding: 9rem var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
}
/* Fallback bg image when no specific hero_image exists */
.page-hero:not(:has(.page-hero-bg))::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: var(--site-hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(3px) brightness(0.28) saturate(0.7);
  z-index: 0;
}

.page-hero-bg {
  position: absolute;
  inset: -25px;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.18) saturate(0.65);
  z-index: 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(184,132,90,0.14) 0%, transparent 70%);
  z-index: 1;
}

.page-hero .container { position: relative; z-index: 2; }

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.page-breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--accent); }
.page-breadcrumb span { color: var(--accent); }

.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.page-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.page-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 1px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
}

.page-tag.accent {
  background: rgba(184,132,90,0.15);
  border-color: rgba(184,132,90,0.4);
  color: var(--accent);
}

/* ─── ABOUT SECTION ──────────────────────────────── */
#quienes { padding: var(--sp-xl) var(--gutter); }

.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-l);
  align-items: center;
}

.about-tag { display: inline-block; margin-bottom: 1.25rem; }

.about-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.about-body {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.85;
  max-width: 480px;
}

.about-body p + p { margin-top: 1rem; }

.about-card {
  background: var(--ink);
  border-radius: 3px;
  padding: var(--sp-l);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
}

.about-card-year {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(255,255,255,0.08);
  font-weight: 400;
  margin-bottom: 1rem;
}

.about-card-text {
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  position: relative;
  z-index: 1;
}

.about-card-text strong { color: var(--accent); font-weight: 500; }

/* ─── ABOUT V2 ───────────────────────────────────── */
.about-v2-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-v2-heading {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin: 0.4rem 0 1.75rem;
}
.about-v2-heading em {
  font-style: italic;
  color: var(--accent);
}

.about-v2-body {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.85;
  max-width: 54ch;
}
.about-v2-body p + p { margin-top: 1.1rem; }

.about-v2-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.about-v2-cta:hover { color: var(--accent); border-color: var(--accent); }

.about-v2-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-stat {
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--border);
  margin-top: -1px;
  margin-left: -1px;
}

.about-stat-num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.about-stat-num span {
  font-size: 55%;
  color: var(--accent);
  vertical-align: super;
}

.about-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  line-height: 1.4;
}

.about-badge {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 1px;
}

/* ─── SERVICES SECTION ───────────────────────────── */
#servicios {
  padding: var(--sp-xl) var(--gutter);
  background: var(--bg-alt);
}

.servicios-header {
  max-width: var(--max);
  margin: 0 auto 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.servicios-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  max-width: 400px;
}

.servicios-sub {
  font-size: 0.9rem;
  color: var(--ink-mid);
  max-width: 320px;
  line-height: 1.7;
  text-align: right;
}

.servicios-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.servicio-item {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: background 0.25s;
  cursor: default;
}

.servicio-item:hover { background: var(--ink); }

.servicio-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.servicio-num {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
  transition: color 0.25s;
}

.servicio-item:hover .servicio-num { color: rgba(255,255,255,0.3); }

.servicio-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.8rem;
  transition: color 0.25s;
}

.servicio-item:hover .servicio-title { color: var(--white); }

.servicio-desc {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.7;
  transition: color 0.25s;
}

.servicio-item:hover .servicio-desc { color: rgba(255,255,255,0.55); }

/* ─── SERVICIOS CARDS (new grid design) ──────────── */
.servicios-header-v2 { margin-bottom: 2.5rem; }

.servicios-title-v2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin: 0.3rem 0 1.2rem;
}
.servicios-title-v2 em { font-style: italic; color: var(--accent); }

.servicios-intro {
  max-width: 72ch;
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.75;
}

.servicios-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.servicio-card { display: flex; flex-direction: column; }

.servicio-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  background-color: var(--bg-alt);
  margin-bottom: 1.25rem;
}

.servicio-card-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.servicio-card-desc {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.75;
  flex: 1;
}

.servicio-card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.servicio-card-link:hover { opacity: 0.7; }

/* ─── PROJECTS SECTION ───────────────────────────── */
#proyectos { padding: var(--sp-xl) var(--gutter); }

.proyectos-header {
  max-width: var(--max);
  margin: 0 auto 3.5rem;
}

.proyectos-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-top: 0.75rem;
}

.proyectos-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 440px 300px;
  gap: 1.25rem;
}

/* ── PROYECTO CARD — full-bleed con fondo difuminado ── */
.proyecto-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  display: block;
  text-decoration: none;
  background: var(--ink);
  cursor: pointer;
}

/* Primera tarjeta ocupa todo el ancho */
.proyecto-card:first-child { grid-column: 1 / -1; }

/* Imagen de fondo difuminada */
.proyecto-bg {
  position: absolute;
  inset: -25px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(5px) brightness(0.32) saturate(0.75);
  transition: filter 0.5s ease, transform 0.55s ease;
}

.proyecto-card:hover .proyecto-bg {
  filter: blur(0px) brightness(0.42) saturate(0.9);
  transform: scale(1.04);
}

/* Vignette + degradado inferior */
.proyecto-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,7,4,0.88) 0%,
    rgba(10,7,4,0.3) 50%,
    rgba(10,7,4,0.05) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.5rem;
  z-index: 1;
}

.proyecto-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 0.28rem 0.75rem;
  border-radius: 1px;
  font-weight: 600;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.proyecto-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.55rem;
}

.proyecto-card:first-child .proyecto-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.proyecto-loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.proyecto-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 0.15rem;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.proyecto-card:hover .proyecto-cta {
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
  gap: 0.65rem;
}

/* ─── OPPORTUNITIES SECTION ──────────────────────── */
#oportunidades {
  padding: var(--sp-xl) var(--gutter);
  background: var(--ink);
}

.opor-header {
  max-width: var(--max);
  margin: 0 auto 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.opor-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--white);
  margin-top: 0.75rem;
}

.opor-label { color: var(--accent); }

.opor-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  max-width: 280px;
  line-height: 1.7;
  text-align: right;
}

.opor-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.opor-card {
  background: rgba(255,255,255,0.03);
  padding: 2.5rem 2rem;
  transition: background 0.25s;
}

.opor-card:hover { background: rgba(255,255,255,0.07); }

.opor-card-num {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1rem;
}

.opor-card-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.opor-card-location {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.opor-card-size {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(184,132,90,0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 1px;
  margin-bottom: 1.5rem;
}

.opor-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.opor-card-link:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  gap: 0.7rem;
}

.pool-banner {
  max-width: var(--max);
  margin: 2rem auto 0;
  background: rgba(184,132,90,0.12);
  border: 1px solid rgba(184,132,90,0.2);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pool-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.pool-text strong { color: var(--accent); font-weight: 500; }

.pool-cta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.55rem 1.2rem;
  border-radius: 1px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.pool-cta:hover { background: var(--accent); color: var(--white); }

/* ─── CONTACT SECTION ────────────────────────────── */
#contacto { padding: var(--sp-xl) var(--gutter); }

.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-l);
  align-items: start;
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-intro {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 380px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-item-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.2rem;
}

.contact-item-value {
  font-size: 0.9rem;
  color: var(--ink);
}

.contact-item-value a:hover { color: var(--accent); }

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mid);
  transition: border-color 0.2s, color 0.2s;
}

.social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ─── CONTACT FORM ───────────────────────────────── */
.contact-form {
  background: var(--bg-alt);
  border-radius: 3px;
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 500;
}

input, textarea, select {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--ink-light); }

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,132,90,0.1);
}

textarea { resize: vertical; min-height: 120px; }

/* Honeypot */
.hp-field { display: none !important; }

.form-submit {
  margin-top: 1.25rem;
  width: 100%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.95rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--accent); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-feedback {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 2px;
  font-size: 0.85rem;
  text-align: center;
}

.form-feedback.success {
  display: block;
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.3);
  color: #2e7d32;
}

.form-feedback.error {
  display: block;
  background: rgba(244,67,54,0.08);
  border: 1px solid rgba(244,67,54,0.2);
  color: #c62828;
}

/* ─── INNER PAGE CONTENT ─────────────────────────── */
.page-content {
  padding: var(--sp-xl) var(--gutter);
}

.content-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-l);
  align-items: start;
}

.content-prose {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.9;
}

.content-prose p + p { margin-top: 1.25rem; }

.content-prose h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin: 2rem 0 1rem;
}

.info-card {
  background: var(--bg-alt);
  border-radius: 3px;
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.info-card-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.info-row:last-of-type { border-bottom: none; }

.info-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.info-value {
  font-size: 0.85rem;
  color: var(--ink);
  text-align: right;
}

.info-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.8rem;
  border-radius: 2px;
  transition: background 0.2s;
}

.info-cta:hover { background: var(--accent-dk); }

/* ─── VIDEO EMBED ────────────────────────────────── */
.video-section {
  padding: 0 var(--gutter) var(--sp-xl);
}

.video-container {
  max-width: var(--max);
  margin: 0 auto;
}

.video-label {
  margin-bottom: 1.5rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--ink);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── GALLERY ────────────────────────────────────── */
.gallery-section {
  padding: 0 var(--gutter) var(--sp-xl);
  background: var(--bg-alt);
  padding-top: var(--sp-xl);
}

.gallery-header {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
}

.gallery-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-top: 0.75rem;
}

.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  background: var(--ink);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,24,0);
  transition: background 0.3s;
}

.gallery-item:hover::after { background: rgba(26,26,24,0.3); }

.gallery-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 1;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover .gallery-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26,26,24,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* ─── CTA BANNER ─────────────────────────────────── */
.cta-section {
  padding: var(--sp-xl) var(--gutter);
  background: var(--ink);
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-label { color: var(--accent); }

.cta-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--white);
  margin: 0.75rem 0 1.25rem;
  line-height: 1.2;
}

.cta-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ─── CONTACT PAGE ───────────────────────────────── */
.contact-page { padding: var(--sp-xl) var(--gutter); }

/* ─── BLOG ───────────────────────────────────────── */
.blog-section { padding: var(--sp-xl) var(--gutter); }

.blog-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-alt);
}

.blog-visual {
  height: 200px;
  background: var(--ink);
  overflow: hidden;
}

.blog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover .blog-visual img { transform: scale(1.04); }

.blog-info { padding: 1.5rem; }

.blog-date {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.blog-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.blog-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.blog-link:hover { gap: 0.6rem; }

/* ─── LEGAL PAGE ─────────────────────────────────── */
.legal-section { padding: var(--sp-xl) var(--gutter); }

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 0.3rem;
}

.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content a:hover { color: var(--accent-dk); }

.legal-updated {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 4rem max(var(--gutter), calc((100vw - var(--max)) / 2)) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo { display: inline-block; line-height: 0; }

.footer-logo-img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-about-text {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.38);
  max-width: 230px;
}

.footer-email {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--accent); }

.footer-col-title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav li a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.42);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.footer-nav li:first-child a { border-top: 1px solid rgba(255,255,255,0.07); }
.footer-nav li a:hover { color: rgba(255,255,255,0.85); }

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
}
.footer-address p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.42);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-address p:first-child { border-top: 1px solid rgba(255,255,255,0.07); }

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
}

/* ─── WHATSAPP FLOAT ─────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* ─── ANIMATIONS ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) {
  .about-grid,
  .about-v2-grid,
  .contact-grid,
  .content-grid { grid-template-columns: 1fr; }

  .servicios-header { flex-direction: column; align-items: flex-start; }
  .servicios-sub { text-align: left; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-cards { grid-template-columns: repeat(2, 1fr); }

  .proyectos-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 260px; }
  .proyecto-card:first-child { grid-column: 1 / -1; }

  .opor-grid { grid-template-columns: repeat(2, 1fr); }
  .opor-header { flex-direction: column; align-items: flex-start; }
  .opor-sub { text-align: left; }


  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .info-card { position: static; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 640px) {
  :root { --sp-xl: 4rem; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* ── Hero ─────────────────────────────────────────── */
  #hero { min-height: 100svh; }
  .hero-line1 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .hero-line2 { font-size: clamp(2rem, 8vw, 3.5rem); }

  /* ── Grids ────────────────────────────────────────── */
  .servicios-grid { grid-template-columns: 1fr; }
  .servicios-cards { grid-template-columns: 1fr; }
  .proyectos-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .proyecto-card, .proyecto-card:first-child { grid-column: auto; min-height: 300px; }
  .opor-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  /* ── Page hero ─────────────────────────────────────── */
  .page-hero { padding: 7rem var(--gutter) 3rem; }
  .page-hero-title { font-size: clamp(1.9rem, 7vw, 3rem); }

  /* ── About card ─────────────────────────────────────── */
  .about-card-year { font-size: 3.5rem; }

  /* ── Form ─────────────────────────────────────────── */
  .form-row { grid-template-columns: 1fr; }

  /* ── Footer ───────────────────────────────────────── */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* ── Lightbox ─────────────────────────────────────── */
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ─── DYNAMIC INDEX — extra class aliases ─────────── */

/* section-header / section-title / section-sub */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-top: 0.75rem;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--ink-mid);
  max-width: 280px;
  line-height: 1.7;
}

/* Dynamic oportunidades card elements */
.opor-title { /* alias opor-heading */
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--white);
  margin-top: 0.75rem;
}
.opor-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.opor-sub { font-size: 0.9rem; color: rgba(255,255,255,0.4); max-width: 280px; line-height: 1.7; }
.opor-img { height: 200px; overflow: hidden; background: var(--ink); }
.opor-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.opor-card:hover .opor-img img { transform: scale(1.04); }
.opor-body { padding: 1.5rem 2rem 2rem; }
.opor-badges { margin-bottom: 0.75rem; }
.opor-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(184,132,90,0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 1px;
}
.opor-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--white); line-height: 1.25; margin-bottom: 0.4rem; }
.opor-loc { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-bottom: 0.75rem; }
.opor-price { font-size: 1rem; font-weight: 500; color: var(--accent); margin-bottom: 1rem; }
.opor-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.opor-meta span { font-size: 0.72rem; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }

/* Contact aliases for index.php home section */
#contacto-home { padding: var(--sp-xl) var(--gutter); }
.contact-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}
.contact-sub { font-size: 0.9rem; color: var(--ink-mid); line-height: 1.8; margin-bottom: 2.5rem; max-width: 380px; }
.contact-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 0.2rem; }
.contact-value { font-size: 0.9rem; color: var(--ink); }
.contact-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.field-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid); font-weight: 500; }

/* ─── PAGE DETAIL (page.php) ─────────────────────── */

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: rgba(255,255,255,0.8); }

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.page-hero-meta span,
.page-hero-meta time {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.page-status-badge {
  display: inline-block;
  font-size: 0.62rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.25rem 0.7rem;
  border-radius: 1px;
}

/* Page main content */
.page-content { padding: var(--sp-xl) var(--gutter); }
.page-content-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-l);
  align-items: start;
}
.page-main-col {}
.page-description {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.page-description p + p { margin-top: 1.25rem; }
.page-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--ink);
  margin-bottom: 2.5rem;
}
.page-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Page sidebar — promo box */
.page-sidebar { position: sticky; top: 6rem; }
.promo-box {
  background: var(--bg-alt);
  border-radius: 3px;
  padding: 2rem;
  border: 1px solid var(--border);
}
.promo-price {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.promo-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.promo-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-mid);
}
.promo-features li svg { color: var(--accent); flex-shrink: 0; }
.promo-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.7rem;
  background: rgba(37,211,102,0.1);
  color: #25d366;
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s;
}
.promo-whatsapp:hover { background: rgba(37,211,102,0.18); }

/* Page CTA */
.page-cta {
  padding: var(--sp-xl) var(--gutter);
  background: var(--ink);
  text-align: center;
}
.page-cta .container { max-width: 600px; }
.page-cta-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-cta-sub { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 2rem; }

/* Responsive adjustments for page detail */
@media (max-width: 960px) {
  .page-content-grid { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .opor-header { flex-direction: column; align-items: flex-start; }
  .opor-sub { text-align: left; }
}
@media (max-width: 640px) {
  .page-content-grid { gap: 2rem; }
  .opor-grid { grid-template-columns: 1fr; }
}

/* ── Section header "Ver todos" link ─── */
.section-more {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  align-self: flex-end;
}
.section-more:hover { text-decoration: underline; }

/* ── Listing pages (proyectos.php / oportunidades.php / blog.php) ── */
.listing-hero {
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 3.5rem;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.listing-hero::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: var(--site-hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(3px) brightness(0.28) saturate(0.7);
  z-index: 0;
}
.listing-hero > .container { position: relative; z-index: 1; }
.listing-hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
}
.listing-hero-title em { font-style: italic; color: var(--accent); }
.listing-hero-sub {
  margin: 1rem 0 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  max-width: 540px;
}
.listing-section { padding: var(--sp-xl) var(--gutter); }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.listing-grid--blog { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.listing-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-2px); }
.listing-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--border); }
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.listing-card:hover .listing-card-img img { transform: scale(1.04); }
.listing-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--ink-fade) 0%, var(--border) 100%); }
.listing-card-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.2rem 0.55rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}
.listing-card-badge--promo { background: var(--accent); }
.listing-card-price {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 2px;
}
.listing-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.listing-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.listing-card-location {
  font-size: 0.78rem;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.listing-card-location svg { color: var(--accent); }
.listing-card-excerpt { font-size: 0.83rem; color: var(--ink-mid); line-height: 1.6; margin-top: 0.25rem; }
.listing-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.listing-card-specs span {
  font-size: 0.72rem;
  color: var(--ink-mid);
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}
.listing-card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.listing-card-date { font-size: 0.72rem; color: var(--ink-mid); }
.listing-empty { text-align: center; padding: 5rem; color: var(--ink-mid); font-size: 0.9rem; }

/* ── Piscinas section ────────────────────────────── */
.piscinas-section {
  background: var(--ink);
  padding: var(--sp-xl) var(--gutter);
}
.piscinas-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.piscinas-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--white);
  margin: 0.5rem 0 1rem;
  line-height: 1.15;
}
.piscinas-title em { color: var(--accent); font-style: italic; }
.piscinas-text { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.75; margin-bottom: 2rem; max-width: 520px; }
.piscinas-deco { color: var(--accent); opacity: 0.4; }
.piscinas-deco-inner { width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; }
.piscinas-deco-inner svg { width: 100%; height: 100%; }
@media (max-width: 640px) {
  .piscinas-grid { grid-template-columns: 1fr; }
  .piscinas-deco { display: none; }
}

/* ── Blog home grid ──────────────────────────────── */
#blog-home { padding: var(--sp-xl) var(--gutter); background: var(--bg); }
.blog-grid-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.blog-card-home {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.blog-card-home:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.09); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.blog-card-date { font-size: 0.7rem; color: var(--ink-mid); }
.blog-card-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: var(--ink); line-height: 1.3; }
.blog-card-excerpt { font-size: 0.8rem; color: var(--ink-mid); line-height: 1.6; }

/* ── Blog post content ───────────────────────────── */
.blog-content {
  max-width: 720px;
  margin: 3rem auto 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}
.blog-content h2, .blog-content h3 { font-family: var(--serif); font-weight: 400; margin: 2rem 0 0.75rem; }
.blog-content p { margin-bottom: 1.25rem; }
.blog-content img { max-width: 100%; border-radius: 2px; }
.blog-content a { color: var(--accent); }

/* ── FEDER / EU funding notice ───────────────────── */
.feder-section {
  padding: 1.25rem var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.feder-text {
  font-size: 0.72rem;
  color: var(--ink-mid);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Footer social + legal ───────────────────────── */
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.social-btn:hover { color: var(--accent); border-color: var(--accent); }
.footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal a { font-size: 0.72rem; color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ── Listing responsive ──────────────────────────── */
@media (max-width: 640px) {
  .listing-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .listing-hero { padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem; }
}

/* ── Form success full-replace ───────────────────── */
.form-success-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  text-align: center;
}
.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(184,132,90,0.12);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success-msg {
  font-size: 1.1rem;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
}

/* ── Contact ref banner ──────────────────────────── */
.contact-ref-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(184,132,90,0.1);
  border: 1px solid rgba(184,132,90,0.3);
  border-radius: 2px;
  font-size: 0.82rem;
  color: var(--ink-mid);
  margin-bottom: 0.25rem;
}
.contact-ref-banner svg { color: var(--accent); flex-shrink: 0; }
.contact-ref-banner strong { color: var(--ink); }

/* ── Legal pages ─────────────────────────────────── */
.legal-section { padding: var(--sp-xl) var(--gutter); }
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink);
}
.legal-content h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { margin-bottom: 0.5rem; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }
.legal-update { font-size: 0.78rem; color: var(--ink-mid); margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.83rem; }
.legal-table th { background: var(--ink); color: var(--white); padding: 0.65rem 1rem; text-align: left; font-weight: 500; }
.legal-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table code { font-size: 0.8rem; background: var(--bg); padding: 0.1rem 0.35rem; border-radius: 2px; }

/* ═══════════════════════════════════════════════════
   BLOG POST — EDITORIAL REDESIGN
   ═══════════════════════════════════════════════════ */

/* ── Article label (in page-hero) ────────────────── */
.art-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.art-meta-dot { opacity: 0.5; margin: 0 0.15rem; }

/* ── Article body ─────────────────────────────────── */
.art-body {
  background: var(--bg);
  padding: 4rem var(--gutter) 4rem;
}
.art-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink);
}

/* Rich typography inside article */
.art-content p { margin-bottom: 1.5rem; }
.art-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 400;
  color: var(--ink);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.art-content h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin: 2.25rem 0 0.75rem;
}
.art-content h3::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.6rem;
  position: relative;
  top: -1px;
}

/* Ordered list — accent numbers via position:absolute */
.art-content ol {
  counter-reset: art-ol;
  padding: 0;
  list-style: none;
  margin-bottom: 1.75rem;
}
.art-content ol > li {
  counter-increment: art-ol;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  list-style: none;
}
.art-content ol > li::before {
  content: counter(art-ol);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  width: 2.25rem;
  text-align: right;
}
.art-content ol > li > strong:first-child {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.art-content ol > li p { margin-bottom: 0.4rem; }

/* Unordered list — accent dash */
.art-content ul {
  padding: 0;
  list-style: none;
  margin-bottom: 1.75rem;
}
.art-content ul > li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  list-style: none;
}
.art-content ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}

.art-content strong { font-weight: 600; color: var(--ink); }
.art-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.art-content img { width: 100%; margin: 2rem 0; }
.art-content iframe { width: 100%; aspect-ratio: 16/9; border: none; margin: 2rem 0; }
.art-content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
}
.art-content blockquote p { margin: 0; }

/* ── Share bar ────────────────────────────────────── */
.art-share-wrap {
  background: var(--bg);
  padding: 0 var(--gutter) 3.5rem;
}
.art-share {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.art-share-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-right: 0.25rem;
}
.art-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  color: var(--ink-mid);
  transition: color 0.2s, border-color 0.2s;
}
.art-share-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ── Prev / Next navigation ─────────────────────────
   NOTE: Uses .art-nav on a <div>, not a <nav> element,
   to avoid inheriting site-nav CSS rules.
   ─────────────────────────────────────────────────── */
.art-nav {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.art-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.art-nav-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.2s;
  overflow: hidden;
}
.art-nav-item:hover { background: var(--border); }
.art-nav-item--prev { flex-direction: row; }
.art-nav-item--next { flex-direction: row-reverse; }
.art-nav-item--empty { pointer-events: none; }
.art-nav-img {
  flex-shrink: 0;
  width: 90px;
  align-self: stretch;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.art-nav-item:hover .art-nav-img { opacity: 1; }
.art-nav-body {
  padding: 1.5rem;
  flex: 1;
  min-width: 0;
}
.art-nav-item--next .art-nav-body { text-align: right; }
.art-nav-dir {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.art-nav-item--next .art-nav-dir { justify-content: flex-end; }
.art-nav-ttl {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}
.art-nav-center:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 720px) {
  .art-body { padding: 2.5rem var(--gutter) 3rem; }
  .art-nav-img { width: 60px; }
  .art-nav-body { padding: 1rem; }
  .art-nav-ttl { font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .art-nav-img { display: none; }
  .art-nav-center { width: 44px; }
}

/* ── Quill-generated content in blog ─────────────── */
.art-content .ql-video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  margin: 1.75rem 0;
  border-radius: 4px;
}
.art-content pre.ql-syntax {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.art-content .ql-align-center { text-align: center; }
.art-content .ql-align-right  { text-align: right; }
.art-content .ql-align-justify { text-align: justify; }
