:root {
  color-scheme: light;
  /* Variables de marca: cambia estos valores para adaptar la identidad visual. */
  --ink: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);
  --muted2: rgba(15, 23, 42, 0.56);
  --bg-soft: #f6f7f4;
  --card: rgba(255, 255, 255, 0.86);
  --stroke: rgba(15, 23, 42, 0.12);
  --shadow: rgba(15, 23, 42, 0.14);
  --accent: #0ea5e9;
  --accent2: #f97316;
  --accent3: #16a34a;
  --good: #16a34a;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Bahnschrift", "Segoe UI Variable", "Aptos", "Calibri", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(950px 500px at 10% 12%, rgba(14, 165, 233, 0.23), transparent 62%),
    radial-gradient(840px 460px at 92% 22%, rgba(249, 115, 22, 0.24), transparent 64%),
    radial-gradient(840px 460px at 74% 88%, rgba(22, 163, 74, 0.2), transparent 64%),
    linear-gradient(180deg, var(--bg-soft) 0%, #fff 56%, var(--bg-soft) 100%);
}

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 16px 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(246, 247, 244, 0.68);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.topbarInner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brandMark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background:
    radial-gradient(20px 20px at 30% 30%, rgba(255, 255, 255, 0.64), transparent 60%),
    linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.brandText {
  display: grid;
  gap: 1px;
}

.brandTitle {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brandSub {
  font-size: 12px;
  color: var(--muted2);
  font-weight: 650;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navLink {
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.11);
  background: rgba(255, 255, 255, 0.66);
}

.navLink[aria-current="page"] {
  border-color: rgba(14, 165, 233, 0.3);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.11));
  box-shadow: 0 16px 26px rgba(14, 165, 233, 0.12);
}

.hero {
  position: relative;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: calc(var(--radius) + 6px);
  padding: 24px 18px;
  box-shadow: 0 28px 70px var(--shadow);
  overflow: hidden;
  animation: reveal 500ms ease both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(320px 230px at 12% 18%, rgba(14, 165, 233, 0.42), transparent 56%),
    radial-gradient(320px 230px at 86% 20%, rgba(249, 115, 22, 0.33), transparent 57%),
    radial-gradient(340px 240px at 80% 86%, rgba(22, 163, 74, 0.3), transparent 60%);
  filter: blur(12px);
  opacity: 0.62;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.heroShowcase {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(240, 249, 255, 0.84));
}

.heroGrid {
  display: grid;
  gap: 14px;
}

.heroAside {
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.04));
}

.heroAside h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.heroAside p {
  margin: 0;
  color: var(--muted);
}

.trustRow {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.trustCard {
  display: grid;
  gap: 3px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
}

.trustCard strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.trustCard span {
  color: var(--muted);
  font-size: 13px;
}

.sectionBlock {
  margin-top: 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.07);
}

.sectionHead h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.sectionHead p {
  margin: 6px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 12px;
}

.valuePanel {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.valuePanel h2 {
  margin: 0;
  font-size: 21px;
}

.valuePanel.warm {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.12), rgba(255, 255, 255, 0.86));
}

.valuePanel blockquote {
  margin: 10px 0 0;
  border-left: 3px solid rgba(249, 115, 22, 0.45);
  padding-left: 10px;
  color: var(--muted);
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 780;
  color: rgba(15, 23, 42, 0.78);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.14);
}

h1 {
  margin: 10px 0 10px;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lead {
  margin: 8px 0 0;
  max-width: 74ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.card {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
  animation: reveal 550ms ease both;
}

/* Retraso escalonado para que las tarjetas entren con ritmo visual. */
.cards .card:nth-child(1) { animation-delay: 90ms; }
.cards .card:nth-child(2) { animation-delay: 140ms; }
.cards .card:nth-child(3) { animation-delay: 190ms; }
.cards .card:nth-child(4) { animation-delay: 240ms; }
.cards .card:nth-child(5) { animation-delay: 290ms; }

.card h2 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cardRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 760;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.11);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 23, 42, 0.76);
}

.chipDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.btnRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(2, 132, 199, 0.24);
  color: #083043;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.25), rgba(14, 165, 233, 0.12));
  box-shadow: 0 14px 26px rgba(14, 165, 233, 0.12);
  font-size: 14px;
  font-weight: 840;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(14, 165, 233, 0.18);
}

.button.secondary {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: none;
  font-weight: 760;
  color: var(--ink);
}

ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

li {
  margin: 6px 0;
}

.windows {
  margin-top: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.windowTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 247, 244, 0.86));
}

.windowDots {
  display: inline-flex;
  gap: 7px;
}

.windowDots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.windowDots span:nth-child(1) { background: #f43f5e; }
.windowDots span:nth-child(2) { background: #f59e0b; }
.windowDots span:nth-child(3) { background: #22c55e; }

.windowTitle {
  font-size: 13px;
  font-weight: 760;
  color: var(--muted2);
}

.windowBody {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.windowGrid {
  display: grid;
  gap: 10px;
}

.miniPanel {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px;
}

.miniPanel h3 {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.miniPanel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dock button {
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 760;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(15, 23, 42, 0.82);
}

.dock button[data-accent="cyan"] { background: rgba(14, 165, 233, 0.14); }
.dock button[data-accent="orange"] { background: rgba(249, 115, 22, 0.14); }
.dock button[data-accent="green"] { background: rgba(22, 163, 74, 0.14); }

.dataLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.uploadForm {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.uploadLabel {
  font-weight: 700;
  font-size: 14px;
}

.uploadInput {
  border: 1px dashed rgba(15, 23, 42, 0.24);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.fileName {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.flash {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.flashOk {
  color: #14532d;
  border: 1px solid rgba(22, 163, 74, 0.32);
  background: rgba(22, 163, 74, 0.12);
}

.flashError {
  color: #7f1d1d;
  border: 1px solid rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.12);
}

.galleryGrid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.galleryItem {
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.galleryItem img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.galleryItem:hover img {
  transform: scale(1.04);
}

.galleryEmpty {
  border: 1px dashed rgba(15, 23, 42, 0.24);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.galleryEmpty h3 {
  margin: 0;
}

.galleryEmpty p {
  margin: 6px 0 0;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 360ms ease, transform 360ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.48);
  z-index: 100;
}

.modal[aria-hidden="false"] {
  display: grid;
}

.modalCard {
  width: min(620px, 96vw);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 40px 70px rgba(2, 6, 23, 0.3);
  padding: 16px;
}

.modalCard h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.modalCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modalActions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.modalActions button {
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 12px;
  font-weight: 760;
}

.footer {
  margin-top: 18px;
  padding-top: 18px;
  color: var(--muted2);
  font-size: 12px;
}

.footer code {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  padding: 2px 7px;
  font-family: Consolas, "Courier New", monospace;
  color: rgba(15, 23, 42, 0.88);
}

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

@media (min-width: 860px) {
  .wrap { padding: 32px 20px 70px; }
  .hero { padding: 30px 28px; }
  h1 { font-size: 44px; }
  .grid { grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .windowGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brandTitle { font-size: 15px; }
  .heroGrid { grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
  .trustRow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galleryGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .galleryItem img { height: 200px; }
}
