/* ==========================================================================
   KLIPA — klipa.digital
   Estética: pixel art 8 bits, día / noche con colores naturales vibrantes
   ========================================================================== */

/* ---------- Tokens de tema ---------- */

@property --sky-1 { syntax: "<color>"; inherits: true; initial-value: #4fa8dd; }
@property --sky-2 { syntax: "<color>"; inherits: true; initial-value: #6fc0e8; }
@property --sky-3 { syntax: "<color>"; inherits: true; initial-value: #93d4ef; }
@property --sky-4 { syntax: "<color>"; inherits: true; initial-value: #bde8f7; }

:root {
  --font-display: "Press Start 2P", monospace;
  --font-label: "VT323", monospace;
  --font-body: "Archivo", system-ui, sans-serif;
}

:root[data-theme="day"] {
  --sky-1: #4fa8dd;
  --sky-2: #6fc0e8;
  --sky-3: #93d4ef;
  --sky-4: #bde8f7;

  --bg: #f2f9f4;
  --bg-alt: #e6f3e0;
  --panel: #fffdf6;
  --ink: #21324e;
  --ink-soft: #4e6079;
  --line: #21324e;
  --shade: #aecfb4;

  --accent: #3e9b4f;        /* pasto */
  --accent-ink: #fffdf6;
  --accent-2: #ffd23f;      /* sol */
  --pop: #e8743d;           /* atardecer */

  --hero-ink: #16294a;
  --hero-sub: #24406b;
  --hero-glow: rgba(255, 255, 255, 0.55);

  --hill-back: #66b45e;
  --hill-front: #3e9b4f;
  --grass: #2f7d3d;
  --cloud: #ffffff;
  --cloud-lite: #eaf6fb;
  --bird: #2c3e5d;

  --footer-grass: #3e9b4f;
  --footer-bg: #5a4130;
  --footer-ink: #f3e9dc;
  --footer-soft: #cbb59f;

  --mark-bg: #21324e;
  --mark-k: #ffd23f;
}

:root[data-theme="night"] {
  --sky-1: #0a0e28;
  --sky-2: #12173a;
  --sky-3: #1a2354;
  --sky-4: #253066;

  --bg: #101636;
  --bg-alt: #141b40;
  --panel: #1b234c;
  --ink: #edf0ff;
  --ink-soft: #a9b3d8;
  --line: #060a1e;
  --shade: #0a0f28;

  --accent: #59b368;
  --accent-ink: #0c1229;
  --accent-2: #f5f0d8;      /* luna */
  --pop: #ffb04f;

  --hero-ink: #f2f4ff;
  --hero-sub: #c3cdec;
  --hero-glow: rgba(5, 9, 26, 0.65);

  --hill-back: #1d3a58;
  --hill-front: #16304a;
  --grass: #10263c;
  --cloud: #2a3564;
  --cloud-lite: #354178;
  --bird: transparent;

  --footer-grass: #16304a;
  --footer-bg: #0a0f28;
  --footer-ink: #dfe4f8;
  --footer-soft: #8d97c0;

  --mark-bg: #f5f0d8;
  --mark-k: #21324e;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='28' viewBox='0 0 12 14' shape-rendering='crispEdges'%3E%3Cpath fill='%2321324e' d='M0 0h1v13H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM4 4h1v1H4zM5 5h1v1H5zM6 6h1v1H6zM7 7h1v1H7zM4 8h4v1H4zM3 9h1v1H3zM2 10h1v1H2zM1 11h1v1H1z'/%3E%3Cpath fill='%23fffdf6' d='M1 2h1v1H1zM1 3h2v1H1zM1 4h3v1H1zM1 5h4v1H1zM1 6h5v1H1zM1 7h6v1H1zM1 8h3v1H1zM1 9h2v1H1zM1 10h1v1H1z'/%3E%3C/svg%3E") 0 0, auto;
}

a, button, [role="button"], label, summary {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='28' viewBox='0 0 12 14' shape-rendering='crispEdges'%3E%3Cpath fill='%2321324e' d='M0 0h1v13H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM4 4h1v1H4zM5 5h1v1H5zM6 6h1v1H6zM7 7h1v1H7zM4 8h4v1H4zM3 9h1v1H3zM2 10h1v1H2zM1 11h1v1H1z'/%3E%3Cpath fill='%23ffd23f' d='M1 2h1v1H1zM1 3h2v1H1zM1 4h3v1H1zM1 5h4v1H1zM1 6h5v1H1zM1 7h6v1H1zM1 8h3v1H1zM1 9h2v1H1zM1 10h1v1H1z'/%3E%3C/svg%3E") 0 0, pointer;
}

img, svg { display: block; max-width: 100%; }

.px-art { image-rendering: pixelated; }

::selection { background: var(--accent-2); color: #21324e; }

:focus-visible {
  outline: 3px dashed var(--pop);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-label);
  font-size: 1.1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Transición suave al cambiar de tema */
body,
.site-header, .site-nav a, .card, .plan, .sector, .contact-form,
.process, .field input, .field textarea, .toggle-track, .site-footer,
.section, .btn-ghost {
  transition: background-color 0.6s ease, color 0.6s ease, box-shadow 0.6s ease;
}

/* ---------- Tipografía ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.55;
  text-wrap: balance;
}

h2 { font-size: clamp(1.05rem, 2.6vw, 1.5rem); margin-bottom: 0.9rem; }
h3 { font-size: 0.85rem; }

.eyebrow {
  font-family: var(--font-label);
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--pop);
  margin-bottom: 0.8rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.6rem;
  background: var(--accent-2);
  box-shadow: 3px 3px 0 var(--accent);
  vertical-align: baseline;
}

.section-lead {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1;
  text-decoration: none;
  padding: 1rem 1.4rem;
  border: none;
  background: var(--panel);
  color: var(--ink);
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line),
    4px 8px 0 var(--shade), 8px 4px 0 var(--shade);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.3s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line),
    6px 10px 0 var(--shade), 10px 6px 0 var(--shade);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line);
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--panel); color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 4px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { width: 38px; height: 38px; flex: none; }
.mark-bg { fill: var(--mark-bg); transition: fill 0.6s ease; }
.mark-k { fill: var(--mark-k); transition: fill 0.6s ease; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
}

.site-nav a {
  font-family: var(--font-label);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.15rem 0.1rem;
}

.site-nav a:hover {
  color: var(--ink);
  box-shadow: 0 4px 0 var(--accent-2);
}

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

/* Selector de idioma */

.lang-switch { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  box-shadow:
    0 -3px 0 var(--line), 0 3px 0 var(--line),
    -3px 0 0 var(--line), 3px 0 0 var(--line);
  transition: background-color 0.6s ease, color 0.6s ease;
}

.lang-flag { display: block; }

.lang-flag svg {
  width: 20px;
  height: 17px;
  display: block;
  image-rendering: pixelated;
  box-shadow: 0 0 0 2px var(--line);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 172px;
  list-style: none;
  display: none;
  background: var(--panel);
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line),
    5px 8px 0 var(--shade);
}

.lang-menu.open { display: block; }

.lang-menu li + li { border-top: 2px solid var(--bg-alt); }

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border: none;
  background: none;
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 1.3rem;
  text-align: left;
  padding: 0.6rem 0.9rem;
}

.lang-menu button:hover { background: var(--bg-alt); }

.lang-menu [aria-selected="true"] {
  color: var(--accent);
}

/* Toggle día / noche */

.theme-toggle {
  border: none;
  background: none;
  padding: 4px;
}

.toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 74px;
  height: 34px;
  padding: 0 7px;
  background: var(--sky-2);
  box-shadow:
    0 -3px 0 var(--line), 0 3px 0 var(--line),
    -3px 0 0 var(--line), 3px 0 0 var(--line);
}

.toggle-icon { width: 18px; height: 18px; }

.toggle-knob {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
  background: var(--panel);
  box-shadow:
    0 -3px 0 var(--line), 0 3px 0 var(--line),
    -3px 0 0 var(--line), 3px 0 0 var(--line);
  transition: transform 0.4s steps(6, end);
}

:root[data-theme="night"] .toggle-knob { transform: translateX(40px); }

/* Burger (móvil) */

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  padding: 6px 4px;
}
.nav-burger span {
  width: 26px;
  height: 4px;
  background: var(--ink);
}

/* ---------- Hero + escena ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
}

.scene { position: absolute; inset: 0; }

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--sky-1) 0 28%,
    var(--sky-2) 28% 52%,
    var(--sky-3) 52% 74%,
    var(--sky-4) 74% 100%
  );
  transition: --sky-1 0.9s ease, --sky-2 0.9s ease, --sky-3 0.9s ease, --sky-4 0.9s ease;
}

/* Estrellas (solo de noche) */

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  background: transparent;
  opacity: 0;
  transition: opacity 1s ease;
}

