/* ── Landing page — SymbioEnergia IA ── */

/* ── Eyebrow global ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--leaf);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1.5px;
  background: var(--leaf);
  border-radius: 1px;
  flex-shrink: 0;
  animation: line-expand 0.6s var(--ease-expo) 0.2s both;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ── Copy ── */
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--leaf);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.4rem;
  animation: panel-reveal 0.6s var(--ease-expo) 0.1s both;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1.5px;
  background: var(--leaf);
  border-radius: 1px;
  flex-shrink: 0;
  animation: line-expand 0.6s var(--ease-expo) 0.35s both;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.6rem;
  animation: panel-reveal 0.65s var(--ease-expo) 0.18s both;
}

/* ── Rotating word ── */
.hero__rotator {
  display: block;
  color: var(--leaf);
  position: relative;
  height: 1.1em;
  overflow: hidden;
}

.hero__word {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: none;
}

.hero__word--active {
  opacity: 1;
  transform: translateY(0);
  animation: word-in 0.6s var(--ease-expo) both;
}

.hero__word--exit {
  animation: word-out 0.4s var(--ease-smooth) both;
}

@keyframes word-in {
  from { opacity: 0; transform: translateY(60%) skewY(4deg); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0)   skewY(0deg); filter: blur(0); }
}
@keyframes word-out {
  from { opacity: 1; transform: translateY(0)    skewY(0deg); }
  to   { opacity: 0; transform: translateY(-50%) skewY(-4deg); }
}

.hero__sub {
  font-family: var(--font-base);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 2.4rem;
  animation: panel-reveal 0.65s var(--ease-expo) 0.28s both;
}

/* ── CTAs ── */
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: panel-reveal 0.65s var(--ease-expo) 0.38s both;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform  0.28s var(--ease-spring),
    box-shadow 0.28s ease,
    background  0.2s ease;
}

.hero__btn--primary {
  background: var(--leaf);
  color: #fff;
  box-shadow: var(--shadow-teal);
}
.hero__btn--primary:hover {
  background: var(--leaf-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(7, 128, 128, 0.32);
}

.hero__btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.hero__btn--ghost:hover {
  border-color: var(--leaf);
  color: var(--leaf);
  transform: translateY(-2px);
  background: var(--leaf-light);
}

/* ── Trust badges ── */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: panel-reveal 0.65s var(--ease-expo) 0.48s both;
}

.hero__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.3rem 0.75rem;
}

.hero__sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--line-strong);
  border-radius: 50%;
}

/* ── Visual / App Card ── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: panel-reveal 0.75s var(--ease-expo) 0.3s both;
}

/* ── App preview card ── */
.app-card {
  width: 100%;
  max-width: 460px;
  background:
    radial-gradient(circle, rgba(35, 35, 35, 0.038) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(255, 255, 254, 0.94);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(35, 35, 35, 0.075);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(7, 128, 128, 0.06);
  overflow: hidden;
  position: relative;
}

/* Borde teal izquierdo */
.app-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 3px;
  background: linear-gradient(to bottom, var(--leaf), var(--leaf-mid), transparent);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

.app-card__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.app-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.app-card__dot--r { background: #ff5f57; }
.app-card__dot--y { background: #febc2e; }
.app-card__dot--g { background: #28c840; }

.app-card__url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-left: 0.5rem;
}

.app-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ── Roof visualization ── */
.roof-viz {
  background: rgba(7, 128, 128, 0.04);
  border: 1px solid rgba(7, 128, 128, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
}

.roof-viz__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.6rem;
}

.roof-viz__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  height: 80px;
}

.roof-viz__panel {
  background: linear-gradient(135deg, rgba(7, 128, 128, 0.22) 0%, rgba(7, 128, 128, 0.12) 100%);
  border: 1px solid rgba(7, 128, 128, 0.2);
  border-radius: 3px;
  animation: panel-glow 3s ease-in-out infinite;
}
.roof-viz__panel:nth-child(odd)  { animation-delay: 0.4s; }
.roof-viz__panel:nth-child(3n)   { animation-delay: 0.8s; }
.roof-viz__panel:nth-child(4n)   { animation-delay: 0.2s; }
.roof-viz__panel:nth-child(5n)   { animation-delay: 1.2s; }

@keyframes panel-glow {
  0%, 100% { background: linear-gradient(135deg, rgba(7, 128, 128, 0.22) 0%, rgba(7, 128, 128, 0.10) 100%); }
  50%       { background: linear-gradient(135deg, rgba(7, 128, 128, 0.38) 0%, rgba(7, 128, 128, 0.20) 100%); }
}

/* Scan line animation */
.roof-viz__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--leaf), transparent);
  opacity: 0.7;
  animation: scan-line 2.5s ease-in-out infinite;
  top: 1.8rem;
}

