:root {
  --bg: #060910;
  --bg-2: #0a0f17;
  --panel: #0e141e;
  --panel-soft: #111925;
  --gold: #d5a248;
  --gold-light: #f0c875;
  --gold-dark: #8f6425;
  --text: #f7f2e8;
  --muted: #c8c0b2;
  --line: rgba(213, 162, 72, .28);
  --radius: 24px;
  --shadow: 0 24px 65px rgba(0, 0, 0, .34);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(213,162,72,.08), transparent 28rem),
    radial-gradient(circle at 86% 30%, rgba(43,62,87,.24), transparent 34rem),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 44px 44px;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 104px 0; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 3000;
  padding: .7rem 1rem;
  border-radius: 10px;
  color: #080b10;
  background: var(--gold-light);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(213,162,72,.18);
  background: rgba(6,9,16,.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(5,8,13,.98); box-shadow: 0 14px 42px rgba(0,0,0,.28); }
.nav-wrap { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { width: 244px; max-width: 48vw; text-decoration: none; }
.brand img { width: 100%; height: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  position: relative;
  padding: .5rem 0;
  color: #ddd5c7;
  font-size: .83rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-light);
  transition: right .25s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold-light); }
.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  right: -180px;
  top: 20px;
  border: 1px solid rgba(213,162,72,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(213,162,72,.017), 0 0 0 126px rgba(213,162,72,.01);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); padding-block: 58px; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-light);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.builder-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.025em;
}
.hero h1 { max-width: 720px; font-size: clamp(3.5rem, 7vw, 6.8rem); line-height: .98; }
.hero-lead { margin: 1.55rem 0 0; color: var(--muted); font-size: 1.08rem; letter-spacing: .045em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.15rem; }
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .82rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .035em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #090c10; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 15px 36px rgba(213,162,72,.17); }
.btn-primary:hover { box-shadow: 0 20px 44px rgba(213,162,72,.24); }
.btn-secondary { color: var(--gold-light); border-color: rgba(213,162,72,.4); background: rgba(255,255,255,.015); }
.btn-secondary:hover { border-color: var(--gold); background: rgba(213,162,72,.07); }
.hero-phone { display: inline-flex; margin-top: 1.35rem; color: var(--gold-light); font-family: var(--serif); font-size: 1.55rem; letter-spacing: .06em; text-decoration: none; }