:root[data-theme="night"] .stars { opacity: 1; }

.stars-a {
  box-shadow:
    60px 60px 0 #fff, 170px 130px 0 #dfe6ff, 300px 50px 0 #fff,
    420px 160px 0 #fff, 560px 90px 0 #dfe6ff, 700px 40px 0 #fff,
    820px 150px 0 #fff, 950px 70px 0 #dfe6ff, 1080px 180px 0 #fff,
    1200px 60px 0 #fff, 1330px 140px 0 #dfe6ff, 90px 240px 0 #fff,
    360px 280px 0 #dfe6ff, 640px 250px 0 #fff, 900px 290px 0 #fff,
    1150px 260px 0 #dfe6ff, 1400px 210px 0 #fff, 240px 200px 0 #fff;
  animation: twinkle 2.4s steps(2, end) infinite;
}

.stars-b {
  box-shadow:
    120px 100px 0 #fff, 230px 40px 0 #dfe6ff, 380px 120px 0 #fff,
    500px 200px 0 #fff, 610px 150px 0 #dfe6ff, 760px 100px 0 #fff,
    880px 40px 0 #fff, 1020px 120px 0 #dfe6ff, 1140px 40px 0 #fff,
    1280px 190px 0 #fff, 1430px 90px 0 #dfe6ff, 40px 170px 0 #fff,
    300px 330px 0 #fff, 540px 320px 0 #dfe6ff, 800px 340px 0 #fff,
    1060px 330px 0 #fff, 1320px 300px 0 #dfe6ff;
  animation: twinkle 3.1s steps(2, end) infinite 1.2s;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

:root[data-theme="day"] .stars-a,
:root[data-theme="day"] .stars-b { animation-play-state: paused; }

/* Sol y luna */

.celestial {
  position: absolute;
  top: 9%;
  right: 10%;
  width: clamp(74px, 9vw, 120px);
  transition: transform 1.1s steps(10, end), opacity 0.9s steps(5, end);
}

.sun-wrap { transform: translateY(0); opacity: 1; }
.moon-wrap { transform: translateY(180px); opacity: 0; }

:root[data-theme="night"] .sun-wrap { transform: translateY(180px); opacity: 0; }
:root[data-theme="night"] .moon-wrap { transform: translateY(0); opacity: 1; }

.sun-art { animation: celestial-bob 5s steps(2, end) infinite; }
.moon-art { animation: celestial-bob 6s steps(2, end) infinite; }

@keyframes celestial-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Nubes */

.cloud { position: absolute; width: clamp(120px, 16vw, 220px); }
.cloud-fill { fill: var(--cloud); transition: fill 0.9s ease; }
.cloud-lite { fill: var(--cloud-lite); transition: fill 0.9s ease; }

.cloud-1 { top: 14%; left: -240px; animation: drift 70s linear infinite; }
.cloud-2 { top: 34%; left: -240px; width: clamp(90px, 12vw, 160px); animation: drift 95s linear infinite 18s; }
.cloud-3 { top: 6%; left: -240px; width: clamp(100px, 13vw, 180px); animation: drift 80s linear infinite 40s; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 480px)); }
}

