/* ============================================
   NEXT MOON S.L. — Sistema visual
   ============================================ */

:root {
  --gold: #C9A84C;
  --gold-deep: #A8893A;
  --gold-light: #E5CE89;
  --navy: #0F1C2E;
  --navy-soft: #1B2A3E;
  --navy-deep: #081120;
  --cream: #FAF7F2;
  --paper: #F3EEE5;
  --gray-100: #EFECE6;
  --gray-300: #C9C4BA;
  --gray-500: #8A8680;
  --gray-700: #4A4740;
  --ink: #1A1A1A;
  --white: #FFFFFF;

  --f-display: "Playfair Display", Georgia, serif;
  --f-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--navy);
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.kicker-navy .eyebrow { color: var(--gold); }
.kicker-navy .eyebrow::before { background: var(--gold); }

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: clamp(72px, 10vw, 140px) 0; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: rgba(15, 28, 46, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
  transition: color .35s ease;
  cursor: pointer;
}
.nav.scrolled .nav-logo { color: var(--navy); }
.nav-logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  box-shadow: inset -4px -6px 10px rgba(0,0,0,0.15), 0 2px 8px rgba(201,168,76,0.35);
  position: relative;
  flex-shrink: 0;
}
.nav-logo .mark::after {
  content: "";
  position: absolute;
  inset: 6px 8px 10px 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%);
}
.nav-logo small {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}
.nav-logo .wordmark { display: flex; flex-direction: column; line-height: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
  cursor: pointer;
}
.nav.scrolled .nav-links a { color: var(--navy); }
.nav-links a:hover { color: var(--gold) !important; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.nav.scrolled .nav-cta { background: var(--navy); color: var(--cream); }
.nav-cta:hover { background: var(--cream) !important; color: var(--navy) !important; }
.nav.scrolled .nav-cta:hover { background: var(--gold) !important; color: var(--navy) !important; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid rgba(15,28,46,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
  .nav-toggle span { width: 22px; height: 1.5px; background: var(--cream); display: block; }
  .nav.scrolled .nav-toggle span { background: var(--navy); }
  .nav-cta { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all .28s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--cream);
}
.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 247, 242, 0.35);
}
.btn-ghost-light:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(15,28,46,0.92) 0%, rgba(15,28,46,0.78) 45%, rgba(15,28,46,0.35) 100%),
    repeating-linear-gradient(135deg, rgba(201,168,76,0.05) 0px, rgba(201,168,76,0.05) 2px, transparent 2px, transparent 14px),
    linear-gradient(180deg, #1B2A3E, #0F1C2E);
}
.hero-bg::after {
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 70%; height: 140%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(229,206,137,0.12), transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-text .eyebrow { color: var(--gold); }
.hero-text .eyebrow::before { background: var(--gold); }
.hero h1 {
  color: var(--cream);
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(250, 247, 242, 0.78);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.hero-visual .placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(201,168,76,0.18), transparent 40%),
    repeating-linear-gradient(45deg, #2a3648 0px, #2a3648 2px, #1f2a3c 2px, #1f2a3c 16px);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.hero-visual .placeholder-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(250,247,242,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-visual .gold-accent {
  position: absolute;
  top: -20px; right: -20px;
  width: 90px; height: 90px;
  border: 1px solid var(--gold);
  opacity: 0.6;
}
.hero-visual .gold-fill {
  position: absolute;
  bottom: -18px; left: -18px;
  width: 60px; height: 60px;
  background: var(--gold);
}

.hero-meta {
  position: absolute;
  bottom: 40px; left: var(--pad); right: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(250,247,242,0.5);
  text-transform: uppercase;
  font-family: var(--f-mono);
  z-index: 2;
}
.hero-meta .scroll-ind {
  display: flex; align-items: center; gap: 10px;
}
.hero-meta .scroll-ind .line {
  width: 40px; height: 1px; background: var(--gold); position: relative;
}
.hero-meta .loc { display: flex; gap: 24px; }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { aspect-ratio: 4/3; max-width: 500px; }
  .hero-meta { position: relative; bottom: auto; left: auto; right: auto; margin-top: 40px; flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================
   INTRO STATEMENT
   ============================================ */
.intro {
  background: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0;
  border-bottom: 1px solid var(--gray-100);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.intro-grid h2 {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.intro-grid h2 em {
  font-style: italic;
  color: var(--gold-deep);
}
.intro-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0 0 20px;
  max-width: 620px;
}
.intro-body p:first-child {
  font-size: 20px;
  color: var(--navy);
  line-height: 1.55;
}

.intro-stats {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-100);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.intro-stats .stat {
  display: flex;
  flex-direction: column;
}
.intro-stats .stat-num {
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.intro-stats .stat-num sup {
  font-size: 20px;
  color: var(--gold);
  vertical-align: top;
  margin-left: 2px;
}
.intro-stats .stat-label {
  font-size: 13px;
  color: var(--gray-500);
  letter-spacing: 0.03em;
}

@media (max-width: 800px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .intro-stats .stat-num { font-size: 36px; }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--paper);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 70px;
}
.section-head h2 {
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.section-head h2 em { font-style: italic; color: var(--gold-deep); }
.section-head p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.65;
  max-width: 440px;
  margin: 0 0 0 auto;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .section-head p { margin-left: 0; }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
}
.service-card {
  background: var(--cream);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: background .35s ease, transform .35s ease;
  cursor: pointer;
  position: relative;
}
.service-card:hover {
  background: var(--navy);
  color: var(--cream);
}
.service-card:hover h3, .service-card:hover p { color: var(--cream); }
.service-card:hover .service-num { color: var(--gold); }
.service-card:hover .service-arrow { background: var(--gold); color: var(--navy); }
.service-card:hover .service-icon-wrap { border-color: var(--gold); }
.service-card:hover .service-icon-wrap svg { stroke: var(--gold); }

.service-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  margin-bottom: 50px;
  transition: color .3s;
}
.service-icon-wrap {
  width: 56px; height: 56px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: border-color .3s;
}
.service-icon-wrap svg {
  width: 24px; height: 24px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.4;
  transition: stroke .3s;
}
.service-card h3 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
  transition: color .3s;
}
.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
  transition: color .3s;
  margin: 0 0 auto;
}
.service-arrow {
  margin-top: 28px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: all .3s;
}
.service-card.featured {
  background: var(--navy);
  color: var(--cream);
}
.service-card.featured h3, .service-card.featured p { color: var(--cream); }
.service-card.featured .service-num { color: var(--gold); }
.service-card.featured p { color: rgba(250,247,242,0.7); }
.service-card.featured .service-icon-wrap { border-color: var(--gold); }
.service-card.featured .service-icon-wrap svg { stroke: var(--gold); }
.service-card.featured .service-arrow { background: var(--gold); color: var(--navy); border: none; }
.service-card.featured .tag {
  position: absolute;
  top: 28px; right: 28px;
  background: var(--gold);
  color: var(--navy);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; padding: 36px 28px; }
}