.hero-logo-wrap { display: grid; place-items: center; }
.logo-frame {
  position: relative;
  width: min(100%, 560px);
  padding: 12px;
  border: 1px solid rgba(213,162,72,.34);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(213,162,72,.07), rgba(255,255,255,.01));
  box-shadow: var(--shadow);
}
.logo-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 20%, rgba(240,200,117,.22), transparent 55%);
  filter: blur(24px);
}
.logo-frame img { width: 100%; height: auto; border-radius: 18px; object-fit: contain; }
.gold-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.services-section { background: linear-gradient(180deg, rgba(8,12,18,.28), rgba(9,13,20,.72)); }
.section-heading { max-width: 780px; margin: 0 auto 3.8rem; text-align: center; }
.section-heading h2 { font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: 1.06; }
.section-rule { display: block; width: 128px; height: 1px; margin: 1.6rem auto 0; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card {
  position: relative;
  min-height: 446px;
  padding: 2rem 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(213,162,72,.22);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(17,24,35,.96), rgba(8,12,19,.93));
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.service-card::before { content: ""; position: absolute; width: 170px; height: 170px; right: -60px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(213,162,72,.14), transparent 70%); }
.service-card:hover { transform: translateY(-7px); border-color: rgba(240,200,117,.5); box-shadow: 0 26px 54px rgba(0,0,0,.31); }
.service-icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 1.5rem; border: 1px solid rgba(213,162,72,.29); border-radius: 18px; background: rgba(213,162,72,.045); }
.service-icon svg { width: 44px; height: 44px; fill: none; stroke: var(--gold-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 0 0 1.2rem; color: var(--gold-light); font-family: var(--serif); font-size: 1.52rem; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
.service-card li,
.builder-list li { position: relative; padding: .54rem 0 .54rem 1.08rem; color: #d9d2c6; border-bottom: 1px solid rgba(255,255,255,.045); }
.service-card li::before,
.builder-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(213,162,72,.07); }

.builder-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(213,162,72,.15);
  background: radial-gradient(circle at 0 50%, rgba(213,162,72,.095), transparent 29rem), linear-gradient(135deg, #080c13, #0e151f 68%, #080c13);
}
.builder-section::after { content: ""; position: absolute; right: -120px; bottom: -180px; width: 440px; height: 440px; border: 1px solid rgba(213,162,72,.11); border-radius: 50%; }
.builder-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.building-mark { height: 90px; display: flex; align-items: end; gap: 6px; margin-bottom: 1.75rem; }
.building-mark span { display: block; border: 1px solid rgba(240,200,117,.58); border-bottom-color: var(--gold); background: linear-gradient(180deg, rgba(213,162,72,.08), transparent); }
.building-mark span:nth-child(1){width:34px;height:44px}.building-mark span:nth-child(2){width:42px;height:68px}.building-mark span:nth-child(3){width:48px;height:88px}.building-mark span:nth-child(4){width:38px;height:59px}.building-mark span:nth-child(5){width:52px;height:77px}
.builder-copy h2 { font-size: clamp(2.45rem, 5vw, 4.5rem); line-height: 1.03; }
.builder-card { padding: 2rem; border: 1px solid rgba(213,162,72,.23); border-radius: var(--radius); background: rgba(5,8,13,.42); box-shadow: var(--shadow); }
.builder-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }

.contact-section { padding-top: 90px; }
.contact-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4.3rem);
  border: 1px solid rgba(213,162,72,.28);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(18,24,34,.94), rgba(8,12,18,.94));
  box-shadow: var(--shadow);
}
.contact-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(213,162,72,.06), transparent 40%); }
.contact-copy { position: relative; max-width: 730px; }
.contact-copy h2 { font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.05; }
.contact-name { margin: 1rem 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.18rem; }
.contact-actions { position: relative; min-width: 260px; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.contact-number { color: var(--gold-light); font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.45rem); white-space: nowrap; text-decoration: none; }

.site-footer { border-top: 1px solid rgba(213,162,72,.16); background: #05070b; }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand span { color: var(--gold-light); font-family: var(--serif); font-size: 1.16rem; }
.footer-brand small { color: #a9a295; font-size: .73rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-inner > a { color: #d9cfbd; text-decoration: none; }

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #efc978, #c99231);
  box-shadow: 0 16px 35px rgba(0,0,0,.35);
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); }
.whatsapp-float svg { width: 31px; height: 31px; fill: none; stroke: #090c10; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* El contenido es visible por defecto. JavaScript solo añade una animación opcional. */
.reveal { opacity: 1; transform: none; }
.reveal.visible { animation: riseIn .65s cubic-bezier(.2,.65,.25,1) both; }
@keyframes riseIn { from { opacity: .35; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1040px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 390px; }
  .hero { min-height: 660px; }
}

@media (max-width: 820px) {
  .section { padding: 82px 0; }
  .nav-wrap { min-height: 78px; }
  .brand { width: 198px; }
  .menu-toggle { width: 46px; height: 42px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid rgba(213,162,72,.29); border-radius: 12px; background: rgba(255,255,255,.018); }
  .menu-toggle span { width: 20px; height: 1px; background: var(--gold-light); transition: transform .25s ease, opacity .25s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 10px); display: grid; gap: .2rem; padding: 1rem; border: 1px solid rgba(213,162,72,.2); border-radius: 18px; background: #080c13; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s ease, visibility .22s ease, transform .22s ease; }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: .8rem .9rem; border-radius: 10px; }
  .main-nav a::after { display: none; }

  .hero { min-height: auto; padding: 55px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.7rem); }
  .hero-logo-wrap { order: -1; }
  .logo-frame { width: min(100%, 520px); }

  .builder-grid { grid-template-columns: 1fr; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .contact-actions { min-width: 0; align-items: flex-start; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 1.6rem 1.3rem; }
  .builder-list { grid-template-columns: 1fr; }
  .contact-card { border-radius: 22px; }
  .footer-inner { min-height: 0; padding: 1.7rem 0; flex-direction: column; align-items: flex-start; gap: .8rem; }
  .whatsapp-float { right: 15px; bottom: 15px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
