/* ═══════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════ */
:root {
  --verde: #152723;
  --verde-mid: #1c3530;
  --verde-light: #254540;
  --verde-hover: rgba(21,39,35,0.06);
  --blanco: #ffffff;
  --crema: #f5f2ec;
  --crema-2: #ede9df;
  --oro: #b8975a;
  --oro-light: #d4b47c;
  --oro-pale: rgba(184,151,90,0.15);
  --gris: #6b7280;
  --gris-claro: #e5e7eb;
  --obra-1: #111111;
  --obra-2: #1e1e1e;
  --obra-3: #2a2a2a;
  --obra-4: #505050;
  --obra-5: #b0b0b0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,.09),0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12),0 8px 20px rgba(0,0,0,.07);
  --shadow-xl: 0 40px 100px rgba(0,0,0,.16);
  --r: 2px;
  --font-h: 'Poppins', sans-serif;
  --font-b: 'Inter', sans-serif;
  --font-serif: 'Bodoni Moda', serif;
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-back: cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--crema);
  color: var(--verde);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-b); cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════════════════
   PAGE ROUTER
═══════════════════════════════════════════ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ═══════════════════════════════════════════
   TOPBAR + NAVBAR
═══════════════════════════════════════════ */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 201;
  height: 38px;
  background: #B8975A;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  font-family: var(--font-b);
  font-size: .7rem;
  letter-spacing: .03em;
  color: #fff;
  transition: transform .38s var(--ease);
}
#topbar.hidden { transform: translateY(-100%); }
.topbar-left {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 1rem;
  transition: opacity .2s;
}
.topbar-item:first-child { padding-left: 0; }
a.topbar-item:hover { opacity: .75; }
.topbar-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.topbar-right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: .15rem;
  margin-left: 1.5rem;
}
.topbar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
  border-radius: 3px;
}
.topbar-icon:hover { opacity: .7; }

