/* ============================================
   GROWTHPERIENCIA — styles.css  v3
   Estilo: Moderno / Tech (tipo Linear, Stripe)
   Paleta: Azul #0D4277 | Oro #C6A516 | Negro #000
   Tipografía: Montserrat (body) + Zalando Sans / Outfit (headings)
   ============================================ */

/* ── FUENTE PERSONALIZADA ── */
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSansSemiExpanded-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSansSemiExpanded-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSansSemiExpanded-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSansSemiExpanded-ExtraBold.ttf') format('truetype');
  font-weight: 800 900; font-style: normal; font-display: swap;
}

/* ── VARIABLES ── */
:root {
  --blue:       #0D4277;
  --blue-dark:  #0a3560;
  --blue-mid:   #5c74a4;
  --blue-light: #94a4c4;
  --blue-tint:  #eef4fc;
  --gold:       #C6A516;
  --gold-dark:  #c4a414;
  --gold-light: #f2df86;
  --black:      #000000;
  --white:      #ffffff;
  --gray-50:    #fafbfd;
  --gray-100:   #f3f5f9;
  --gray-200:   #e4e8f0;
  --gray-300:   #d1d5db;
  --text:       #111827;
  --text-mid:   #4b5563;
  --text-light: #9ca3af;

  --radius:     18px;
  --radius-lg:  24px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.04);
  --shadow:     0 4px 20px rgba(13,66,119,.08);
  --shadow-lg:  0 16px 48px rgba(13,66,119,.12);
  --shadow-glow:0 0 40px rgba(13,66,119,.15);

  --transition: .25s cubic-bezier(.4,0,.2,1);

  --font-heading: 'Zalando Sans', 'Outfit', 'Segoe UI', sans-serif;
  --font-body:    'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── TIPOGRAFÍA ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-stretch: semi-expanded;
  line-height: 1.15;
  color: var(--text);
  text-transform: uppercase;
}
h1 { font-size: clamp(1.75rem, 4vw, 42px); font-weight: 700; }  /* Bold */
h2 { font-size: clamp(1.5rem, 3vw, 32px); font-weight: 600; }  /* SemiBold */
h3 { font-size: clamp(1.1rem, 2vw, 24px); font-weight: 400; }   /* Regular */
p  { font-family: var(--font-body); color: var(--text-mid); }

/* ── LAYOUT ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
section    { padding: 120px 0; }

/* ── SECTION HEADERS ── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-header h2  { margin-bottom: 16px; }
.section-header p   { font-size: 1.12rem; line-height: 1.7; }
.section-sub        { font-size: 1.12rem; line-height: 1.7; }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--blue-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: 18px 36px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  line-height: 1;
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198,165,22,.3);
}
.btn-sm  { padding: 10px 20px; font-size: .85rem; }
.btn-lg  { padding: 22px 48px; font-size: 1.1rem; }

.btn-ghost {
  display: inline-block;
  color: var(--blue);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}
.btn-ghost:hover { color: var(--gold-dark); }

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.06); }

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.nav-logo-img {
  height: 80px; width: auto;
  display: block; object-fit: contain;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 800;
  color: var(--blue);
}
.nav-logo-text span { color: var(--gold-dark); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--blue); border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-nav {
  display: none; flex-direction: column;
  position: fixed; top: 90px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 28px 24px; gap: 4px;
  z-index: 999;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.mobile-nav.open { display: flex; }
.mobile-link {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 500;
  color: var(--text); padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--blue); }


/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
#hero {
  padding: 160px 0 120px;
  background: var(--white);
  overflow: hidden;
  position: relative;
}
/* Sutil gradiente decorativo */
#hero::before {
  content: '';
  position: absolute;
  top: 0; right: -20%; width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,66,119,.04) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -10%; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,165,22,.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-tint);
  border: 1px solid rgba(13,66,119,.12);
  color: var(--blue);
  padding: 7px 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.badge-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-dark);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198,165,22,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(198,165,22,0); }
}

.hero-content h1 {
  color: var(--text);
  margin-bottom: 24px;
  max-width: 600px;
}
.hero-content .highlight {
  color: var(--blue);
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* ── HERO: System Flow Animation ── */
.system-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .4;
  transition: opacity .5s ease, transform .5s ease;
}
.flow-node.active {
  opacity: 1;
  transform: scale(1.05);
}

