/* ==========================================================================
   TEPALI — Proposal Mockup
   BAST ESTUDIO — 2026-04-20
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Paleta — oscuro terroso-premium */
  --bg-deep:        #0F0D0A;
  --bg-surface:     #1C1813;
  --bg-raised:      #27221B;
  --text-primary:   #EDE8DF;
  --text-muted:     #9A9085;
  --accent:         #6B7C5A;
  --accent-subtle:  #4A5640;
  --border:         #2E2820;
  --signal:         #C4A87A;

  /* Tipografía */
  --font-display: 'DM Serif Display', serif;
  --font-body:    'Instrument Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 160px);
  --container-max:   1280px;
  --gutter:          clamp(24px, 6vw, 120px);

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  /* Sombras */
  --shadow-card:     0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-specimen: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-glow:     0 0 80px rgba(74, 86, 64, 0.18);

  /* Nav */
  --nav-height: 64px;
}

/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */

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

html {
  overflow-x: hidden; /* NUNCA en body — regla global iOS Safari */
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay via SVG inline en pseudo-elemento */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   3. TIPOGRAFÍA — font-family explícito en cada elemento (regla global)
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.05;
}

p, span, a, li, label, button {
  font-family: var(--font-body);
  color: var(--text-primary);
}

.text-muted {
  font-family: var(--font-body);
  color: var(--text-muted);
}

.signal-text {
  font-family: var(--font-body);
  color: var(--signal);
}

/* Eyebrow — label superior tipo */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}

/* Section title — DM Serif Display */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 16px;
}

/* Section sub */
.section-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 560px;
  margin-top: 20px;
}

/* Placeholder — sistema tipográfico explícito, no error */
.placeholder {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.7;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 1px;
  letter-spacing: 0.02em;
}

/* Placeholder block (para imágenes/áreas grandes) */
.placeholder-block {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-raised);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.placeholder-block .placeholder {
  font-size: 11px;
}

/* ==========================================================================
   4. CTAs
   ========================================================================== */

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--signal);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: filter 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.cta-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease;
}

.cta-ghost:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ==========================================================================
   5. BADGE PROPUESTA — fijo top-right
   ========================================================================== */

.proposal-badge {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background-color: var(--accent-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   6. NAVEGACIÓN
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(15, 13, 10, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease;
}

.nav.nav--scrolled {
  background-color: rgba(28, 24, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav__logo-mark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--signal);
  line-height: 1;
}

.nav__logo-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms ease;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__cta {
  font-size: 13px;
  padding: 10px 20px;
}

/* Mobile: ocultar nav links, mantener logo y CTA */
@media (max-width: 767px) {
  .nav__links {
    display: none;
  }
  .nav__inner {
    padding: 0 20px;
  }
  .nav__cta {
    display: none;
  }
}

/* ==========================================================================
   7. SECCIONES — estructura base
   ========================================================================== */

.section {
  position: relative;
  padding: var(--section-padding) 0;
}

.section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__inner--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__inner--centered .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__header {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* ==========================================================================
   8. HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) var(--gutter) 80px;
  overflow: hidden;
}

/* Noise layer adicional en el hero */
.hero__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: var(--container-max);
  width: 100%;
}

/* Animaciones de entrada — hero */
.hero__eyebrow {
  font-family: var(--font-body);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 400ms ease-out 200ms forwards;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-top: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 400ms ease-out 400ms forwards;
}

.hero__headline em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-primary);
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 400ms ease-out 600ms forwards;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 400ms ease-out 800ms forwards;
}

/* Specimen column */
.hero__specimen-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 600ms cubic-bezier(0.22, 1, 0.36, 1) 1000ms forwards;
}

.hero__glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--accent-subtle) 0%, transparent 70%);
  opacity: 0.12;
  border-radius: 50%;
  animation: ambientPulse 8s ease-in-out infinite;
  pointer-events: none;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeIn 400ms ease 1600ms forwards;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
  animation: scrollLine 2s ease-in-out 1800ms infinite;
}