#navbar {
  position: fixed;
  top: 40px; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5%;
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s, top .38s var(--ease);
}
body.topbar-hidden #navbar { top: 0; }
#navbar.scrolled {
  background: rgba(21,39,35,.96);
  padding: 14px 5%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.nav-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity .25s;
}
.nav-logo:hover .nav-logo-img { opacity: .85; }
.nav-links {
  display: flex;
  gap: .2rem;
  list-style: none;
  align-items: center;
}
.nav-links a, .nav-links button {
  font-family: var(--font-b);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: 8px 14px;
  border-radius: 4px;
  transition: color .25s, background .25s;
  background: none;
  display: block;
}
.nav-links a:hover, .nav-links button:hover {
  color: var(--blanco);
  background: rgba(255,255,255,.07);
}
.nav-links .nav-active {
  color: var(--blanco) !important;
  background: rgba(255,255,255,.1) !important;
}
.nav-cta-btn {
  background: var(--oro) !important;
  color: var(--verde) !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  border-radius: 4px;
}
.nav-cta-btn:hover {
  background: var(--oro-light) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  display: block;
  transition: transform .3s var(--ease), opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--verde);
  z-index: 199;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a, .mobile-nav button {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  transition: color .25s;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav a:hover, .mobile-nav button:hover { color: var(--oro); }
.mobile-nav .mob-cta {
  background: var(--oro);
  color: var(--verde);
  font-family: var(--font-b);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 40px;
  border-radius: 4px;
  margin-top: .5rem;
}

/* ═══════════════════════════════════════════
   HERO – VIDEO BG
═══════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}
.hero-video-wrap img.hero-fallback {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16,32,27,.70);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .8s var(--ease) .3s forwards;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--oro);
  flex-shrink: 0;
  animation: heroDotPulse 2.2s ease-in-out infinite;
}
@keyframes heroDotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184,151,90,.5); }
  50% { transform: scale(1.4); box-shadow: 0 0 0 6px rgba(184,151,90,0); }
}
.hero-eyebrow span {
  font-family: var(--font-b);
  font-size: .65rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--oro-light);
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-b);
  font-size: clamp(0.95rem, 1.7vw, 1.5rem);
  font-weight: 500;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  max-width: 720px;
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp .9s var(--ease) .5s forwards;
}
.hero-title strong {
  font-weight: 600;
  display: block;
}
.hero-title em {
  font-family: var(--font-b);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  color: var(--oro-light);
  display: block;
  white-space: nowrap;
  min-height: 1.15em;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.15;
}
.hero-desc {
  font-family: var(--font-b);
  font-size: clamp(.85rem, 1.4vw, 1rem);
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 2.8rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp .9s var(--ease) .7s forwards;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp .9s var(--ease) .9s forwards;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--oro);
  color: var(--verde);
  padding: 14px 28px;
  font-family: var(--font-b);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background .25s, transform .25s, box-shadow .25s;
  border: none;
  cursor: pointer;
}
.btn-gold:hover {
  background: var(--oro-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,151,90,.35);
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--blanco);
  padding: 13px 28px;
  font-family: var(--font-b);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,.3);
  transition: border-color .25s, background .25s, transform .25s;
  cursor: pointer;
}
.btn-outline-white:hover {
  border-color: var(--blanco);
  background: rgba(255,255,255,.07);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}
.hero-scroll span {
  font-size: .55rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  font-family: var(--font-b);
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.35) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .4; transform: scaleY(.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Typewriter cursor */
.tw-cursor {
  color: var(--oro);
  font-weight: 300;
  display: inline;
  transition: opacity .06s;
  margin-left: 1px;
}
body.obra-mode .tw-cursor { color: var(--obra-5); }

/* hero-bar removed */

/* ticker removed */

/* ═══════════════════════════════════════════
   SECTIONS SHARED
═══════════════════════════════════════════ */
.section-pad { padding: clamp(4rem,8vw,8rem) 5%; }
.section-pad-sm { padding: clamp(3rem,5vw,5rem) 5%; }
.wrap { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-b);
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--oro);
  margin-bottom: 1rem;
}
.section-eyebrow .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--oro);
  flex-shrink: 0;
}
.section-h2 {
  font-family: var(--font-h);
  font-size: clamp(1.7rem,3.5vw,2.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 1.2rem;
}
.section-h2 strong { font-weight: 700; }
.section-h2 em { font-style: italic; color: var(--oro); font-weight: 300; }
.section-h2.light { color: var(--blanco); }
.section-p {
  font-family: var(--font-b);
  font-size: .9rem;
  color: var(--gris);
  line-height: 1.85;
  font-weight: 300;
  max-width: 540px;
}
.section-p.light { color: rgba(255,255,255,.55); }

/* ═══════════════════════════════════════════
   HOME – AREAS OVERVIEW
═══════════════════════════════════════════ */
#areas { background: var(--crema); }
.areas-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--crema-2);
}
.area-card {
  background: var(--blanco);
  padding: 2.4rem 2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.area-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.area-card:hover::before { transform: scaleX(1); }
.area-card.obra-theme {
  background: var(--obra-2);
  color: var(--blanco);
}
.area-card.obra-theme::before { background: var(--obra-5); }
.area-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 1.6rem;
  border-radius: 2px;
  transition: transform .5s var(--ease);
}
.area-card:hover .area-card-img { transform: scale(1.03); }
.area-card h3 {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .7rem;
  letter-spacing: -.01em;
}
.area-card p {
  font-family: var(--font-b);
  font-size: .8rem;
  color: var(--gris);
  line-height: 1.75;
  font-weight: 300;
  flex: 1;
}
.area-card.obra-theme p { color: rgba(255,255,255,.5); }
.area-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gris-claro);
}
.obra-theme .area-card-footer { border-top-color: rgba(255,255,255,.08); }
.area-card-link {
  font-family: var(--font-b);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--oro);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: gap .3s;
}
.obra-theme .area-card-link { color: var(--obra-5); }
.area-card:hover .area-card-link { gap: .9rem; }
.area-count {
  font-family: var(--font-h);
  font-size: .65rem;
  font-weight: 600;
  color: var(--gris-claro);
  letter-spacing: .05em;
}
.obra-theme .area-count { color: rgba(255,255,255,.12); }