/* Pájaros (solo de día) */

.birds {
  position: absolute;
  top: 24%;
  left: 12%;
  width: clamp(70px, 9vw, 120px);
  animation: bird-bob 1.6s steps(2, end) infinite;
  transition: opacity 0.7s ease;
}
.bird-fill { fill: var(--bird); }
:root[data-theme="night"] .birds { opacity: 0; }

@keyframes bird-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Colinas y pasto */

.hill {
  position: absolute;
  left: -2%;
  width: 104%;
  transition: background-color 0.9s ease;
}

.hill-back {
  bottom: 0;
  height: 120px;
  background: var(--hill-back);
  clip-path: polygon(
    0 55%, 4% 55%, 4% 40%, 9% 40%, 9% 28%, 15% 28%, 15% 40%, 20% 40%,
    20% 55%, 26% 55%, 26% 45%, 32% 45%, 32% 30%, 38% 30%, 38% 18%,
    45% 18%, 45% 30%, 51% 30%, 51% 45%, 58% 45%, 58% 55%, 64% 55%,
    64% 42%, 70% 42%, 70% 30%, 77% 30%, 77% 42%, 83% 42%, 83% 55%,
    89% 55%, 89% 45%, 95% 45%, 95% 35%, 100% 35%, 100% 100%, 0 100%
  );
}

