/* iCIEN — Páginas de Normas — estilos compartidos */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1d3c72;
  --navy-deep: #0d1c3a;
  --navy-light: #2e54a0;
  --teal-dim: rgba(29,60,114,0.08);
  --gold: #b87814;
  --gold-light: #d4961e;
  --gold-dim: rgba(184,120,20,0.12);
  --red: #8b1c1c;
  --bg: #faf9f7;
  --bg2: #f0ede8;
  --bg3: #e8e4dd;
  --white2: #2e4a7a;
  --text-muted: #7a8aa8;
  --border: rgba(29,60,114,0.1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* NAV */
nav.norm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(250,249,247,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.norm-nav .nav-logo img { height: 38px; display: block; }
.norm-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white2);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.norm-back:hover { color: var(--navy); }
.norm-nav-cta {
  background: var(--navy);
  color: white;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.norm-nav-cta:hover { background: var(--navy-light); transform: translateY(-1px); }

/* HERO */
.norm-hero {
  position: relative;
  padding: 140px 5vw 80px;
  background:
    linear-gradient(115deg, rgba(13,28,58,0.92) 0%, rgba(29,60,114,0.82) 50%, rgba(29,60,114,0.60) 100%),
    linear-gradient(135deg, #0d1c3a 0%, #1d3c72 100%);
  color: white;
  overflow: hidden;
}
.norm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 90% 30%, rgba(184,120,20,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(46,84,160,0.4) 0%, transparent 60%);
  pointer-events: none;
}
.norm-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.crumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.crumb a:hover { color: var(--gold-light); }
.crumb span.sep { color: rgba(255,255,255,0.3); }
.crumb span.current { color: var(--gold-light); }

.norm-badge {
  display: inline-block;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(212,150,30,0.5);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.norm-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: white;
  text-wrap: balance;
}
.norm-title .gold { color: var(--gold-light); }

.norm-intro {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 32px;
  padding-left: 18px;
  border-left: 2px solid var(--gold-light);
  max-width: 600px;
  font-weight: 300;
}

.norm-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-gold {
  background: var(--gold);
  color: white;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(184,120,20,0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(184,120,20,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.45);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: white; }

/* Hero side card with quick facts */
.facts-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 28px;
  position: relative;
}
.facts-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 40px; height: 4px;
  background: var(--gold);
  border-radius: 14px 0 0 0;
}
.facts-card-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fact-row:last-child { border-bottom: none; }
.fact-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 500;
}
.fact-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-align: right;
}

/* SECTION */
section.norm-section {
  padding: 90px 5vw;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--navy);
  text-wrap: balance;
}
.section-sub {
  font-size: 17px;
  color: var(--white2);
  max-width: 680px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 56px;
}

/* REASONS */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.reason-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(29,60,114,0.05);
}
.reason-card:hover {
  border-color: rgba(184,120,20,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(29,60,114,0.12);
}
.reason-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 14px;
}
.reason-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--navy);
}
.reason-desc {
  font-size: 14px;
  color: var(--white2);
  line-height: 1.6;
  text-align: justify;
}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 70%);
  border-radius: 18px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1.6fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin: 32px 5vw;
  max-width: calc(1200px - 10vw);
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 20px 50px rgba(13,28,58,0.18);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(184,120,20,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner-content { position: relative; }
.cta-banner-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: 8px;
  text-wrap: balance;
}
.cta-banner-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.55;
  max-width: 540px;
}

/* LEGAL */
.legal-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.legal-intro .section-sub { margin-bottom: 28px; }
.legal-note {
  background: white;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white2);
  font-style: italic;
}
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
}
.legal-icon {
  width: 40px; height: 40px;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.legal-item-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--navy);
  line-height: 1.3;
}
.legal-item-desc {
  font-size: 13px;
  color: var(--white2);
  line-height: 1.55;
}

/* PROCESS */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.process-step {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  position: relative;
}
.process-step-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-dim);
  line-height: 1;
  letter-spacing: -0.04em;
}
.process-step-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 8px;
  color: var(--navy);
}
.process-step-desc {
  font-size: 13px;
  color: var(--white2);
  line-height: 1.55;
}

/* FINAL CTA */
.final-cta {
  background:
    linear-gradient(115deg, rgba(13,28,58,0.94) 0%, rgba(29,60,114,0.86) 100%),
    linear-gradient(135deg, #1d3c72 0%, #0d1c3a 100%);
  color: white;
  padding: 96px 5vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 50% 100%, rgba(184,120,20,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}
.final-cta-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-wrap: balance;
}
.final-cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.6;
}
.final-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.final-cta-trust {
  margin-top: 32px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-family: var(--font-display);
}
.final-cta-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* FOOTER */
footer.norm-footer {
  background: var(--navy);
  color: white;
  padding: 48px 5vw 28px;
}
.norm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.norm-footer img { height: 30px; filter: brightness(0) invert(1) opacity(0.9); }
.norm-footer-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.norm-footer-links { display: flex; gap: 24px; }
.norm-footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-display);
  transition: color 0.2s;
}
.norm-footer-links a:hover { color: var(--gold-light); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .norm-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
  .norm-nav-cta { display: none; }
}
@media (max-width: 600px) {
  .process-list { grid-template-columns: 1fr; }
  .norm-hero { padding: 120px 5vw 60px; }
}

/* ===== MOTION (subtle, site-wide — paired with site-motion.js) ===== */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.fade-up.visible { opacity: 1; transform: none; }

/* Reading-progress bar */
#readProgress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 200; pointer-events: none;
  transition: transform 0.08s linear;
}

/* Gold underline draws under section titles when revealed */
.section-title { position: relative; }
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: -12px;
  width: 54px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.8s cubic-bezier(.22,.61,.36,1) 0.12s;
}
.section-title.title-drawn::after { transform: scaleX(1); }

/* Hero entrance — autoplays on load (no JS needed) */
@keyframes normHeroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.norm-hero .norm-badge        { animation: normHeroIn 0.75s cubic-bezier(.22,.61,.36,1) 0.08s both; }
.norm-hero .norm-title        { animation: normHeroIn 0.75s cubic-bezier(.22,.61,.36,1) 0.20s both; }
.norm-hero .norm-intro        { animation: normHeroIn 0.75s cubic-bezier(.22,.61,.36,1) 0.34s both; }
.norm-hero .norm-hero-actions { animation: normHeroIn 0.75s cubic-bezier(.22,.61,.36,1) 0.48s both; }
.norm-hero .facts-card        { animation: normHeroIn 0.85s cubic-bezier(.22,.61,.36,1) 0.40s both; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .section-title::after { display: none; }
  #readProgress { display: none; }
  .norm-hero .norm-badge, .norm-hero .norm-title, .norm-hero .norm-intro,
  .norm-hero .norm-hero-actions, .norm-hero .facts-card { animation: none !important; }
}