/* ═══════════════════════════════════════════
   HOME – NOSOTROS
═══════════════════════════════════════════ */
#nosotros { background: var(--verde); }
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.nos-img-stack {
  position: relative;
  padding-bottom: 3rem;
  padding-right: 3rem;
}
.nos-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}
.nos-img-accent {
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  bottom: 0; right: 0;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--verde);
}
.nos-badge {
  position: absolute;
  top: 1.5rem; left: -1.5rem;
  background: var(--oro);
  color: var(--verde);
  padding: 1rem 1.4rem;
  border-radius: 4px;
  z-index: 3;
  box-shadow: var(--shadow-md);
}
.nos-badge-num {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.nos-badge-txt {
  font-family: var(--font-b);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}
.nos-content .section-h2 em { color: var(--oro-light); }
.nos-story {
  font-family: var(--font-b);
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.nos-valores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.06);
  margin-top: 2rem;
}
.nos-valor {
  background: rgba(21,39,35,.8);
  padding: 1rem 1.2rem;
  font-family: var(--font-b);
  font-size: .76rem;
  font-weight: 400;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: background .25s, color .25s;
  letter-spacing: .03em;
}
.nos-valor:hover { background: rgba(255,255,255,.07); color: var(--blanco); }
.nos-valor::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--oro);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   HOME – FOTO PARALAX DIVIDER
═══════════════════════════════════════════ */
.parallax-divider {
  height: 420px;
  overflow: hidden;
  position: relative;
}
.parallax-divider img {
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: -20%;
  will-change: transform;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21,39,35,.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-quote {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--blanco);
  text-align: center;
  max-width: 700px;
  padding: 0 5%;
  line-height: 1.55;
  letter-spacing: .01em;
}
.parallax-quote em { color: var(--oro-light); font-style: normal; font-weight: 600; }

/* ═══════════════════════════════════════════
   FAQ HOME
═══════════════════════════════════════════ */
#faq-home { background: var(--crema); }
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.faq-sticky { position: sticky; top: 100px; }
.faq-sticky img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}
.faq-item {
  border-bottom: 1px solid var(--crema-2);
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  cursor: pointer;
  gap: 1rem;
  user-select: none;
}
.faq-q h4 {
  font-family: var(--font-b);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}