/* ============================================
   WHY US
   ============================================ */
.why {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.07), transparent 60%);
  pointer-events: none;
}
.why h2 { color: var(--cream); }
.why .section-head p { color: rgba(250,247,242,0.7); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.why-item {
  padding: 40px 40px 40px 0;
  border-top: 1px solid rgba(201,168,76,0.2);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
}
.why-item:nth-child(odd) { padding-right: 40px; border-right: 1px solid rgba(201,168,76,0.2); padding-left: 0; }
.why-item:nth-child(even) { padding-left: 40px; }
.why-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(201,168,76,0.2); }
.why-num {
  font-family: var(--f-display);
  font-size: 42px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}
.why-item h3 {
  color: var(--cream);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}
.why-item p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(250,247,242,0.7);
  margin: 0;
}

@media (max-width: 800px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item { padding: 32px 0 !important; border-right: none !important; }
  .why-item:nth-last-child(-n+2) { border-bottom: none; }
  .why-item:last-child { border-bottom: 1px solid rgba(201,168,76,0.2); }
}

/* ============================================
   PROJECTS / GALLERY
   ============================================ */
.projects { background: var(--cream); }

.project-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.project-filter {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--gray-700);
  background: transparent;
  border: 1px solid var(--gray-300);
  transition: all .2s;
}
.project-filter:hover { border-color: var(--navy); color: var(--navy); }
.project-filter.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
}
.project-card.wide { grid-column: span 8; aspect-ratio: 16/10; }
.project-card.tall { grid-column: span 4; }
.project-card.med  { grid-column: span 6; aspect-ratio: 4/3; }
.project-card.small { grid-column: span 4; aspect-ratio: 1/1; }

.project-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.project-card:hover .project-img { transform: scale(1.05); }