.node-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: border-color .5s ease, box-shadow .5s ease;
}
.flow-node.active .node-circle {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(13,66,119,.15);
}

.node-label {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color .5s ease;
}
.flow-node.active .node-label { color: var(--blue); }

/* Connectors */
.flow-connector {
  width: 2px;
  height: 32px;
  position: relative;
  overflow: hidden;
}
.connector-track {
  width: 100%;
  height: 100%;
  background: var(--gray-200);
}
.connector-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  left: -2px;
  animation: dot-down 2.5s ease-in-out infinite;
}
@keyframes dot-down {
  0%   { top: -6px;  opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}
.flow-connector:nth-of-type(2) .connector-dot { animation-delay: .6s; }
.flow-connector:nth-of-type(3) .connector-dot { animation-delay: 1.2s; }


/* ═══════════════════════════════════
   PROBLEMA — 3 cards
═══════════════════════════════════ */
#problema {
  background: var(--gray-50);
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-mid);
}

.pcard-icon { font-size: 2rem; margin-bottom: 16px; }
.problem-card h3 { color: var(--text); margin-bottom: 8px; }
.problem-card p  { font-size: .95rem; line-height: 1.65; }


/* ═══════════════════════════════════
   SISTEMA / CONCEPTO CENTRAL
═══════════════════════════════════ */
#sistema {
  background: var(--white);
}

.diagram-wrapper {
  display: flex;
  justify-content: center;
}

.system-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 360px;
}

.diagram-node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 24px;
  width: 100%;
  cursor: default;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.diagram-node:hover {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateX(6px);
}

/* Tooltip on hover */
.diagram-node::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--blue-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .8rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 5;
}
.diagram-node:hover::after {
  opacity: 1;
}

.dnode-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.dnode-text {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
}

/* Diagram vertical connectors */
.diagram-line {
  width: 2px;
  height: 24px;
  background: var(--gray-200);
  position: relative;
  overflow: hidden;
}
.dline-dot {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  left: -1.5px;
  animation: dot-down 3s ease-in-out infinite;
}
.diagram-line:nth-of-type(2) .dline-dot  { animation-delay: .5s; }
.diagram-line:nth-of-type(3) .dline-dot  { animation-delay: 1s; }
.diagram-line:nth-of-type(4) .dline-dot  { animation-delay: 1.5s; }
.diagram-line:nth-of-type(5) .dline-dot  { animation-delay: 2s; }


/* ═══════════════════════════════════
   COMPONENTES — 4 cards
═══════════════════════════════════ */
#componentes {
  background: var(--gray-50);
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.comp-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.comp-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.comp-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition);
}
.comp-card:hover .comp-num { color: var(--blue-tint); }

.comp-card h3 { color: var(--blue); margin-bottom: 10px; }
.comp-card p  { font-size: .92rem; line-height: 1.65; }


/* ═══════════════════════════════════
   PROCESO — Timeline horizontal
═══════════════════════════════════ */
#proceso {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
/* Línea horizontal conectando steps */
.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  z-index: 0;
}

.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.tstep-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(13,66,119,.2);
  border: 3px solid var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.timeline-step:nth-child(2) .tstep-number { background: var(--blue-mid); }
.timeline-step:nth-child(3) .tstep-number { background: var(--gold-dark); color: var(--black); }
.timeline-step:nth-child(4) .tstep-number {
  background: linear-gradient(135deg, var(--blue), var(--gold));
}
.timeline-step:hover .tstep-number {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(13,66,119,.3);
}

.timeline-step h3 { color: var(--text); margin-bottom: 8px; }
.timeline-step p  { font-size: .88rem; line-height: 1.65; }


/* ═══════════════════════════════════
   PRUEBA SOCIAL — Carrusel de logos
═══════════════════════════════════ */
#prueba {
  background: var(--gray-50);
}

.logos-carousel-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: logos-marquee 40s linear infinite;
}

.logos-carousel-track:hover {
  animation-play-state: paused;
}

@keyframes logos-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.logo-item img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: .02em;
  text-align: center;
}

.logo-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.logo-item:hover .logo-text { color: var(--blue); }