.faq-toggle {
  width: 30px; height: 30px;
  border: 1.5px solid var(--gris-claro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--verde);
  transition: all .3s var(--ease);
  font-weight: 300;
}
.faq-item.open .faq-toggle {
  background: var(--verde);
  border-color: var(--verde);
  color: var(--blanco);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.faq-item.open .faq-a { max-height: 250px; }
.faq-a p {
  padding-bottom: 1.4rem;
  font-family: var(--font-b);
  font-size: .83rem;
  color: var(--gris);
  line-height: 1.85;
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   CONTACTO SECTION
═══════════════════════════════════════════ */
#contacto { background: var(--verde); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}
.contacto-info .section-h2 { color: var(--blanco); }
.contacto-info .section-p { max-width: 100%; }
.contacto-datos { margin: 2.5rem 0; display: flex; flex-direction: column; gap: 1.4rem; }
.c-dato {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.c-dato-icon {
  width: 38px; height: 38px;
  border: 1px solid rgba(184,151,90,.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .25s, border-color .25s;
}
.c-dato:hover .c-dato-icon {
  background: var(--oro-pale);
  border-color: var(--oro);
}
.c-dato-icon svg { width: 16px; height: 16px; stroke: var(--oro); fill: none; stroke-width: 1.5; }
.c-dato-text .lbl {
  display: block;
  font-family: var(--font-b);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oro);
  font-weight: 500;
  margin-bottom: .15rem;
}
.c-dato-text .val {
  font-family: var(--font-b);
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  font-weight: 300;
}
.wa-btn {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.25);
  border-radius: 6px;
  padding: .9rem 1.1rem;
  font-family: var(--font-b);
  font-size: .78rem;
  font-weight: 500;
  color: #25d366;
  letter-spacing: .04em;
  transition: background .25s, transform .25s;
  cursor: pointer;
  width: fit-content;
}
.wa-btn:hover { background: rgba(37,211,102,.18); transform: translateX(4px); }
.wa-btn svg { fill: currentColor; width: 20px; height: 20px; }

/* Form */
.c-form { display: flex; flex-direction: column; gap: .9rem; }
.c-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.c-fg { display: flex; flex-direction: column; gap: .35rem; position: relative; }
/* Static label (select) */
.c-fg label {
  font-family: var(--font-b);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}
/* Floating labels — label comes AFTER input/textarea in DOM */
.c-fg input ~ label,
.c-fg textarea ~ label {
  position: absolute;
  top: 15px;
  left: 14px;
  font-size: .82rem;
  letter-spacing: .02em;
  text-transform: none;
  font-weight: 400;
  color: rgba(255,255,255,.35);
  transition: top .18s var(--ease), font-size .18s var(--ease), color .18s, letter-spacing .18s;
  pointer-events: none;
}
/* Floated state */
.c-fg input:not(:placeholder-shown) ~ label,
.c-fg input:focus ~ label,
.c-fg textarea:not(:placeholder-shown) ~ label,
.c-fg textarea:focus ~ label {
  top: 6px;
  font-size: .5rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oro-light);
}
.c-fg input, .c-fg select, .c-fg textarea {
  font-family: var(--font-b);
  font-size: .85rem;
  font-weight: 300;
  color: var(--blanco);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none;
}
.c-fg input, .c-fg textarea { padding: 22px 14px 8px; }
.c-fg select { padding: 11px 14px; }
.c-fg input::placeholder, .c-fg textarea::placeholder { opacity: 0; }
.c-fg input:focus, .c-fg select:focus, .c-fg textarea:focus {
  border-color: var(--oro);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(184,151,90,.1);
}
.c-fg select option { background: var(--verde); color: var(--blanco); }
.c-fg textarea { resize: vertical; min-height: 110px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinning { opacity: .8; pointer-events: none; }
.btn-spinning::after {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid rgba(21,39,35,.3);
  border-top-color: var(--verde);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}
.form-success {
  display: none;
  align-items: center;
  gap: .6rem;
  background: rgba(184,151,90,.1);
  border: 1px solid rgba(184,151,90,.25);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--oro-light);
  font-size: .8rem;
  font-family: var(--font-b);
  letter-spacing: .04em;
  margin-top: .2rem;
}

/* ═══════════════════════════════════════════
   MAP
═══════════════════════════════════════════ */
.map-wrap { height: 300px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; filter: grayscale(.2); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: #0c1c18;
  color: rgba(255,255,255,.45);
  padding: 4rem 5% 2rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.f-brand-name {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blanco);
  letter-spacing: .04em;
  display: block;
  margin-bottom: .2rem;
}
.f-brand-sub {
  font-family: var(--font-b);
  font-size: .55rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oro);
  display: block;
  margin-bottom: 1rem;
}
.f-brand p {
  font-family: var(--font-b);
  font-size: .78rem;
  line-height: 1.8;
  font-weight: 300;
  max-width: 270px;
  margin-bottom: 1.4rem;
}
.f-socials { display: flex; gap: .6rem; }
.f-social {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  transition: border-color .25s, color .25s;
}
.f-social:hover { border-color: var(--oro); color: var(--oro); }
.f-col h5 {
  font-family: var(--font-b);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blanco);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.f-col li { font-family: var(--font-b); font-size: .78rem; font-weight: 300; }
.f-col a, .f-col button {
  color: rgba(255,255,255,.4);
  transition: color .25s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-b);
  font-size: .78rem;
  font-weight: 300;
  text-align: left;
  padding: 0;
}
.f-col a:hover, .f-col button:hover { color: var(--oro); }
.footer-bottom {
  max-width: 1200px;
  margin: 1.8rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  font-family: var(--font-b);
  font-size: .7rem;
  font-weight: 300;
}
.footer-bottom a { color: var(--oro); }