.project-card .project-placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(201,168,76,0.12), transparent 40%),
    repeating-linear-gradient(45deg, var(--gray-100) 0px, var(--gray-100) 2px, var(--paper) 2px, var(--paper) 14px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
}
.project-placeholder .placeholder-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
}
.project-placeholder .placeholder-label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,28,46,0.85), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--cream);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay .cat {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.project-overlay h4 {
  color: var(--cream);
  font-size: 22px;
  font-weight: 500;
}

.project-meta {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--cream);
  padding: 6px 12px;
  font-size: 11px;
  font-family: var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(6, 1fr); }
  .project-card.wide { grid-column: span 6; }
  .project-card.tall, .project-card.med, .project-card.small { grid-column: span 3; }
}
@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card.wide, .project-card.tall, .project-card.med, .project-card.small { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ============================================
   COMUNIDADES
   ============================================ */
.comunidades {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  position: relative;
}

.com-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.com-hero h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.com-hero h2 em { font-style: italic; color: var(--gold-deep); }
.com-hero p {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 540px;
}
.com-hero .features-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.com-hero .features-list li {
  font-size: 14px;
  color: var(--navy);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.com-hero .features-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 1px;
  background: var(--gold);
}

.com-visual {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, rgba(201,168,76,0.18), transparent 40%),
    repeating-linear-gradient(45deg, #2a3648 0px, #2a3648 2px, #1f2a3c 2px, #1f2a3c 16px);
  position: relative;
  display: flex; align-items: flex-end;
  padding: 28px;
}
.com-visual .label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(250,247,242,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.com-visual::before {
  content: "01";
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--f-display);
  font-size: 56px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}

.com-works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.com-work {
  padding: 28px 24px;
  background: var(--cream);
  border: 1px solid var(--gray-100);
  transition: all .3s;
}
.com-work:hover { border-color: var(--gold); transform: translateY(-2px); }
.com-work .icon {
  width: 40px; height: 40px;
  margin-bottom: 18px;
  color: var(--gold-deep);
}
.com-work h4 {
  font-size: 16px;
  font-weight: 500;
  font-family: var(--f-body);
  color: var(--navy);
  margin-bottom: 6px;
}
.com-work p {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .com-hero { grid-template-columns: 1fr; gap: 48px; }
  .com-hero .features-list { grid-template-columns: 1fr; }
  .com-works { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PROCESS
   ============================================ */
.process { background: var(--cream); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}
.process-step {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--gray-300);
}
.process-step .step-num {
  position: absolute;
  top: -14px;
  background: var(--cream);
  padding-right: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 0.15em;
}
.process-step h4 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--navy);
}
.process-step p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 800px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--paper); }

