/*
Theme Name:  Grupo Dalt
Theme URI:   https://www.grupodalt.com
Author:      Arcointeractiva
Author URI:  https://arcointeractiva.com
Description: Tema corporativo para Grupo Dalt. Diseño healthtech moderno con identidad visual de marca completa. Incluye productos COROTA y SIRVI, páginas legales y diseño mobile-first.
Version:     1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
License:     Proprietary
Text Domain: grupodalt
*/

/* =============================================
   VARIABLES
   ============================================= */
:root {
  --dark:       #0D1B4B;
  --blue:       #0033FF;
  --cyan:       #00D4FF;
  --white:      #FFFFFF;
  --light:      #F4F6FB;
  --text:       #1a1a2e;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(13, 27, 75, 0.07);
  --shadow-md:  0 8px 40px rgba(13, 27, 75, 0.12);
  --shadow-lg:  0 16px 60px rgba(13, 27, 75, 0.18);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* =============================================
   WORDPRESS — admin bar & skip link
   ============================================= */
.admin-bar #navbar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #navbar { top: 46px; }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* =============================================
   FOCUS
   ============================================= */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p   { color: var(--muted); font-size: 1.1rem; line-height: 1.7; }

/* =============================================
   BACKGROUNDS
   ============================================= */
.bg-white { background: var(--white); }
.bg-light { background: var(--light); }

.bg-dark {
  background: var(--dark);
  color: var(--white);
}
.bg-dark .section-header p { color: rgba(255,255,255,0.65); }

.bg-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, #0066ff 50%, var(--cyan) 100%);
  color: var(--white);
}
.bg-gradient .section-header p { color: rgba(255,255,255,0.85); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: #0029cc;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,51,255,0.35);
}

.btn-cian {
  background: var(--cyan);
  color: var(--dark);
  font-weight: 700;
}
.btn-cian:hover {
  background: #00bde8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,212,255,0.4);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* =============================================
   GRIDS
   ============================================= */
.grid { display: grid; gap: 1.5rem; }
.grid-2x2 { grid-template-columns: repeat(2, 1fr); }
.grid-3   { grid-template-columns: repeat(3, 1fr); }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,51,255,0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
  flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { color: var(--dark); margin-bottom: 0.5rem; }
.card p   { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.card-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.card-dark:hover { background: rgba(255,255,255,0.09); box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.card-dark h3 { color: var(--white); }
.card-dark p  { color: rgba(255,255,255,0.65); }

.card-icon-light {
  background: rgba(0,212,255,0.12);
  color: var(--cyan);
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(4, 18, 30, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.25);
}

#navbar.menu-open {
  background: rgba(4, 18, 30, 0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* WordPress menu resets */
.nav-links { display: flex; gap: 2rem; margin-left: auto; padding: 0; margin-bottom: 0; }
.nav-links li { list-style: none; padding: 0; margin: 0; }

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 2px;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--white); }

#navbar.scrolled  .nav-links a { color: rgba(255,255,255,0.75); }
#navbar.scrolled  .nav-links a:hover { color: var(--white); }

/* WordPress current-menu-item */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--cyan) !important; }
#navbar.scrolled .nav-links .current-menu-item > a { color: var(--cyan) !important; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.lang-toggle:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.nav-cta { margin-left: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 4rem) 0 160px;
}

/* Background image + overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 18, 16, 0.96) 0%,
    rgba(4, 18, 16, 0.82) 35%,
    rgba(4, 18, 16, 0.35) 62%,
    rgba(4, 18, 16, 0.05) 100%
  );
}

/* Text content */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.4rem;
}

.hero-inner h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  max-width: 620px;
}
.hero-accent { color: var(--cyan); }

.hero-subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  line-height: 1.7;
  max-width: 480px;
}

/* Bottom feature bar */
.hero-features {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(4, 18, 16, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-feature-card:last-child { border-right: none; }

.hero-feature-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}
.hero-feature-icon svg { width: 20px; height: 20px; }

.hero-feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.hero-feature-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
}

/* =============================================
   STATS
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  transition: var(--transition);
}
.stat-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(0,212,255,0.2);
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.source-text {
  text-align: center;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}
.bg-light .source-text { color: var(--muted); opacity: 0.7; }
.bg-white .source-text { color: var(--muted); opacity: 0.7; }

/* =============================================
   BAR CHART
   ============================================= */