/* ═══════════════════════════════════
   CTA FINAL
═══════════════════════════════════ */
#cta-final {
  background: var(--white);
  padding: 120px 0;
}

.cta-box {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 32px;
  font-size: 24px;
}
.highlight-gold { color: var(--gold-light); }

.cta-form {
  max-width: 520px;
  margin: 0 auto 24px;
  text-align: left;
}

.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.cta-form-row:has(input:only-child),
.cta-form-row:has(select:only-child),
.cta-form-row:has(textarea:only-child) {
  grid-template-columns: 1fr;
}

.cta-form input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.cta-form input::placeholder {
  color: var(--text-mid);
}

.cta-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.cta-form-select,
.cta-form-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.cta-form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.cta-form-select:focus,
.cta-form-textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.cta-form-select option {
  color: var(--black);
}

.cta-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.cta-form-textarea::placeholder {
  color: var(--text-mid);
}

.cta-form button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
  border: none;
}

.cta-form button[type="submit"]:hover {
  background: var(--gold);
  color: var(--black);
}

.cta-sub {
  color: rgba(255,255,255,.55);
  font-size: .92rem;
}


/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  background: var(--blue);
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-logo-img {
  height: 90px; width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 800;
  color: var(--white); display: inline-block;
  margin-bottom: 10px;
}
.footer-logo-text span { color: var(--gold-light); }

.footer-brand p {
  color: rgba(255,255,255,.45);
  font-size: .86rem;
  max-width: 420px;
}

.footer-links-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-nav-links a {
  color: rgba(255,255,255,.5);
  font-size: .86rem;
  text-align: center;
  transition: color var(--transition);
}

.footer-nav-links a:hover { color: var(--gold-light); }
.footer-links-wrap a {
  color: rgba(255,255,255,.5);
  font-size: .86rem;
  transition: color var(--transition);
}
.footer-links-wrap a:hover { color: var(--gold-light); }

.footer-social {
  display: flex; gap: 8px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--black); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,.25); font-size: .78rem; }


/* ═══════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═══════════════════════════════════ */
@media (max-width: 900px) {
  .hero-grid        { grid-template-columns: 1fr; gap: 48px; }
  .system-flow      { max-width: 320px; margin: 0 auto; }
  .problem-cards    { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .comp-grid        { grid-template-columns: repeat(2, 1fr); }
  .timeline         { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .timeline::before { display: none; }
  .footer-inner     { flex-direction: column; align-items: center; text-align: center; }
  .footer-links-wrap { align-items: center; }
  .footer-brand p   { max-width: none; }

  /* Tooltip: abajo en vez de al lado */
  .diagram-node::after {
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    width: 220px;
  }
}

/* ═══════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
═══════════════════════════════════ */
@media (max-width: 600px) {
  section     { padding: 80px 0; }
  #hero       { padding: 120px 0 80px; }
  .container  { padding: 0 20px; }

  .nav-links  { display: none; }
  .nav-cta .btn-primary { display: none; }
  .hamburger  { display: flex; }

  .hero-content   { text-align: center; }
  .hero-content h1 { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-sub      { margin-left: auto; margin-right: auto; text-align: center; }
  .hero-badge    { margin-left: auto; margin-right: auto; }
  .hero-ctas     { flex-wrap: wrap; justify-content: center; }
  .hero-visual   { display: none; }

  .footer-inner      { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand      { display: flex; flex-direction: column; align-items: center; }
  .footer-links-wrap { align-items: center; }
  .footer-brand p    { max-width: none; text-align: center; }
  .footer-bottom p   { text-align: center; }

  .comp-grid      { grid-template-columns: 1fr; }
  .timeline       { grid-template-columns: 1fr; gap: 24px; max-width: 320px; margin: 0 auto; }
  .logo-item      { padding: 14px 20px; min-width: 130px; }
  .logo-text      { font-size: .82rem; }
  .cta-box        { padding: 48px 24px; border-radius: 16px; }
  .cta-box .btn-lg { padding: 18px 32px; font-size: 1rem; }
  .cta-form-row  { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════
   PRINT
═══════════════════════════════════ */
@media print {
  #navbar, .hamburger, .mobile-nav, .hero-visual { display: none !important; }
  section { padding: 32px 0; }
}