.hill-front {
  bottom: 0;
  height: 78px;
  background: var(--hill-front);
  clip-path: polygon(
    0 60%, 6% 60%, 6% 42%, 13% 42%, 13% 26%, 21% 26%, 21% 42%, 28% 42%,
    28% 60%, 36% 60%, 36% 48%, 44% 48%, 44% 34%, 53% 34%, 53% 48%,
    61% 48%, 61% 60%, 69% 60%, 69% 44%, 77% 44%, 77% 30%, 85% 30%,
    85% 44%, 92% 44%, 92% 60%, 100% 60%, 100% 100%, 0 100%
  );
}

.grass-strip {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 22px;
  background:
    repeating-linear-gradient(
      to right,
      var(--grass) 0 10px,
      transparent 10px 14px,
      var(--grass) 14px 26px,
      transparent 26px 28px
    ) top / 100% 8px no-repeat,
    linear-gradient(var(--grass) 0 0) bottom / 100% 14px no-repeat;
  transition: background 0.9s ease;
}

/* Contenido del hero */

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 7rem 9rem;
  max-width: 760px;
}

.hero-content .eyebrow { color: var(--hero-sub); }

.hero-content .eyebrow { text-shadow: 2px 2px 0 var(--hero-glow); }

.hero-title {
  font-size: clamp(1.15rem, 3.4vw, 2rem);
  color: var(--hero-ink);
  margin-bottom: 1.4rem;
  text-shadow: 3px 3px 0 var(--hero-glow);
}

.hero-accent {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.25rem 0.6rem 0.2rem;
  box-shadow: 4px 4px 0 var(--line);
  display: inline-block;
  margin-top: 0.5rem;
  text-shadow: none;
}

:root[data-theme="night"] .hero-accent {
  background: var(--accent-2);
  color: #16294a;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--hero-sub);
  max-width: 52ch;
  margin-bottom: 2.2rem;
  text-shadow: 1px 1px 0 var(--hero-glow);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* ---------- Secciones ---------- */

.section { padding-block: 6rem; background: var(--bg); }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 3.2rem; }

/* ---------- Grids y tarjetas ---------- */

.grid { display: grid; gap: 1.8rem; }

.grid-services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--panel);
  padding: 1.8rem 1.5rem;
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line),
    6px 10px 0 var(--shade), 10px 6px 0 var(--shade);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.6s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line),
    9px 13px 0 var(--shade), 13px 9px 0 var(--shade);
}

.card-icon { width: 52px; height: 52px; margin-bottom: 1.2rem; }

.ico-main { fill: var(--accent); }
.ico-soft { fill: var(--ink-soft); }
.ico-pop { fill: var(--pop); }

.card h3 { margin-bottom: 0.8rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Nosotros ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-copy p { margin-bottom: 1rem; color: var(--ink-soft); }
.about-copy p:first-of-type { color: var(--ink); }

.about-points {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.about-points li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink);
  font-weight: 500;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--accent-2);
}

.process {
  background: var(--panel);
  padding: 2rem 1.8rem;
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line),
    6px 10px 0 var(--shade), 10px 6px 0 var(--shade);
}

.process-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 1.6rem;
}

.process-steps {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.process-steps li { display: flex; gap: 1.1rem; align-items: flex-start; }

.step-num {
  flex: none;
  font-family: var(--font-label);
  font-size: 1.7rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--accent-2);
  color: #21324e;
  box-shadow: 3px 3px 0 var(--line);
}

.process-steps h4 {
  font-family: var(--font-label);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.process-steps p { color: var(--ink-soft); font-size: 0.95rem; }

.process-foot {
  margin-top: 1.6rem;
  font-family: var(--font-label);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--pop);
}

/* ---------- Clientes / sectores ---------- */

.grid-sectors {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem;
}

.sector {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--panel);
  padding: 1.1rem 1.2rem;
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line);
  font-family: var(--font-label);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, background-color 0.6s ease;
}

.sector:hover { transform: translateY(-3px); }

.sector-icon { width: 36px; height: 36px; flex: none; }

.clients-note {
  margin-top: 2.6rem;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: 1.35rem;
}

/* ---------- Planes ---------- */

.grid-plans {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  padding: 2.2rem 1.8rem;
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line),
    6px 10px 0 var(--shade), 10px 6px 0 var(--shade);
  transition: transform 0.15s ease, background-color 0.6s ease;
}

.plan:hover { transform: translateY(-4px); }