.chart-container {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar-item { display: flex; align-items: center; gap: 1.25rem; }

.bar-label {
  width: 130px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 44px;
  background: rgba(13,27,75,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.9rem;
  transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-value {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* =============================================
   NUMBERED ITEMS
   ============================================= */
.numbered-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: var(--transition);
}
.numbered-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(0,51,255,0.1);
}

.item-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.18;
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.item-content h3 { color: var(--dark); margin-bottom: 0.4rem; }
.item-content p  { color: var(--muted); font-size: 0.95rem; }

/* =============================================
   COROTA BADGE
   ============================================= */
.corota-badge {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.corota-badge span {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,51,255,0.25);
}

/* =============================================
   COROTA FLOW
   ============================================= */
.flow-container {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.flow-step {
  flex: 1;
  padding: 2.25rem 1.75rem;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flow-step:last-child { border-right: none; }
.flow-step:hover { background: rgba(0,51,255,0.02); }

.flow-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--blue), #0055ff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,51,255,0.3);
}
.flow-icon svg { width: 26px; height: 26px; }

.flow-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  background: rgba(0,51,255,0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  color: var(--blue);
}

.flow-step h3 { color: var(--dark); margin-bottom: 0.75rem; font-size: 1rem; }
.flow-step p  { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

.flow-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  align-self: center;
  color: var(--blue);
  opacity: 0.3;
  font-size: 1.25rem;
  font-weight: 700;
}
.flow-arrow::before { content: '→'; }

/* =============================================
   BADGE
   ============================================= */
.badge {
  display: inline-block;
  background: rgba(0,51,255,0.07);
  color: var(--blue);
  border: 1px solid rgba(0,51,255,0.15);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

/* =============================================
   AUDIENCE CARDS
   ============================================= */
.card-audience {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  text-align: center;
  color: var(--white);
}
.card-audience:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.card-audience h3 { color: var(--white); margin-bottom: 0.75rem; font-size: 1.2rem; }
.card-audience p  { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

.audience-number {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 1.5rem;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section { text-align: center; }
.cta-content { max-width: 580px; margin: 0 auto; }
.cta-content h2 { margin-bottom: 1rem; }
.cta-content > p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.cta-links {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.cta-links a { color: var(--cyan); transition: var(--transition); }
.cta-links a:hover { color: var(--white); text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #060d24;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.footer-address {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.6;
}
.footer-address a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-address a:hover {
  color: var(--cian);
}

.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.83rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.83rem;
}
.footer-links a { color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-links a:hover { color: var(--cyan); }

.footer-credit {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-credit p { color: rgba(255,255,255,0.28); font-size: 0.78rem; }
.footer-credit a { color: var(--cyan); transition: var(--transition); }
.footer-credit a:hover { color: var(--white); text-decoration: underline; }
.footer-seal { height: 60px; width: auto; display: block; margin: 0 auto 0.75rem; opacity: 0.85; }

/* =============================================
   PHOTO SPACES
   ============================================= */
.section-photo-feature {
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #c5dbd7 0%, #8fbdb6 100%);
  margin: 0 0 3rem;
  position: relative;
  display: block;
}
.section-photo-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-strip {
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2521 0%, #1a3a35 50%, #0d2521 100%);
  margin: 0;
  position: relative;
  display: block;
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
}

@media (max-width: 768px) {
  .section-photo-feature { height: 220px; }
  .photo-strip { height: 240px; }
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0a1542 60%, #0022cc 100%);
  padding: calc(var(--nav-height) + 4rem) 1.5rem 4rem;
  text-align: center;
  color: var(--white);
}
.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.legal-hero p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
  color: #374151;
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
}
.legal-content ul li {
  color: #374151;
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 0.3rem;
}
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: #0029cc; }
.legal-content strong { color: var(--dark); font-weight: 600; }
.legal-update {
  display: inline-block;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* =============================================
   ANIMATIONS — fade-in + stagger
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.grid .fade-in:nth-child(1) { transition-delay: 0s; }
.grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE — 1024px
   ============================================= */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-step  { padding: 1.75rem 1.25rem; }
}

/* =============================================
   RESPONSIVE — 768px
   ============================================= */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.75rem; }
  .grid-2x2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem; right: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { display: block; }
  .nav-links a {
    color: var(--dark) !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    display: block;
  }
  .nav-links a:hover { background: var(--light); }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-container { flex-wrap: nowrap; }

  #hero {
    padding: calc(var(--nav-height) + 3rem) 0 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }
  .hero-bg-overlay { background: rgba(4,18,16,0.88); }
  .hero-inner { padding: 0 1.5rem 2.5rem; width: 100%; max-width: 100%; }
  .hero-inner h1 { font-size: 1.9rem; max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-features {
    position: relative;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: auto;
  }
  .hero-feature-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 1.25rem 1.5rem;
  }
  .hero-feature-card:last-child { border-bottom: none; }

  .flow-container { flex-direction: column; border-radius: var(--radius); }
  .flow-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .flow-step:last-child { border-bottom: none; }
  .flow-step .flow-icon { flex-shrink: 0; margin-bottom: 0; }
  .flow-step > div:not(.flow-icon) { flex: 1; }
  .flow-step h3 { margin-bottom: 0.4rem; }

  .flow-arrow { width: auto; height: 32px; padding: 0 2rem; align-self: auto; }
  .flow-arrow::before { content: '↓'; }

  .bar-label { width: 105px; font-size: 0.85rem; }

  .footer-inner { flex-direction: column; text-align: center; gap: 0.6rem; }
}

/* =============================================
   RESPONSIVE — 480px
   ============================================= */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.25rem; }

  .bar-item { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .bar-label { width: auto; }
  .bar-track { width: 100%; }

  .flow-step { flex-direction: column; text-align: center; }
  .flow-step .flow-icon { margin: 0 auto 0.75rem; }
}