@keyframes scan-line {
  0%   { transform: translateY(0);    opacity: 0.7; }
  50%  { transform: translateY(80px); opacity: 0.4; }
  100% { transform: translateY(0);    opacity: 0.7; }
}

/* ── Metrics row ── */
.app-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.app-card__metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  overflow: hidden;
}
.app-card__metric::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2.5px;
  background: var(--leaf);
  border-radius: 0 2px 2px 0;
}
.app-card__metric:nth-child(2)::before { background: var(--leaf-deep); }
.app-card__metric:nth-child(3)::before { background: var(--coral); }

.app-card__metric-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.app-card__metric-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}

.app-card__metric-unit {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-soft);
}

/* ── Agent status badges ── */
.app-card__agents {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.app-card__agent {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
}

.app-card__agent--done {
  background: rgba(7, 128, 128, 0.1);
  color: var(--leaf-deep);
  border: 1px solid rgba(7, 128, 128, 0.2);
}

.app-card__agent--loading {
  background: rgba(244, 93, 72, 0.08);
  color: var(--coral);
  border: 1px solid rgba(244, 93, 72, 0.2);
  animation: teal-pulse 1.8s ease infinite;
}

/* ── Floating chips ── */
.hero__chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  animation: float-chip 0.7s var(--ease-expo) both;
}

.hero__chip--1 {
  top: -1.5rem;
  right: 1rem;
  animation-delay: 0.55s;
  border-color: rgba(7, 128, 128, 0.2);
  color: var(--leaf-deep);
}

.hero__chip--2 {
  bottom: 3.5rem;
  left: -2rem;
  animation-delay: 0.7s;
}

.hero__chip--3 {
  bottom: 0.5rem;
  right: -1rem;
  animation-delay: 0.85s;
}

@keyframes float-chip {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ══════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════ */
.stats-bar {
  background: var(--ink);
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.stats-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 0 1.5rem;
}

.stats-bar__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stats-bar__unit {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--leaf);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stats-bar__lbl {
  font-family: var(--font-base);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
  max-width: 160px;
  margin-top: 0.25rem;
}

.stats-bar__divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════ */
.how {
  padding: 6rem 2rem;
  background: var(--bg-warm);
  position: relative;
  z-index: 1;
}

.how__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how__header {
  margin-bottom: 4rem;
}

.how__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 0.5rem;
}

.how__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.how__step {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.how__step-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--leaf);
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.9;
}

.how__step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.how__step-desc {
  font-family: var(--font-base);
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.how__connector {
  width: 60px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--leaf-mid), transparent);
  align-self: center;
  margin-top: 3.5rem;
}

/* ══════════════════════════════════════════════
   AGENTS GRID
══════════════════════════════════════════════ */
.agents {
  padding: 6rem 2rem;
  background: var(--surface);
  position: relative;
  z-index: 1;
}

.agents__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.agents__header {
  margin-bottom: 3.5rem;
}

.agents__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 0.5rem;
}

.agents__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.agent-card {
  background:
    radial-gradient(circle, rgba(35, 35, 35, 0.028) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition:
    transform  0.28s var(--ease-spring),
    box-shadow 0.28s ease,
    border-color 0.2s ease;
}

.agent-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 3px;
  background: linear-gradient(to bottom, var(--leaf), var(--leaf-mid), transparent);
  border-radius: 0 2px 2px 0;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: rgba(7, 128, 128, 0.2);
}