/* ==========================================================================
   9. UI SPECIMEN
   ========================================================================== */

.hero__specimen {
  width: 100%;
  max-width: 520px;
  background-color: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-specimen);
  transform: perspective(1200px) rotateX(5deg) rotateY(-2deg);
  overflow: hidden;
  position: relative;
}

.specimen__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.specimen__chrome-dots {
  display: flex;
  gap: 6px;
}

.specimen__chrome-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
}

.specimen__chrome-dots span:first-child {
  background-color: rgba(255, 100, 80, 0.5);
}
.specimen__chrome-dots span:nth-child(2) {
  background-color: rgba(255, 190, 50, 0.5);
}
.specimen__chrome-dots span:nth-child(3) {
  background-color: rgba(80, 180, 100, 0.5);
}

.specimen__chrome-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.specimen__body {
  display: flex;
  height: 320px;
}

/* Sidebar */
.specimen__sidebar {
  width: 130px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  flex-shrink: 0;
}

.specimen__sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: default;
  transition: color 150ms ease, background-color 150ms ease;
}

.specimen__sidebar-item--active {
  background-color: rgba(107, 124, 90, 0.12);
  color: var(--accent);
  border-right: 2px solid var(--accent);
}

.specimen__sidebar-icon {
  font-size: 8px;
  opacity: 0.6;
}

/* Main panel */
.specimen__main {
  flex: 1;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.specimen__stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.specimen__stat {
  background-color: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.specimen__stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.specimen__stat-value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
}

.specimen__stat-value--accent {
  color: var(--accent);
}

.specimen__activity {
  background-color: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.specimen__activity-header {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.specimen__activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.specimen__activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border);
  flex-shrink: 0;
}

.specimen__activity-dot--live {
  background-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(107, 124, 90, 0.3);
  animation: livePulse 2s ease-in-out infinite;
}

.specimen__activity-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.specimen__activity-time {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 300;
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ==========================================================================
   10. SECCIÓN TESIS
   ========================================================================== */

.section--thesis {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.thesis__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.thesis__paragraph {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
}

.thesis__paragraph--closing {
  color: var(--text-primary);
  font-weight: 500;
}

.thesis__cta {
  margin-top: 40px;
}

/* ==========================================================================
   11. AGENTS SECTION
   ========================================================================== */

.section--agents {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.agents__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

/* Agent card */
.agent-card {
  background-color: var(--bg-raised);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.agent-card:hover {
  border-color: var(--accent-subtle);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--accent-subtle);
}

.agent-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-card__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--signal);
  letter-spacing: 0.04em;
}

.agent-card__tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.agent-card__headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.agent-card__story {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-card__story p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
}

.agent-card__feature {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: auto;
}

/* ROI strip */
.agents__roi {
  background-color: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(32px, 4vw, 48px);
  margin-bottom: 40px;
}

.agents__roi-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.agents__roi-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.agents__roi-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 clamp(24px, 3vw, 48px);
}

.agents__roi-stat:first-child {
  padding-left: 0;
}

.agents__roi-stat:last-child {
  padding-right: 0;
}

.agents__roi-divider {
  width: 1px;
  height: 48px;
  background-color: var(--border);
  flex-shrink: 0;
}

.agents__roi-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 400;
  color: var(--signal);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.agents__roi-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

.agents__roi-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  letter-spacing: 0.01em;
}

