/* ─── VARIABLES GLOBALES (:ROOT) ─── */
:root {
  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --navy: #0d1b2e;
  --navy-light: #162845;
  --gold: #e8a020;
  --gold-light: #f5b942;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #8899aa;
  --text-muted-light: #b0bec5;
  --text-hero: #b0bec5;
  --text-sub: #aaaaaa;
  --white: #ffffff;
  --bg-light: #f5f5f5;
  --gray-bg: #f5f5f5;
  --bg-gold-light: #fff8ec;
  --gold-bg-light: #fff8ec;
  --bg-white-trans: rgba(255, 255, 255, 0.04);
  --border-light: #e8e8e8;
  --gray-border: #e8e8e8;
  --border-trans: rgba(255, 255, 255, 0.08);
  --border-gold-trans: rgba(232, 160, 32, 0.4);
  --border-divider: rgba(255, 255, 255, 0.1);
  --overlay-bg: rgba(0, 0, 0, 0.45);
  --shadow-light: rgba(13, 27, 46, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  font-family: var(--font-main);
}

body {
  background-color: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-moz-selection { background: var(--gold); color: var(--navy); }
::selection { background: var(--gold); color: var(--navy); }

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
button { cursor: pointer; border: none; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAVBAR ── */
nav {
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 72px;
  position: sticky; top: 0; z-index: 100;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 54px; width: auto; object-fit: contain; }

.logo-icon {
  width: 54px; height: 54px;
  background: var(--gold); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 28px; font-weight: 900;
  color: var(--navy); line-height: 1;
}

.logo-text { display: flex; align-items: baseline; gap: 4px; }
.logo-text .luz { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: 2px; }
.logo-text .spa { font-family: var(--font-heading); font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 3px; }

nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
nav ul a { color: var(--white); font-size: 14px; font-weight: 500; position: relative; padding-bottom: 4px; }
nav ul a:hover { color: var(--gold); }
nav ul a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px; background: var(--gold); border-radius: 2px;
}

.btn-nav {
  background: var(--gold); color: var(--navy) !important;
  padding: 9px 22px !important; border-radius: 6px;
  font-weight: 600 !important; font-size: 13px !important;
  display: flex; align-items: center; gap: 9px;
  transition: background .2s, transform .15s !important;
}
.btn-nav:hover { background: var(--gold-light) !important; transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 201; position: relative;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px; background: var(--white);
  border-radius: 3px; transition: transform .3s, opacity .3s, background .2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--gold); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--gold); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--navy); z-index: 200;
  transform: translateY(-100%); transition: transform .4s cubic-bezier(.4,0,.2,1);
  padding-top: 72px; border-bottom: 3px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-inner { display: flex; flex-direction: column; }
.mobile-menu a {
  color: var(--white); font-family: var(--font-heading);
  font-size: 15px; font-weight: 600; padding: 16px 24px;
  border-bottom: 1px solid var(--border-trans); text-align: center; letter-spacing: .5px;
}
.mobile-menu a:hover { color: var(--gold); background: rgba(232,160,32,.06); }
.mobile-menu a.active { color: var(--gold); position: relative; }
.mobile-menu a.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--gold); border-radius: 2px;
}
.mobile-menu .btn-nav-mobile {
  margin: 20px 24px 24px; background: var(--gold); color: var(--navy);
  padding: 15px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; border-bottom: none;
}
.mobile-menu .btn-nav-mobile:hover { background: var(--gold-light); }

.menu-overlay {
  position: fixed; inset: 0; background: var(--overlay-bg); z-index: 199;
  opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(2px);
}
.menu-overlay.active { opacity: 1; pointer-events: all; }

/* ── TIPOGRAFÍAS ── */
.label-caps {
  font-family: var(--font-heading); font-size: 12px; line-height: 16px;
  letter-spacing: 0.12em; font-weight: 700; color: var(--gold);
  display: block; margin-bottom: 16px; text-transform: uppercase;
}
.display-xl {
  font-family: var(--font-heading); font-size: 36px; line-height: 44px;
  letter-spacing: -0.02em; font-weight: 800; color: var(--white);
}
.headline-lg {
  font-family: var(--font-heading); font-size: 28px; line-height: 36px;
  font-weight: 700; color: var(--navy);
}
.body-base { font-size: 16px; line-height: 26px; font-weight: 400; }

