/* ===== VARIABLES & RESET ===== */
:root {
  --bg: #04040D;
  --bg2: #080818;
  --card: rgba(255,255,255,0.035);
  --card-hover: rgba(255,255,255,0.065);
  --blue: #1A6EFF;
  --blue-glow: rgba(26,110,255,0.25);
  --cyan: #00C8FF;
  --white: #FFFFFF;
  --off-white: #E8EDF5;
  --muted: #7A869A;
  --border: rgba(255,255,255,0.07);
  --border-blue: rgba(26,110,255,0.3);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ===== HEADER / NAV ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition), border-bottom var(--transition);
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: rgba(4,4,13,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo svg {
  width: 32px; height: 32px;
  transition: transform var(--transition);
}
.nav-logo:hover svg { transform: scale(1.1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background var(--transition), box-shadow var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #3381FF !important; box-shadow: 0 0 24px var(--blue-glow) !important; }

.nav-home-icon { display: flex; align-items: center; }
.nav-home-icon svg { width: 22px; height: 22px; color: var(--muted); transition: color var(--transition); }
.nav-home-icon:hover svg { color: var(--white); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO / VIDEO SECTION ===== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(4,4,13,0.2) 0%,
    rgba(4,4,13,0.5) 60%,
    rgba(4,4,13,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(0,200,255,0.3);
  border-radius: 99px;
  background: rgba(0,200,255,0.05);
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 32px;
  border-radius: 10px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: #3381FF;
  box-shadow: 0 0 40px var(--blue-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--off-white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 14px 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--white);
  background: rgba(26,110,255,0.07);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }

@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== SECTIONS COMMON ===== */
section { padding: 100px 48px; }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}

/* fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== HISTORIA SECTION ===== */
#historia {
  background: var(--bg);
}

.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
}

.historia-text p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.historia-text p strong {
  color: var(--off-white);
  font-weight: 600;
}

.historia-meaning {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 500;
}
.historia-meaning span { color: var(--muted); font-weight: 400; font-family: var(--font-body); }

.value-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.value-item:hover {
  border-color: var(--border-blue);
  background: var(--card-hover);
}

.value-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(26,110,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
}

.value-text h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 4px;
}
.value-text p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== STATS BAND ===== */
#stats {
  padding: 60px 48px;
  background: linear-gradient(135deg, rgba(26,110,255,0.08) 0%, rgba(0,200,255,0.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 32px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ===== SERVICIOS SECTION ===== */
#servicios {
  background: var(--bg2);
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

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

.service-card {
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.service-card:hover {
  border-color: var(--border-blue);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26,110,255,0.1);
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(26,110,255,0.1);
  border: 1px solid rgba(26,110,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: background var(--transition), border-color var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(26,110,255,0.2);
  border-color: rgba(26,110,255,0.4);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* featured card */
.service-card.featured {
  border-color: var(--border-blue);
  background: linear-gradient(135deg, rgba(26,110,255,0.08) 0%, rgba(0,200,255,0.04) 100%);
  grid-column: span 1;
}

/* ===== COMO SECTION ===== */
#como {
  background: var(--bg);
}

.como-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}

.como-visual {
  position: relative;
}

.como-diagram {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition);
}
.diag-row:hover {
  border-color: var(--border-blue);
  color: var(--white);
}

.diag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.diag-dot.blue { background: var(--blue); }
.diag-dot.cyan { background: var(--cyan); }
.diag-dot.green { background: #00D084; }
.diag-dot.yellow { background: #FFD84D; }
.diag-dot.purple { background: #A855F7; }
.diag-dot.orange { background: #FF7A45; }

.como-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.como-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(26,110,255,0.1);
  border: 1px solid var(--border-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}

.step-body h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 6px;
}
.step-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 48px 40px;
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 280px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--blue);
  transition: color var(--transition);
}
.footer-email:hover { color: var(--cyan); }
.footer-email svg { width: 16px; height: 16px; }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(122,134,154,0.6); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(26,110,255,0.04);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--blue);
}
.form-check a { color: var(--blue); text-decoration: underline; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 36px;
  border-radius: 10px;
  width: 100%;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-submit:hover {
  background: #3381FF;
  box-shadow: 0 0 30px var(--blue-glow);
  transform: translateY(-1px);
}
.btn-submit svg { width: 18px; height: 18px; }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0,208,132,0.08);
  border: 1px solid rgba(0,208,132,0.3);
  border-radius: 10px;
  color: #00D084;
  font-size: 0.9rem;
}
.form-success.visible { display: flex; }

/* Map */
.footer-map {
  max-width: 1160px;
  margin: 48px auto 0;
}

.map-label {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-label svg { width: 16px; height: 16px; color: var(--blue); }

.map-frame {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-frame iframe {
  width: 100%; height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) saturate(0.7) brightness(0.8);
}

/* Footer bottom */
.footer-bottom {
  max-width: 1160px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ===== LEGAL PAGES ===== */
.page-hero {
  padding: 140px 48px 80px;
  background: linear-gradient(180deg, rgba(26,110,255,0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--muted);
  font-size: 1rem;
}

.legal-body {
  padding: 64px 48px 100px;
}

.legal-body-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-body h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--off-white);
  margin: 24px 0 10px;
}

.legal-body p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-body li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-body a:hover { color: var(--cyan); }

.legal-body strong { color: var(--off-white); font-weight: 600; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.875rem;
}
.legal-table th {
  background: rgba(26,110,255,0.1);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border-blue);
}
.legal-table td {
  padding: 10px 16px;
  color: var(--muted);
  border: 1px solid var(--border);
}
.legal-table tr:hover td { background: var(--card); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: #00D084;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,208,132,0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(4,4,13,0.98);
    backdrop-filter: blur(20px);
    gap: 32px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.25rem; }
  .nav-cta { padding: 14px 36px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  section { padding: 80px 32px; }
  #footer { padding: 64px 32px 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 768px) {
  #header { padding: 18px 24px; }
  #header.scrolled { padding: 12px 24px; }
  section { padding: 64px 24px; }
  #footer { padding: 48px 24px 32px; }
  .page-hero { padding: 120px 24px 60px; }
  .legal-body { padding: 48px 24px 80px; }

  .historia-grid,
  .como-grid,
  .footer-grid,
  .services-intro { grid-template-columns: 1fr; gap: 48px; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}