.plan-featured {
  box-shadow:
    0 -4px 0 var(--accent), 0 4px 0 var(--accent),
    -4px 0 0 var(--accent), 4px 0 0 var(--accent),
    6px 10px 0 var(--shade), 10px 6px 0 var(--shade);
}

.plan-badge {
  position: absolute;
  top: -16px;
  right: 18px;
  font-family: var(--font-label);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: var(--accent-2);
  color: #21324e;
  padding: 0.15rem 0.7rem;
  box-shadow: 3px 3px 0 var(--line);
}

.plan-icon { width: 56px; height: 56px; margin-bottom: 1.2rem; }

.ico-grow { fill: #8a5a3b; }
.ico-leaf { fill: var(--accent); }
.ico-earth { fill: #6b4a33; }

.plan-name { margin-bottom: 0.5rem; }

.plan-tag {
  font-family: var(--font-label);
  font-size: 1.3rem;
  color: var(--pop);
  margin-bottom: 1.3rem;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.plan-cta { text-align: center; }

.plans-foot {
  margin-top: 3rem;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: 1.35rem;
}

.diagnostic {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--panel);
  padding: 2rem 1.9rem;
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line),
    6px 10px 0 var(--shade), 10px 6px 0 var(--shade);
}

.diagnostic h3 { margin-bottom: 0.7rem; }
.diagnostic p { color: var(--ink-soft); font-size: 0.98rem; }
.diagnostic strong { color: var(--ink); }
.diagnostic .btn { flex: none; white-space: nowrap; }

@media (max-width: 720px) {
  .diagnostic { flex-direction: column; align-items: flex-start; }
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}

.contact-list li { display: flex; align-items: center; gap: 0.9rem; }

.contact-icon { width: 32px; height: 32px; flex: none; }

.contact-list a {
  font-family: var(--font-label);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover { box-shadow: 0 4px 0 var(--accent-2); }

.contact-form {
  background: var(--panel);
  padding: 2.2rem 1.9rem;
  display: grid;
  gap: 1.3rem;
  box-shadow:
    0 -4px 0 var(--line), 0 4px 0 var(--line),
    -4px 0 0 var(--line), 4px 0 0 var(--line),
    6px 10px 0 var(--shade), 10px 6px 0 var(--shade);
}

.field { display: grid; gap: 0.45rem; }

.field label {
  font-family: var(--font-label);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 3px solid var(--line);
  padding: 0.7rem 0.9rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-soft); opacity: 0.7; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 3px 3px 0 var(--accent-2);
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
}

.footer-ground {
  height: 18px;
  background:
    repeating-linear-gradient(
      to right,
      var(--footer-grass) 0 12px,
      transparent 12px 16px,
      var(--footer-grass) 16px 30px,
      transparent 30px 32px
    ) top / 100% 7px no-repeat,
    linear-gradient(var(--footer-grass) 0 0) bottom / 100% 11px no-repeat;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-block: 2.6rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.9rem; }

.footer-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.footer-tag {
  font-family: var(--font-label);
  font-size: 1.2rem;
  color: var(--footer-soft);
}

.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

.footer-nav a {
  font-family: var(--font-label);
  font-size: 1.25rem;
  color: var(--footer-ink);
  text-decoration: none;
}

.footer-nav a:hover { box-shadow: 0 3px 0 var(--accent-2); }

.footer-legal {
  font-family: var(--font-label);
  font-size: 1.15rem;
  color: var(--footer-soft);
}

/* ---------- Entrada del hero ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero-content > * { animation: rise 0.65s ease both; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.24s; }
.hero-content > *:nth-child(4) { animation-delay: 0.36s; }

/* ---------- Animación de aparición ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .section { padding-block: 4.5rem; }
}

@media (max-width: 880px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    gap: 0;
    background: var(--panel);
    border-bottom: 4px solid var(--line);
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.9rem 1.4rem;
    font-size: 1.5rem;
    border-top: 2px solid var(--bg-alt);
  }

  .site-nav a:hover { box-shadow: none; background: var(--bg-alt); }

  .nav-burger { display: flex; }
}

@media (max-width: 560px) {
  .header-actions { gap: 0.6rem; }

  .lang-code { display: none; }

  .hero-content { padding-block: 5rem 8rem; }

  .hero-actions .btn { width: 100%; text-align: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .cloud, .birds, .stars-a, .stars-b,
  .sun-art, .moon-art,
  .hero-content > * { animation: none; }

  .celestial, .toggle-knob, .sky,
  .reveal, .card, .plan, .sector, .btn { transition: none; }

  .reveal { opacity: 1; transform: none; }
}