/* ═══════════════════════════════════════════
   ── SUBPAGES ──
═══════════════════════════════════════════ */
.subpage-hero {
  height: 52vh;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.subpage-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,39,35,.95) 20%, rgba(21,39,35,.5) 60%, rgba(21,39,35,.25) 100%);
}
.subpage-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 5% 3.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.subpage-hero-content .section-eyebrow { margin-bottom: .7rem; }
.subpage-hero-content h1 {
  font-family: var(--font-h);
  font-size: clamp(1.3rem, 2.5vw, 2.6rem);
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  min-height: 1.1em;
  overflow: visible;
}
.subpage-hero-content h1 em { font-style: italic; color: var(--oro-light); }

/* Services list page */
.services-section { background: var(--crema); }
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--crema-2);
}
.srv-card {
  background: var(--blanco);
  padding: 2rem 1.8rem;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  position: relative;
  overflow: hidden;
}
.srv-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--oro);
  transition: height .4s var(--ease);
}
.srv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: #fdfdfc; }
.srv-card:hover::after { height: 100%; }
.srv-card-num {
  font-family: var(--font-h);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--oro);
  margin-bottom: 1rem;
}
.srv-card h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .6rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.srv-card p {
  font-family: var(--font-b);
  font-size: .78rem;
  color: var(--gris);
  line-height: 1.7;
  font-weight: 300;
}
.srv-card-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.2rem;
  font-family: var(--font-b);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--verde);
  transition: gap .3s, color .25s;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s, gap .25s, color .25s;
}
.srv-card:hover .srv-card-more { opacity: 1; transform: translateY(0); color: var(--oro); }

/* Obra dark theme for service cards */
.srv-card.obra {
  background: var(--obra-2);
  color: var(--blanco);
}
.srv-card.obra::after { background: var(--obra-5); }
.srv-card.obra h3 { color: rgba(255,255,255,.9); }
.srv-card.obra p { color: rgba(255,255,255,.4); }
.srv-card.obra .srv-card-num { color: var(--obra-5); }
.srv-card.obra:hover { background: var(--obra-3); }
.srv-card.obra .srv-card-more { color: rgba(255,255,255,.5); }
.srv-card.obra:hover .srv-card-more { color: var(--obra-5); }

/* ═══════════════════════════════════════════
   POPUP MODAL
═══════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12,28,24,.75);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
  backdrop-filter: blur(6px);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--blanco);
  border-radius: 8px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(.97);
  transition: transform .4s var(--ease-back);
  box-shadow: var(--shadow-xl);
  position: relative;
}
.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}
.modal-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.modal-body { padding: 2.2rem 2.4rem 2.4rem; }
.modal-eyebrow {
  font-family: var(--font-b);
  font-size: .58rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--oro);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.modal-eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--oro); }
.modal h2 {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--verde);
  margin-bottom: 1rem;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.modal-desc {
  font-family: var(--font-b);
  font-size: .87rem;
  color: var(--gris);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.modal-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .8rem;
  margin-bottom: 2rem;
}
.modal-bullets li {
  font-family: var(--font-b);
  font-size: .8rem;
  color: var(--verde);
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.4;
}
.modal-bullets li::before {
  content: '✓';
  color: var(--oro);
  font-weight: 700;
  flex-shrink: 0;
  font-size: .75rem;
  margin-top: .05rem;
}
.modal-footer {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--crema-2);
}
.modal-close {
  position: absolute;
  top: .9rem; right: .9rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background .25s;
  border: none;
  z-index: 1;
}
.modal-close:hover { background: var(--verde); }

/* ═══════════════════════════════════════════
   OBRA PAGE – FULL MONOCHROME OVERRIDES
═══════════════════════════════════════════ */
body.obra-mode #navbar { }
body.obra-mode #navbar.scrolled {
  background: rgba(14,14,14,.97) !important;
}
body.obra-mode .nav-logo-name { color: var(--blanco); }
body.obra-mode .nav-logo-sub { color: var(--obra-5); }
body.obra-mode .nav-links a,
body.obra-mode .nav-links button { color: rgba(255,255,255,.6); }
body.obra-mode .nav-links a:hover,
body.obra-mode .nav-links button:hover { color: var(--blanco); background: rgba(255,255,255,.07); }
body.obra-mode .nav-cta-btn {
  background: var(--obra-4) !important;
  color: var(--blanco) !important;
}
body.obra-mode .nav-cta-btn:hover { background: var(--obra-5) !important; color: var(--obra-1) !important; }
body.obra-mode .mobile-nav { background: var(--obra-1); }
body.obra-mode .hamburger span { background: var(--blanco); }