.txt-hero  { color: var(--text-hero); }
.txt-white { color: var(--white); }
.text-variant { color: var(--text-light); }
.text-accent  { color: var(--gold); }
.text-center  { text-align: center; }
.mb-16 { margin-bottom: 64px; }

.max-container {
  max-width: 1280px; margin-left: auto; margin-right: auto;
  padding-left: 24px; padding-right: 24px;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero-section {
  position: relative;
  background-color: var(--navy);
  padding: 96px 0;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(13, 27, 46, 0.72);
  z-index: 10;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.22; z-index: 0;
}
.hero-content {
  position: relative; z-index: 20;
  max-width: 760px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-content h1 { margin-bottom: 24px; }
.hero-content .body-base { max-width: 580px; }

/* ─────────────────────────────────────────
   SECCIÓN: PROYECTOS DESTACADOS
───────────────────────────────────────── */
.projects-section {
  padding: 96px 0;
  background-color: var(--white);
}

.projects-header {
  text-align: center;
  margin-bottom: 56px;
}

/* Grid de tarjetas: 3 columnas en desktop */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ── Tarjeta de proyecto ── */
.project-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--navy);
  cursor: pointer;
  box-shadow: 0 4px 20px var(--shadow-light);
}

.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
  opacity: 0.7;
}

/* Overlay oscuro gradiente inferior */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 27, 46, 0.92) 0%,
    rgba(13, 27, 46, 0.35) 50%,
    transparent 100%
  );
  z-index: 1;
  transition: background 0.3s ease;
}
.project-card:hover .card-overlay {
  background: linear-gradient(
    to top,
    rgba(13, 27, 46, 0.96) 0%,
    rgba(13, 27, 46, 0.55) 60%,
    rgba(13, 27, 46, 0.1) 100%
  );
}

/* Info dentro de la tarjeta */
.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 20px 20px 22px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.card-icon {
  width: 38px; height: 38px; min-width: 38px;
  background: var(--gold);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-icon svg {
  width: 18px; height: 18px;
  color: var(--navy);
  stroke: var(--navy);
}

.card-text { flex: 1; }
.card-title {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 4px;
}
.card-desc {
  font-size: 12px;
  color: var(--text-muted-light);
  line-height: 1.4;
}

/* ─────────────────────────────────────────
   CTA FINAL
───────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background-color: var(--gold-bg-light);
  border-top: 1px solid var(--gray-border);
}
.cta-wrapper {
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start; gap: 32px;
}
.cta-text h2 {
  font-family: var(--font-heading); font-size: 28px; font-weight: 800;
  color: var(--navy); margin-bottom: 12px;
}
.cta-text p { color: var(--text-light); font-size: 16px; }
.btn-dark {
  background-color: var(--navy); color: var(--white);
  font-family: var(--font-heading); padding: 16px 32px; border-radius: 4px;
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px var(--shadow-light); transition: background 0.2s;
  white-space: nowrap;
}
.btn-dark:hover { background-color: var(--navy-light); }
.btn-dark svg { width: 16px; height: 16px; }

/* ── FOOTER ── */
.footer-top {
  background: var(--navy); padding: 50px 60px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px;
  border-top: 3px solid var(--gold);
}
.footer-brand p { color: var(--text-muted); font-size: 13px; line-height: 1.7; max-width: 240px; }
.footer-col-title {
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-bottom: 14px;
}
.footer-contact-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.footer-social { margin-top: 4px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1.5px solid var(--border-gold-trans);
  border-radius: 8px; color: var(--text-muted);
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  background: var(--navy-light); padding: 18px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--border-trans); flex-wrap: wrap;
}
.footer-bottom-item { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.footer-divider { width: 1px; height: 26px; background: var(--border-divider); }

/* ── MEDIA QUERIES ── */
@media (min-width: 600px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .display-xl { font-size: 48px; line-height: 56px; }
  .hero-section { padding: 120px 0; }
  .cta-wrapper { flex-direction: row; align-items: center; }
}

@media (max-width: 900px) {
  nav { padding: 0 24px; }
  nav ul { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 40px 24px 24px; gap: 30px; }
  .footer-bottom { padding: 18px 24px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-divider { display: none; }
}

@media (max-width: 560px) {
  nav { padding: 0 18px; height: 64px; }
  .footer-top { grid-template-columns: 1fr; padding: 36px 18px 20px; }
  .footer-bottom { padding: 16px 18px; }
  .display-xl { font-size: 30px; line-height: 38px; }
  .projects-section { padding: 64px 0; }
}