.agent-card--featured {
  background:
    radial-gradient(circle, rgba(7, 128, 128, 0.04) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(7, 128, 128, 0.04);
  border-color: rgba(7, 128, 128, 0.18);
}

.agent-card--featured::after {
  background: linear-gradient(to bottom, var(--leaf), var(--leaf));
  opacity: 0.7;
}

.agent-card--featured:hover {
  border-color: var(--leaf);
  box-shadow: var(--shadow-teal);
}

.agent-card__icon {
  width: 36px;
  height: 36px;
  color: var(--leaf);
  flex-shrink: 0;
}

.agent-card__icon svg {
  width: 100%;
  height: 100%;
}

.agent-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.agent-card__desc {
  font-family: var(--font-base);
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}

.agent-card__source {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--leaf);
  background: var(--leaf-light);
  border-radius: 99px;
  padding: 0.25rem 0.65rem;
  align-self: flex-start;
  border: 1px solid rgba(7, 128, 128, 0.15);
}

/* ══════════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════════ */
.final-cta {
  padding: 7rem 2rem;
  background: var(--ink);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Subtle teal glow behind */
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(7, 128, 128, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.final-cta__pre {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--leaf);
  margin-bottom: 1.25rem;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.05em;
  line-height: 1.0;
  margin-bottom: 2.5rem;
}

.final-cta__btn {
  display: inline-flex;
  align-items: center;
  background: var(--leaf);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: var(--shadow-teal);
  transition:
    transform  0.28s var(--ease-spring),
    background 0.2s ease,
    box-shadow 0.28s ease;
  margin-bottom: 1.75rem;
}
.final-cta__btn:hover {
  background: var(--leaf-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(7, 128, 128, 0.38);
}

.final-cta__note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero__sub { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__visual { justify-content: center; }
  .hero__eyebrow { justify-content: center; }
  .hero__chip--2 { left: 0; }
  .hero__chip--3 { right: 0; }

  .stats-bar__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-bar__divider { display: none; }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .how__connector { display: none; }

  .agents__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 3rem 1.25rem 3rem; }
  .hero__headline { font-size: 2.2rem; }
  .hero__rotator { height: 1.15em; }
  .hero__chip { display: none; }
  .app-card { max-width: 100%; }

  .stats-bar__inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 0; }
  .stats-bar { padding: 2.5rem 1.25rem; }

  .how { padding: 4rem 1.25rem; }
  .agents { padding: 4rem 1.25rem; }
  .agents__grid { grid-template-columns: 1fr; }
  .final-cta { padding: 5rem 1.25rem; }
  .responsible-ai { padding: 4rem 1.25rem; }
  .responsible-ai__pillars { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   RESPONSIBLE AI — HRIA + AI Act + Trazabilidad
══════════════════════════════════════════════ */
.responsible-ai {
  padding: 6rem 2rem;
  background: var(--bg-warm);
}

.responsible-ai__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.responsible-ai__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.responsible-ai__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.responsible-ai__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.rai-pillar {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rai-pillar:hover {
  border-color: var(--leaf-mid);
  box-shadow: var(--shadow-sm);
}

.rai-pillar__icon {
  width: 44px;
  height: 44px;
  background: var(--leaf-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rai-pillar__icon svg {
  width: 22px;
  height: 22px;
  color: var(--leaf);
}

.rai-pillar__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.rai-pillar__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-muted);
  flex: 1;
}

.rai-pillar__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--leaf);
  background: var(--leaf-light);
  border-radius: 6px;
  padding: 4px 10px;
  align-self: flex-start;
}

.rai-pillar__badge--score {
  color: var(--surface);
  background: var(--leaf);
}

@media (max-width: 1024px) {
  .responsible-ai__pillars { grid-template-columns: 1fr 1fr; }
  .rai-pillar:nth-child(3) { grid-column: span 2; }
}

@media (max-width: 768px) {
  .responsible-ai__pillars { grid-template-columns: 1fr; }
  .rai-pillar:nth-child(3) { grid-column: auto; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE LANDING — Tablet ≤ 1024px
   (supplements the existing @media blocks above)
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Hero */
  .hero {
    padding: 4rem 1.5rem 3rem;
    min-height: auto;
  }
  .hero__headline { font-size: clamp(2.2rem, 5vw, 3.2rem); }

  /* Stats bar: 2-column already handled above, add row-gap */
  .stats-bar__inner { row-gap: 2rem; }
  .stats-bar__item  { padding: 0 0.75rem; }

  /* How it works — 1 col already handled; padding tweak */
  .how { padding: 4.5rem 1.5rem; }
  .how__steps { gap: 2rem; }

  /* Agents — 2 cols already handled; reset nth rules */
  .agents__grid { gap: 1rem; }

  /* Final CTA */
  .final-cta { padding: 5rem 1.5rem; }
  .final-cta__title { font-size: clamp(1.8rem, 4vw, 2.8rem); }

  /* Responsible AI */
  .responsible-ai { padding: 4.5rem 1.5rem; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE LANDING — Mobile ≤ 768px
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Hero ── */
  .hero {
    padding: 3rem 1.25rem 2.5rem;
    min-height: auto;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero__eyebrow  { justify-content: center; }
  .hero__headline { font-size: clamp(2rem, 7vw, 2.6rem); }
  .hero__sub      { max-width: 100%; font-size: 0.95rem; }
  .hero__actions  { justify-content: center; flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero__btn      { width: 100%; max-width: 340px; justify-content: center; min-height: 48px; }
  .hero__trust    { justify-content: center; }
  .hero__visual   { display: none; }   /* hide app preview card on small phones */

  /* ── Stats bar ── */
  .stats-bar { padding: 2.5rem 1.25rem; }
  .stats-bar__inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 0.5rem;
  }
  .stats-bar__divider { display: none; }
  .stats-bar__num     { font-size: 2rem; }
  .stats-bar__lbl     { font-size: 0.72rem; }

  /* ── How it works ── */
  .how { padding: 3.5rem 1.25rem; }
  .how__header { margin-bottom: 2.5rem; }
  .how__steps  { grid-template-columns: 1fr; gap: 2rem; }
  .how__connector { display: none; }
  .how__step-num  { font-size: 1.8rem; }

  /* ── Agent cards ── */
  .agents { padding: 3.5rem 1.25rem; }
  .agents__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* ── Final CTA ── */
  .final-cta { padding: 4rem 1.25rem; }
  .final-cta__title { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 2rem; }
  .final-cta__btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    padding: 1rem 1.5rem;
    min-height: 52px;
  }

  /* ── Responsible AI ── */
  .responsible-ai { padding: 3.5rem 1.25rem; }
  .responsible-ai__header { margin-bottom: 2rem; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE LANDING — Small mobile ≤ 480px
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero__headline { font-size: 1.9rem; }
  .hero__badge    { font-size: 9px; padding: 0.25rem 0.55rem; }

  .stats-bar { padding: 2rem 1rem; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; gap: 1.25rem 0; }
  .stats-bar__num   { font-size: 1.75rem; }

  .how   { padding: 3rem 1rem; }
  .agents { padding: 3rem 1rem; }
  .final-cta { padding: 3rem 1rem; }
  .responsible-ai { padding: 3rem 1rem; }

  .rai-pillar { padding: 1.5rem; }

  .agent-card { padding: 1.25rem; }

  .final-cta__btn { font-size: 0.95rem; }
}

/* ══════════════════════════════════════════════
   VISION — Polígonos autosostenibles
══════════════════════════════════════════════ */
.vision {
  padding: 6rem 2rem;
  background: var(--surface);
}

.vision__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.vision__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.vision__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.vision__sub {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.vision__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vision-card {
  background: var(--bg-warm, #faf9f7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.vision-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.vision-card--active {
  border-color: var(--leaf);
  background: var(--leaf-light);
}

.vision-card__icon {
  width: 44px;
  height: 44px;
  background: var(--leaf-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vision-card--active .vision-card__icon {
  background: var(--leaf);
}

.vision-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--leaf);
}

.vision-card--active .vision-card__icon svg {
  color: white;
}

.vision-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.vision-card__desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

.vision-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  background: var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  align-self: flex-start;
}

.vision-card__tag--active {
  color: var(--leaf);
  background: rgba(7, 128, 128, 0.12);
}

/* roof panel wind variant */
.roof-viz__panel--wind {
  background: rgba(100, 180, 255, 0.35);
}

@media (max-width: 1024px) {
  .vision__cards { grid-template-columns: 1fr; gap: 1rem; }
  .vision { padding: 4.5rem 1.5rem; }
}

@media (max-width: 768px) {
  .vision { padding: 3.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .vision { padding: 3rem 1rem; }
  .vision-card { padding: 1.5rem; }
}