/* Obra footer mono */
.obra-footer footer {
  background: #080808 !important;
}
.obra-footer .f-brand-name { color: rgba(255,255,255,.9) !important; }
.obra-footer .f-brand-sub { color: var(--obra-5) !important; }
.obra-footer .f-col h5 { color: rgba(255,255,255,.7) !important; }
.obra-footer .f-col a,
.obra-footer .f-col button { color: rgba(255,255,255,.3) !important; }
.obra-footer .f-col a:hover,
.obra-footer .f-col button:hover { color: var(--obra-5) !important; }
.obra-footer .f-social { border-color: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.3) !important; }
.obra-footer .f-social:hover { border-color: var(--obra-5) !important; color: var(--obra-5) !important; }
.obra-footer .footer-bottom { color: rgba(255,255,255,.25) !important; }
.obra-footer .footer-bottom a { color: var(--obra-5) !important; }
.obra-footer footer { border-top: 1px solid rgba(255,255,255,.05); }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* --- Clip-reveal: words slide up from behind a mask --- */
.clip-reveal {
  overflow: hidden;
  display: inline-block;
}
.clip-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.clip-reveal.in span { opacity: 1; transform: translateY(0); }

/* --- Fade-left --- */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal-left.in { opacity: 1; transform: translateX(0); }

/* --- Fade-right --- */
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal-right.in { opacity: 1; transform: translateX(0); }

/* --- Scale-up --- */
.reveal-scale {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* --- Word-by-word title animation --- */
.char-anim .char,
.char-anim .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  white-space: nowrap;
}
.char-anim.in .char,
.char-anim.in .word { opacity: 1; transform: translateY(0); }

/* --- Number counter animation --- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.count-anim { animation: none; }
.count-anim.in { animation: countUp .6s var(--ease) forwards; }

/* --- Underline sweep on headings --- */
.underline-sweep {
  position: relative;
  display: inline;
}
.underline-sweep::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  height: 2px;
  width: 0;
  background: var(--oro);
  transition: width .7s var(--ease);
}
.underline-sweep.in::after { width: 100%; }
.obra-mode .underline-sweep::after { background: var(--obra-5); }

/* --- Stagger children shorthand --- */
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.stagger.in > *:nth-child(2) { opacity:1; transform:none; transition-delay:.13s; }
.stagger.in > *:nth-child(3) { opacity:1; transform:none; transition-delay:.21s; }
.stagger.in > *:nth-child(4) { opacity:1; transform:none; transition-delay:.29s; }
.stagger.in > *:nth-child(5) { opacity:1; transform:none; transition-delay:.37s; }
.stagger.in > *:nth-child(6) { opacity:1; transform:none; transition-delay:.45s; }
.stagger.in > *:nth-child(7) { opacity:1; transform:none; transition-delay:.53s; }
.stagger.in > *:nth-child(8) { opacity:1; transform:none; transition-delay:.61s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .nosotros-grid { gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .modal-bullets { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topbar-left { display: none !important; }
  #topbar { justify-content: flex-end; padding: 0 4%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .areas-grid { grid-template-columns: 1fr; }
  .areas-header { grid-template-columns: 1fr; gap: 1.2rem; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .nos-img-stack { max-width: 420px; }
  .services-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .c-form-row { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sticky img { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-gold, .btn-outline-white { justify-content: center; }
  .modal-bullets { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nos-img-stack { padding-bottom: 2rem; padding-right: 2rem; }
  .nos-badge { left: 0; }
}
