/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --verde:    #7aab8a;   /* Monte Albán — pastel */
  --rojo:     #d4736a;   /* Grana cochinilla — pastel */
  --amarillo: #d4b96a;   /* Huipil oro — pastel */
  --barro:    #8a6e5e;   /* Barro negro — pastel */
  --crema:    #f5f0e8;
  --fondo:    #faf7f2;
  --texto:    #2e2a26;
  --gris:     #6b6560;
  --borde:    #e2dbd0;

  --ff-display: 'DM Serif Display', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'JetBrains Mono', monospace;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── BANNER "EN CONSTRUCCIÓN" ────────────────────────────── */
.banner {
  background: var(--amarillo);
  color: #3a2e10;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  padding: .55rem 1rem;
}
.banner span { opacity: .7; margin: 0 .5rem; }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5%;
  border-bottom: 1px solid var(--borde);
  background: var(--fondo);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: var(--ff-mono);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--texto);
}
.logo em {
  color: var(--verde);
  font-style: normal;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gris);
}
.nav-links a:hover { color: var(--texto); }
.nav-cta {
  background: var(--verde);
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: #5e9470; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 5% 4rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--barro);
  background: var(--crema);
  border: 1px solid var(--borde);
  border-radius: 4px;
  padding: .3rem .85rem;
  margin-bottom: 1.8rem;
}
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  color: var(--texto);
  margin-bottom: 1.4rem;
}
.hero h1 i {
  font-style: italic;
  color: var(--verde);
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--gris);
  max-width: 580px;
  margin: 0 auto 2.4rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--verde);
  color: #fff;
  padding: .75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: #5e9470; transform: translateY(-1px); }
.btn-wa {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #d4ead9;
  color: #2e6640;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid #a8d4b2;
  transition: background .2s;
}
.btn-wa:hover { background: #bcdcc5; }
.btn-wa svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── DIVISOR ─────────────────────────────────────────────── */
.divider {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--borde);
}

/* ── FEATURES ────────────────────────────────────────────── */
.features {
  max-width: 960px;
  margin: 4rem auto;
  padding: 0 5%;
}
.section-label {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--barro);
  margin-bottom: 1rem;
}
.features h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: .6rem;
}
.features-lead {
  color: var(--gris);
  max-width: 540px;
  margin-bottom: 3rem;
  font-size: .97rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--crema);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 1.6rem 1.5rem;
}
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.card-icon.verde    { background: #d6ede0; }
.card-icon.rojo     { background: #f0dbd9; }
.card-icon.amarillo { background: #f0e7cf; }
.card-icon.barro    { background: #e8ddd8; }
.card h3 {
  font-size: .97rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.card p {
  font-size: .87rem;
  color: var(--gris);
  line-height: 1.55;
}

/* ── MULTI-SITE HIGHLIGHT ────────────────────────────────── */
.multisite {
  max-width: 960px;
  margin: 4rem auto;
  padding: 0 5%;
}
.multisite-inner {
  background: var(--crema);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.multisite-inner h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .8rem;
}
.multisite-inner h2 i {
  font-style: italic;
  color: var(--rojo);
}
.multisite-inner p {
  color: var(--gris);
  font-size: .93rem;
  margin-bottom: 1.2rem;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tag {
  font-family: var(--ff-mono);
  font-size: .72rem;
  padding: .25rem .7rem;
  border-radius: 20px;
  border: 1px solid var(--borde);
  background: var(--fondo);
  color: var(--gris);
}

/* ASCII-style site diagram */
.site-diagram {
  font-family: var(--ff-mono);
  font-size: .74rem;
  line-height: 1.9;
  color: var(--texto);
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
}
.site-diagram .node-corp { color: var(--verde); font-weight: 700; }
.site-diagram .node-site { color: var(--barro); }
.site-diagram .node-data { color: var(--rojo); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact {
  max-width: 640px;
  margin: 4rem auto 5rem;
  padding: 0 5%;
}
.contact h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .5rem;
}
.contact-lead {
  color: var(--gris);
  font-size: .93rem;
  margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--texto);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--borde);
  border-radius: 8px;
  background: var(--crema);
  font-family: var(--ff-body);
  font-size: .92rem;
  color: var(--texto);
  transition: border-color .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(122, 171, 138, .18);
}
.form-group textarea { min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%;
  padding: .85rem;
  background: var(--verde);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  margin-top: .4rem;
}
.btn-submit:hover { background: #5e9470; }
.wa-alt {
  text-align: center;
  margin-top: 1.4rem;
  font-size: .88rem;
  color: var(--gris);
}
.wa-alt a {
  color: var(--verde);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.wa-alt a svg { width: 16px; height: 16px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--borde);
  padding: 2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--gris);
}
.footer-logo {
  font-family: var(--ff-mono);
  font-weight: 500;
  color: var(--texto);
}
.footer-logo em { color: var(--verde); font-style: normal; }
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-mono);
  font-size: .72rem;
}
.status-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amarillo);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .multisite-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .form-row { grid-template-columns: 1fr; }
}