.agents__cta {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   12. SECCIÓN TRUST
   ========================================================================== */

.section--trust {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.trust__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  margin-bottom: 48px;
}

.trust__founders {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trust__founder {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust__founder-photo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.trust__founder-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust__founder-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.trust__founder-role {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.trust__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust__paragraph {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
}

.trust__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.trust__badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 140px;
}

.trust__badge--placeholder {
  border-style: dashed;
  opacity: 0.7;
}

.trust__badge-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust__badge-value {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.trust__cta {
  display: flex;
  justify-content: flex-start;
}

/* ==========================================================================
   13. DEMO CTA SECTION
   ========================================================================== */

.section--demo {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.demo__headline {
  font-size: clamp(36px, 5vw, 64px);
  margin-top: 16px;
}

.demo__headline em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--signal);
}

.demo__sub {
  max-width: 480px;
  text-align: center;
}

.demo__cta {
  margin-top: 40px;
  font-size: 16px;
  padding: 16px 36px;
}

.demo__note {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
}

.demo__email {
  font-family: var(--font-body);
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 150ms ease;
}

.demo__email:hover {
  opacity: 0.8;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__nav-heading {
  font-family: var(--font-body);
  font-size: 11px;
  margin-bottom: 16px;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer__nav-link:hover {
  color: var(--text-primary);
}

.footer__nav-link.placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.5;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__legal {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  transition: color 150ms ease;
}

.footer__social-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   15. SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal--delay-1 {
  transition-delay: 100ms;
}

.reveal--delay-2 {
  transition-delay: 200ms;
}

.reveal--delay-3 {
  transition-delay: 300ms;
}

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

/* ==========================================================================
   16. ANIMACIONES KEYFRAMES
   ========================================================================== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.08; }
  50%       { opacity: 0.18; }
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(107, 124, 90, 0.3); }
  50%       { box-shadow: 0 0 0 4px rgba(107, 124, 90, 0.15); }
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  80%  { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; }
}

/* ==========================================================================
   17. MOTION — prefers-reduced-motion (regla dura)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__eyebrow,
  .hero__headline,
  .hero__sub,
  .hero__ctas,
  .hero__specimen-wrap,
  .hero__scroll-hint {
    opacity: 1;
    transform: none;
    animation: none;
  }

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

/* ==========================================================================
   18. RESPONSIVE — 1024px (tablet)
   ========================================================================== */

@media (max-width: 1024px) {
  .agents__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .trust__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .trust__founders {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   19. RESPONSIVE — 768px (mobile)
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --nav-height: 56px;
  }

  .hero {
    padding: calc(var(--nav-height) + 40px) 20px 64px;
    min-height: 100dvh;
    align-items: flex-start;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__headline {
    font-size: clamp(36px, 9vw, 52px);
    letter-spacing: -0.02em;
  }

  .hero__specimen-wrap {
    order: -1; /* Specimen arriba en mobile es opcional — lo dejamos abajo para que el copy llegue primero */
  }

  .hero__specimen {
    transform: perspective(800px) rotateX(3deg) rotateY(-1deg);
    max-width: 100%;
  }

  .specimen__body {
    height: 240px;
  }

  .specimen__sidebar {
    width: 100px;
  }

  .agents__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .agents__roi-stats {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .agents__roi-divider {
    width: 40px;
    height: 1px;
  }

  .agents__roi-stat {
    padding: 0;
  }

  .trust__grid {
    grid-template-columns: 1fr;
  }

  .trust__founders {
    flex-direction: column;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .section__inner--centered {
    text-align: left;
    align-items: flex-start;
  }

  .section__inner--centered .section-sub {
    text-align: left;
    margin-left: 0;
  }

  .demo__headline {
    font-size: clamp(32px, 8vw, 48px);
  }

  .demo__sub {
    text-align: left;
  }

  .demo__cta {
    width: 100%;
    justify-content: center;
  }

  .section__inner {
    padding: 0 20px;
  }

  .hero__scroll-hint {
    display: none;
  }

  .proposal-badge {
    top: auto;
    bottom: 16px;
    right: 16px;
    font-size: 9px;
  }
}

/* ==========================================================================
   20. RESPONSIVE — 375px (mobile S)
   ========================================================================== */

@media (max-width: 375px) {
  .hero__headline {
    font-size: 34px;
  }

  .hero__ctas {
    flex-direction: column;
    gap: 12px;
  }

  .hero__cta-primary,
  .hero__cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .footer__nav {
    grid-template-columns: 1fr;
  }

  .trust__badge {
    min-width: 0;
    flex: 1;
  }
}