.testimonial-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.testimonial-side h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.testimonial-side h2 em { font-style: italic; color: var(--gold-deep); }
.testimonial-side p {
  color: var(--gray-700);
  line-height: 1.65;
  max-width: 400px;
  margin-bottom: 30px;
}
.testimonial-nav {
  display: flex;
  gap: 10px;
}
.testimonial-nav button {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.testimonial-nav button:hover { background: var(--navy); color: var(--cream); }

.testimonial-card {
  background: var(--cream);
  padding: 50px 50px 40px;
  border-left: 2px solid var(--gold);
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.testimonial-card .quote-mark {
  font-family: var(--f-display);
  font-size: 120px;
  color: var(--gold);
  line-height: 0.6;
  opacity: 0.3;
  position: absolute;
  top: 50px; right: 40px;
  font-style: italic;
}
.testimonial-card blockquote {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 32px;
  font-style: italic;
  flex-grow: 1;
}
.testimonial-card .author {
  display: flex; align-items: center; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.testimonial-card .author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
}
.testimonial-card .author-info strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
}
.testimonial-card .author-info span {
  font-size: 13px;
  color: var(--gray-500);
}
.testimonial-dots {
  margin-top: 20px;
  display: flex;
  gap: 6px;
}
.testimonial-dot {
  width: 24px; height: 2px;
  background: var(--gray-300);
  transition: background .25s;
}
.testimonial-dot.active { background: var(--gold); }

@media (max-width: 800px) {
  .testimonial-wrap { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-card { padding: 36px 28px; min-height: 0; }
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.contact {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 50%;
  pointer-events: none;
}
.contact::after {
  content: "";
  position: absolute;
  bottom: -100px; left: 50px;
  width: 300px; height: 300px;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 50%;
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }

.contact h2 { color: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  margin-top: 60px;
}
.contact-info h3 {
  color: var(--cream);
  font-size: 24px;
  font-family: var(--f-body);
  font-weight: 500;
  margin-bottom: 28px;
}
.contact-info .info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.contact-info .info-item:first-of-type { border-top: 1px solid rgba(201,168,76,0.15); }
.contact-info .info-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 100px;
  padding-top: 3px;
}
.contact-info .info-value {
  font-size: 16px;
  color: var(--cream);
  line-height: 1.5;
}
.contact-info .info-value a:hover { color: var(--gold); }

.contact-form {
  background: rgba(250,247,242,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea, .form-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 15px;
  padding: 10px 0;
  outline: none;
  transition: border-color .2s;
}
.form-field select { background: var(--navy); }
.form-field select option { background: var(--navy); color: var(--cream); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-bottom-color: var(--gold); }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(250,247,242,0.35); }
.form-field textarea { min-height: 100px; resize: vertical; }

.form-check {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: rgba(250,247,242,0.65);
  margin: 20px 0 24px;
  line-height: 1.5;
}
.form-check input { accent-color: var(--gold); margin-top: 2px; }
.form-check a { color: var(--gold); text-decoration: underline; }

.form-submit {
  background: var(--gold);
  color: var(--navy);
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s;
  width: 100%;
  justify-content: center;
}
.form-submit:hover { background: var(--cream); }
.form-submit.success { background: #2d8a4a; color: var(--cream); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(250,247,242,0.7);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250,247,242,0.08);
}
.footer-brand .nav-logo { margin-bottom: 20px; color: var(--cream); }
.footer-brand .nav-logo small { color: var(--gold); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 0 24px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: all .25s;
}
.footer-socials a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.footer-col h5 {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
  color: rgba(250,247,242,0.4);
}
.footer-bottom .legal-links { display: flex; gap: 24px; }
.footer-bottom .legal-links a:hover { color: var(--gold); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================
   WHATSAPP FLOATING
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
}
.whatsapp-float .wa-label {
  background: var(--cream);
  color: var(--navy);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateX(10px);
  transition: all .3s;
  white-space: nowrap;
  pointer-events: none;
}
.whatsapp-float:hover .wa-label { opacity: 1; transform: translateX(0); pointer-events: auto; }
.whatsapp-float .wa-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform .2s;
}
.whatsapp-float .wa-btn:hover { transform: scale(1.06); }
.whatsapp-float .wa-btn svg { width: 30px; height: 30px; }

@media (max-width: 600px) {
  .whatsapp-float { bottom: 18px; right: 18px; }
  .whatsapp-float .wa-btn { width: 54px; height: 54px; }
  .whatsapp-float .wa-label { display: none; }
}

/* ============================================
   PAGE ROUTING
   ============================================ */
.page { display: none; }
.page.active { display: block; animation: fadeIn .5s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PAGE HEADERS (non-home)
   ============================================ */
.page-header {
  padding: 180px 0 80px;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-100);
}
.page-header .eyebrow { color: var(--gold-deep); }
.page-header .eyebrow::before { background: var(--gold); }
.page-header h1 {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  max-width: 900px;
  margin-bottom: 28px;
}
.page-header h1 em { font-style: italic; color: var(--gold-deep); }
.page-header p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0;
}
.breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 40px;
}
.breadcrumb span { color: var(--gold-deep); }

/* ============================================
   SERVICIOS PAGE
   ============================================ */
.service-detail {
  padding: 100px 0;
  border-bottom: 1px solid var(--gray-100);
}
.service-detail:nth-child(even) { background: var(--paper); }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.service-detail:nth-child(even) .service-detail-grid { direction: rtl; }
.service-detail:nth-child(even) .service-detail-grid > * { direction: ltr; }

.service-detail h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  margin-bottom: 20px;
}
.service-detail h2 em { font-style: italic; color: var(--gold-deep); }
.service-detail .lead {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 32px;
}
.service-detail .includes {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.service-detail .includes li {
  font-size: 14px;
  color: var(--navy);
  padding-left: 20px;
  position: relative;
}
.service-detail .includes li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}
.service-detail-visual {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, rgba(201,168,76,0.15), transparent 40%),
    repeating-linear-gradient(45deg, var(--gray-100) 0px, var(--gray-100) 2px, var(--paper) 2px, var(--paper) 14px);
  display: flex; align-items: flex-end;
  padding: 28px;
  position: relative;
}
.service-detail-visual .ph-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-detail-visual .ph-num {
  position: absolute;
  top: 24px; left: 28px;
  font-family: var(--f-display);
  font-size: 64px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}

