/* =========================================================
   BeeDataNetworks — styles.css
   Sistema de diseño: panal hexagonal · miel/ámbar · verde botánico
   ========================================================= */

:root {
  /* Color */
  --honey:      #E6A12C;   /* ámbar miel principal */
  --honey-deep: #C97E12;   /* miel profunda (acentos) */
  --honey-soft: #FBEFCF;   /* amarillo suave */
  --olive:      #2C3A22;   /* verde agrícola profundo */
  --olive-700:  #1F2D1A;   /* fondo oscuro */
  --leaf:       #5B7A3F;   /* verde hoja */
  --cream:      #FBF8F1;   /* blanco cálido */
  --paper:      #FFFFFF;
  --ink:        #20271C;   /* texto principal */
  --ink-soft:   #56604D;   /* texto secundario */
  --line:       #E7E1D2;   /* divisores */

  /* Tipografía */
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;

  /* Escala / layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 16px;
  --shadow: 0 12px 40px -18px rgba(44, 58, 34, .35);
  --shadow-sm: 0 4px 16px -8px rgba(44, 58, 34, .3);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--olive); color: var(--honey-soft);
  padding: .7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografía base ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--honey-deep); font-weight: 500; margin-bottom: 1rem;
}
.eyebrow--light { color: var(--honey); }
.eyebrow--games { color: var(--leaf); }

.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--olive);
}
.section--dark .section__title { color: var(--honey-soft); }

.section__intro {
  margin-top: 1.1rem; max-width: 62ch; color: var(--ink-soft); font-size: 1.06rem;
}
.section__intro--light { color: #d6dccb; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn--primary {
  background: var(--honey); color: var(--olive-700);
  box-shadow: 0 8px 24px -10px rgba(201, 126, 18, .7);
}
.btn--primary:hover { transform: translateY(-3px); background: var(--honey-deep); color: #fff; }
.btn--ghost { border-color: var(--olive); color: var(--olive); }
.btn--ghost:hover { background: var(--olive); color: var(--honey-soft); transform: translateY(-3px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  background: rgba(251, 248, 241, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); }
.brand__mark { width: 32px; height: 36px; }
.brand__mark polygon { fill: none; stroke: var(--honey-deep); stroke-width: 2.4; }
.brand__mark-inner { fill: var(--honey); stroke: none !important; }
.brand__mark circle { fill: var(--olive); }
.brand__name { font-size: 1.18rem; font-weight: 500; color: var(--olive); letter-spacing: -.01em; }
.brand__name strong { color: var(--honey-deep); font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--honey-deep); transition: width .25s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--olive); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { background: var(--olive); color: var(--honey-soft) !important; padding: .55rem 1.1rem; border-radius: 999px; }
.nav__cta:hover { background: var(--honey-deep); color: #fff !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--olive); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; padding: .5rem var(--gutter) 1.4rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.nav__mobile a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--olive); }
.nav__mobile a:last-child { border-bottom: 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: calc(72px + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero__comb {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23E6A12C' stroke-opacity='0.16' stroke-width='1.5'%3E%3Cpath d='M28 0L52 14v28L28 56 4 42V14z'/%3E%3Cpath d='M28 50L52 64v28L28 106 4 92V64z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(120% 80% at 70% 10%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: 1.04;
  letter-spacing: -.02em; color: var(--olive); margin-bottom: 1.3rem;
}
.hero__title .hl { color: var(--honey-deep); }
.hero__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }

.hero__stats { display: flex; gap: clamp(1.2rem, 4vw, 2.6rem); flex-wrap: wrap; }
.hero__stats dt { font-family: var(--display); font-size: 2.1rem; font-weight: 600; color: var(--honey-deep); line-height: 1; }
.hero__stats dd { font-size: .85rem; color: var(--ink-soft); max-width: 16ch; margin-top: .35rem; }

/* Hive monitor card */
.hive-monitor {
  background: var(--olive-700); color: var(--honey-soft);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  border: 1px solid rgba(230, 161, 44, .25);
  position: relative; overflow: hidden;
}
.hive-monitor::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0, rgba(230,161,44,.18), transparent 60%);
}
.hive-monitor__head {
  display: flex; align-items: center; gap: .5rem; font-family: var(--mono);
  font-size: .8rem; letter-spacing: .04em; color: #cdd6c2; position: relative;
}
.hive-monitor__head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px rgba(230,161,44,.2); }
.hive-monitor__live { margin-left: auto; font-size: .68rem; color: var(--olive-700); background: var(--honey); padding: .15rem .5rem; border-radius: 4px; font-weight: 700; }
.hive-monitor__rows { margin: 1.3rem 0 1rem; position: relative; }
.hive-monitor__rows li { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem 0; border-bottom: 1px dashed rgba(230,161,44,.2); }
.hive-monitor__rows span { font-size: .9rem; color: #cdd6c2; }
.hive-monitor__rows b { font-family: var(--mono); font-size: 1.25rem; color: var(--honey); font-weight: 700; }
.hive-monitor__spark svg { width: 100%; height: 48px; }
.hive-monitor__spark polyline { fill: none; stroke: var(--honey); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 2px 6px rgba(230,161,44,.5)); }
.hive-monitor__spark small { font-family: var(--mono); font-size: .68rem; color: #9fae92; }

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section--alt { background: var(--honey-soft); }
.section--dark { background: var(--olive-700); color: #d6dccb; }

.section__head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }

.grid-2 { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }

.prose p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.06rem; }
.prose__signoff { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--honey-deep); }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.pillar {
  background: var(--paper); border-radius: var(--radius); padding: 2rem 1.8rem;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pillar::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--honey), var(--leaf)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::after { transform: scaleX(1); }
