:root {
  --ink: #14261c;
  --green: #1a4332;
  --green-2: #245c43;
  --leaf: #3e7a58;
  --gold: #9a7b3c;
  --cream: #f3efe4;
  --paper: #f6f3eb;
  --card: #fffcf6;
  --line: #e4dccb;
  --muted: #5c675f;
  --danger: #8c3a32;
  --ok: #1d6b45;
  --shadow: 0 24px 60px rgba(20, 38, 28, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(rgba(26, 67, 50, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 67, 50, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px, 56px 56px, auto;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--green);
  color: white;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(246, 243, 235, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--green);
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.brand-name span { color: var(--leaf); }
.menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.menu button[aria-current="page"] {
  background: var(--green);
  color: white;
}
.menu button:hover { color: var(--ink); }
.menu button[aria-current="page"]:hover { color: white; }
.nav-cta {
  background: var(--green) !important;
  color: white !important;
}
.burger {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.view { display: none; padding: 42px 0 72px; }
.view.active { display: block; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.kicker i {
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.98; margin: 0 0 12px; color: var(--green); }
h1 .plus { color: var(--leaf); }
.hero-line {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 14px;
  max-width: 22ch;
  color: var(--ink);
}
.lede { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: #123528; }
.btn-ghost { background: transparent; color: var(--green); border: 1px solid #c9d3cb; }
.btn-ghost:hover { border-color: var(--green); }
.btn-full { width: 100%; }
.hero-photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.4);
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s ease;
}
.hero-photo:hover img { transform: scale(1.09); }
.hero-photo figcaption {
  background: var(--green);
  color: #d7e4da;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.presence {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(62, 122, 88, 0.12), transparent 55%),
    linear-gradient(135deg, #1a4332 0%, #2a4f3a 55%, #3d3424 100%);
  color: #f3efe4;
  overflow: hidden;
}
.presence-photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
}
.presence-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: 70% 40%;
}
.presence-copy { padding: 8px 12px 8px 0; }
.presence .kicker { color: #c9ddcf; }
.presence .kicker i { background: var(--gold); }
.presence h2 {
  color: white;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 12px;
  max-width: 16ch;
}
.presence p { margin: 0; color: rgba(243, 239, 228, 0.86); max-width: 38ch; }

/* Visible por defecto: la animación es optativa y no puede dejar la página en blanco. */
.reveal {
  opacity: 1;
  transform: none;
}
html.motion-ok .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}
html.motion-ok .reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.motion-ok .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.mosaic figure img, .photo-row figure img {
  transition: transform 0.8s ease;
}
.mosaic figure:hover img, .photo-row figure:hover img {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  html.motion-ok .reveal,
  .hero-photo img,
  .mosaic figure img,
  .photo-row figure img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
.mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 12px;
}
.mosaic figure:first-child { grid-row: 1 / span 2; }
.photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.module-group .photo-row { grid-template-columns: repeat(3, 1fr); }
.module-group .photo-row.cuatro { grid-template-columns: repeat(4, 1fr); }
.mosaic figure, .photo-row figure {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 180px;
}
.mosaic img, .photo-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-row img { height: 190px; }
.mosaic figcaption, .photo-row figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: white;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.band { margin-top: 64px; }
.band h2 { font-size: clamp(30px, 3vw, 42px); margin: 0 0 8px; }
.band .intro { color: var(--muted); margin: 0 0 24px; max-width: 62ch; }
.grid-3, .grid-2, .grid-plans { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-plans { grid-template-columns: repeat(5, 1fr); }

.card, .plan, .module, .screen {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.card h3, .module h3 { margin: 8px 0 6px; font-size: 22px; }
.card p, .module p, .plan p { margin: 0; color: var(--muted); font-size: 14.5px; }
.icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e7f0ea;
  color: var(--green);
  font-size: 16px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.flow article {
  padding: 22px;
  border-radius: 22px;
  color: white;
  min-height: 180px;
}
.flow h3 { margin: 0 0 8px; font-size: 28px; }
.flow p { margin: 0; color: rgba(255,255,255,0.82); }
.flow article:nth-child(1) { background: #1a4332; }
.flow article:nth-child(2) { background: #245c43; }
.flow article:nth-child(3) { background: #3d3424; }

.modules { display: grid; gap: 22px; }
.module-group h2 {
  font-size: 28px;
  margin: 0 0 12px;
}
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.module strong { display: block; font-size: 15px; margin-bottom: 4px; }
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.plan strong { display: block; font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.plan.featured { background: var(--green); color: white; border-color: var(--green); }
.plan.featured p { color: rgba(255,255,255,0.8); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.kpi span { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.kpi b { display: block; margin-top: 8px; font-family: var(--serif); font-size: 28px; font-weight: 560; }
.kpi small { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

.screen-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--muted);
}
.pills button[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid #f0eadf; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ok { color: var(--ok); font-weight: 650; }
.warn { color: #8a5a12; font-weight: 650; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: start; }
form label { display: block; font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; margin: 12px 0 6px; color: var(--muted); }
form input, form select {
  width: 100%;
  border: 1px solid #d9d1c2;
  background: white;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 15px;
  color: var(--ink);
}
form input:focus, form select:focus { outline: 2px solid #cfe0d4; border-color: var(--leaf); }
.form-card h2 { margin-top: 0; }
.help { font-size: 13px; color: var(--muted); margin-top: 8px; }
.banner {
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 14px;
  display: none;
}
.banner.show { display: block; }
.banner.ok { background: #e8f6ee; color: #145233; }
.banner.err { background: #fdeceb; color: var(--danger); }
.checklist { margin: 8px 0 0; padding: 0; list-style: none; }
.checklist li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li:before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); }

.gate {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  min-height: 420px;
}
.gate-photo { margin: 0; min-height: 420px; }
.gate-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.gate-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 32px 36px 8px;
}
.gate-copy h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 10px; }
.gate-copy .lede { margin-bottom: 22px; }
.gate-copy .actions { margin-bottom: 12px; }
.gate-copy .btn-primary { min-width: 180px; }

.portal { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.frame-wrap {
  background: #0f241c;
  border-radius: 22px;
  overflow: hidden;
  min-height: 640px;
  border: 1px solid #163528;
}
.frame-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #d5e6db;
  padding: 12px 14px;
  font-size: 13px;
}
.frame-bar a { color: white; }
iframe { width: 100%; height: 680px; border: 0; background: white; }
.missing {
  margin: 24px;
  background: white;
  color: var(--ink);
  border-radius: 16px;
  padding: 22px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-table { width: 100%; border-collapse: collapse; background: white; }
.admin-table th, .admin-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }

@media (max-width: 980px) {
  .hero, .presence, .gate, .split, .portal, .grid-3, .grid-2, .flow, .module-grid, .kpi-grid, .grid-plans, .mosaic, .photo-row, .module-group .photo-row, .module-group .photo-row.cuatro {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .mosaic figure:first-child { grid-row: auto; }
  .hero-photo img, .photo-row img, .presence-photo img, .gate-photo img { height: 240px; min-height: 240px; }
  .presence { padding: 14px; }
  .presence-copy { padding: 4px 2px 8px; }
  .gate-copy { padding: 22px 18px 28px; }
  .gate { min-height: 0; }
  .burger { display: inline-flex; }
  .menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .nav { position: sticky; }
}