@media (max-width: 900px) {
  .service-detail-grid { grid-template-columns: 1fr; gap: 40px; direction: ltr !important; }
  .service-detail .includes { grid-template-columns: 1fr; }
}

/* ============================================
   NOSOTROS
   ============================================ */
.about-intro {
  padding: 60px 0 100px;
  background: var(--cream);
}
.about-intro .big-quote {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0;
}
.about-intro .big-quote em { font-style: italic; color: var(--gold-deep); }

.about-values {
  background: var(--paper);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
  margin-top: 60px;
}
.value-card {
  background: var(--cream);
  padding: 50px 40px;
}
.value-card .value-num {
  font-family: var(--f-display);
  font-size: 40px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 30px;
}
.value-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 14px;
}
.value-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 800px) {
  .values-grid { grid-template-columns: 1fr; }
}

.about-area {
  background: var(--cream);
}
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.area-map {
  aspect-ratio: 4/3;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.area-map svg { width: 100%; height: 100%; }
.area-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.area-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
}
.area-list li::before {
  content: "●";
  color: var(--gold);
  font-size: 8px;
}
@media (max-width: 900px) {
  .area-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   TWEAKS PANEL
   ============================================ */
.tweaks-panel {
  position: fixed;
  bottom: 28px; left: 28px;
  z-index: 200;
  background: var(--cream);
  border: 1px solid var(--gray-300);
  padding: 20px 22px;
  width: 280px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: none;
  font-size: 13px;
}
.tweaks-panel.active { display: block; }
.tweaks-panel h4 {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 16px;
  font-weight: 600;
}
.tweak-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.tweak-row:last-child { border-bottom: none; }
.tweak-row label {
  font-size: 12px;
  color: var(--navy);
}
.tweak-row input[type="color"] {
  width: 36px; height: 24px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: none;
  padding: 2px;
  cursor: pointer;
}
.tweak-row select {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: var(--cream);
  color: var(--navy);
}
.tweak-row .toggle {
  display: flex; gap: 4px;
}
.tweak-row .toggle button {
  padding: 4px 10px;
  font-size: 11px;
  border: 1px solid var(--gray-300);
  background: var(--cream);
  color: var(--navy);
  border-radius: 4px;
}
.tweak-row .toggle button.active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px; right: 28px;
  background: var(--navy);
  color: var(--cream);
  padding: 14px 22px;
  border-left: 3px solid var(--gold);
  font-size: 14px;
  z-index: 150;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s;
  pointer-events: none;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ============================================
   LEGAL PAGES (Aviso legal, Privacidad, Cookies)
   ============================================ */
.legal-section {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
  background: var(--cream);
}
.legal-content {
  max-width: 840px !important;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  margin: 56px 0 16px;
  color: var(--navy);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 12px;
  letter-spacing: 0;
}
.legal-content p {
  line-height: 1.75;
  color: var(--gray-700);
  margin: 0 0 16px;
  font-size: 15.5px;
}
.legal-content ul {
  padding-left: 22px;
  margin: 0 0 20px;
  line-height: 1.8;
  color: var(--gray-700);
  font-size: 15.5px;
}
.legal-content ul li { margin-bottom: 6px; }
.legal-content a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.legal-content a:hover { color: var(--navy); }
.legal-content strong { color: var(--navy); font-weight: 600; }
.legal-content code {
  background: var(--gray-100);
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 0.88em;
  color: var(--gold-deep);
}
.legal-content em { font-style: italic; }

.legal-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 24px !important;
}
.legal-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(15,28,46,0.08);
  margin-bottom: 0 !important;
}
.legal-list li:last-child { border-bottom: none; }

.legal-note {
  font-size: 14px !important;
  color: var(--gray-700) !important;
  padding: 14px 18px !important;
  background: rgba(201,168,76,0.07);
  border-left: 2px solid var(--gold);
  margin: 12px 0 24px !important;
}

.legal-updated {
  font-family: var(--f-mono);
  font-size: 12px !important;
  color: var(--gray-500) !important;
  letter-spacing: 0.06em;
  margin-top: 64px !important;
  padding-top: 22px;
  border-top: 1px solid rgba(15,28,46,0.1);
  text-transform: uppercase;
}

.legal-table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}
.legal-table th, .legal-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(15,28,46,0.1);
  vertical-align: top;
  line-height: 1.5;
}
.legal-table th {
  font-weight: 600;
  background: var(--paper);
  color: var(--navy);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-table code { background: transparent; padding: 0; }

.footer-bottom .legal-links a,
.footer-col a { cursor: pointer; }