.pillar__num { font-family: var(--mono); font-size: .85rem; color: var(--honey-deep); font-weight: 700; }
.pillar h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--olive); margin: .6rem 0 .7rem; line-height: 1.2; }
.pillar p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Tecnologías ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.tech {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  cursor: default;
}
.tech svg { width: 38px; height: 38px; fill: none; stroke: var(--honey-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; transition: transform .3s var(--ease); }
.tech:hover, .tech:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--cream); }
.tech:hover svg, .tech:focus-visible svg { transform: scale(1.12) rotate(-4deg); stroke: var(--leaf); }
.tech h3 { font-size: 1.05rem; font-weight: 600; color: var(--olive); margin-bottom: .4rem; }
.tech p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Impacto ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.impact {
  background: rgba(230,161,44,.07); border: 1px solid rgba(230,161,44,.25);
  border-radius: var(--radius); padding: 2rem 1.6rem; text-align: left;
  transition: transform .3s var(--ease), background .3s;
}
.impact:hover { transform: translateY(-5px); background: rgba(230,161,44,.12); }
.impact__num { font-family: var(--display); font-size: 3rem; font-weight: 600; color: var(--honey); line-height: 1; }
.impact p { color: #cdd6c2; font-size: .98rem; margin-top: .6rem; }
.impact__note { margin-top: 2rem; font-size: .82rem; color: #9fae92; font-style: italic; }

/* =========================================================
   BEEDATA GAMES
   ========================================================= */
.games {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(230,161,44,.12), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(91,122,63,.14), transparent 45%),
    var(--cream);
  position: relative;
}
.games__head { max-width: 760px; }
.games__values { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2.5rem; }
.games__values span {
  font-family: var(--mono); font-size: .8rem; padding: .4rem .9rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--leaf); font-weight: 500;
}
.games__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; }
.game {
  background: var(--paper); border-radius: 20px; padding: 1.8rem; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative; overflow: hidden;
}
.game:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow); }
.game__art {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 2rem;
  border-radius: 18px; margin-bottom: 1.1rem; transition: transform .35s var(--ease);
}
.game:hover .game__art { transform: scale(1.12) rotate(8deg); }
.game__art--1 { background: linear-gradient(135deg, #ffe6a3, #e6a12c); }
.game__art--2 { background: linear-gradient(135deg, #cfe3b0, #5b7a3f); }
.game__art--3 { background: linear-gradient(135deg, #ffd98a, #c97e12); }
.game__art--4 { background: linear-gradient(135deg, #ffe9b0, #f0b842); }
.game__art--5 { background: linear-gradient(135deg, #d6ecc2, #7da155); }
.game__art--6 { background: linear-gradient(135deg, #ffe2a0, #d98e1c); }
.game h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--olive); margin-bottom: .5rem; }
.game p { color: var(--ink-soft); font-size: .95rem; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact__list { margin-top: 1.5rem; }
.contact__list li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.contact__list strong { color: var(--olive); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--olive); margin-bottom: .45rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--body); font-size: 1rem; color: var(--ink); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--honey-deep); box-shadow: 0 0 0 3px rgba(230,161,44,.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0392b; }
.field__error { display: block; color: #c0392b; font-size: .82rem; margin-top: .35rem; min-height: 1em; }
.form__submit { width: 100%; justify-content: center; margin-top: .3rem; }
.form__success { margin-top: 1rem; color: var(--leaf); font-weight: 600; background: rgba(91,122,63,.1); padding: .8rem 1rem; border-radius: 10px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--olive-700); color: #c4ceb8; padding-top: clamp(3rem, 7vw, 4.5rem); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.brand--footer .brand__name { color: var(--honey-soft); }
.brand--footer .brand__mark polygon { stroke: var(--honey); }
.footer__brand p { margin-top: 1rem; font-size: .95rem; max-width: 38ch; color: #a9b59c; }
.footer h4 { color: var(--honey-soft); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--mono); font-weight: 500; }
.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a { font-size: .95rem; color: #c4ceb8; transition: color .2s, padding-left .2s; }
.footer__links a:hover { color: var(--honey); padding-left: 5px; }
.footer__social-row { display: flex; gap: .7rem; margin-bottom: .8rem; }
.footer__social-row a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(230,161,44,.12); color: var(--honey-soft); font-family: var(--mono); font-size: .9rem; font-weight: 700;
  transition: background .25s, transform .25s;
}
.footer__social-row a:hover { background: var(--honey); color: var(--olive-700); transform: translateY(-3px); }
.footer__social small { font-size: .78rem; color: #8a967d; }
.footer__bottom { border-top: 1px solid rgba(230,161,44,.2); padding: 1.3rem 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #8a967d; }

/* =========================================================
   ANIMACIONES / REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__viz { order: -1; max-width: 440px; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero__stats { gap: 1.4rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
