/* ============================================================
   Inglés 360 — Base v6.5 · Visual Revision 5
   Reset + tipografía + layout + atmósfera continua.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--i360-paper);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--i360-ink-900);
  background-color: #FFFFFF;
  /* LIGHT MODE — luminous, intentional, premium.
     Inspirado en preview-empieza-aqui light direction.
     Atmósfera continua: el body bg fluye detrás de TODO el sitio.
     SIN dot grid · SIN galaxy · SIN target rings. */
  background-image:
    radial-gradient(78% 55% at 6% -8%,   rgba(43,230,224,0.20) 0%, transparent 60%),
    radial-gradient(70% 50% at 96% -4%,  rgba(177,76,255,0.18) 0%, transparent 62%),
    radial-gradient(80% 50% at 50% 18%,  rgba(74,107,255,0.10) 0%, transparent 70%),
    linear-gradient(180deg, #F4F7FF 0%, #FBFCFF 35%, #FFFFFF 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* DARK MODE — cinematic, deep, premium.
   Inspirado en reference-a-desired-look + Reference C.
   Layer order (back→front):
     1) vertical navy fade (#060A22 → #0A1340 → #060A22)
     2) cyan aurora top-left
     3) magenta aurora top-right
     4) blue subtle middle bloom
   SIN dot grid · SIN starfield · SIN galaxy partículas · SIN target rings. */
[data-theme="dark"] body {
  background-color: #060A22;
  background-image:
    radial-gradient(70% 55% at 6% -8%,   rgba(43,230,224,0.20)  0%, transparent 60%),
    radial-gradient(60% 55% at 96% -4%,  rgba(177,76,255,0.20)  0%, transparent 60%),
    radial-gradient(60% 40% at 50% 50%,  rgba(74,107,255,0.10)  0%, transparent 65%),
    linear-gradient(180deg, #060A22 0%, #0A1340 50%, #060A22 100%);
  background-attachment: fixed;
}

/* No more body::before texture overlays — backgrounds stay clean and continuous */
body::before { content: none; }
[data-theme="dark"] body::before { content: none; }

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

a {
  color: var(--i360-blue-600);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover { color: var(--i360-blue-500); }
[data-theme="dark"] a { color: var(--i360-cyan-400); }
[data-theme="dark"] a:hover { color: var(--i360-cyan-300); }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

ul, ol { padding: 0; margin: 0; }

/* ----------  Headings (Plus Jakarta Sans · más premium · responsivo) ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--i360-ink-900);
  text-wrap: balance;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 8.4vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(30px, 5.4vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.022em;
}
h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.2;
  font-weight: 700;
}
h4 {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.3;
  font-weight: 600;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: #fff; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

/* Anchor word treatment — gradient via <em> */
h1 em, h2 em, h3 em {
  font-style: normal;
  background: var(--i360-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* ----------  Text utilities  ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--i360-blue-600);
  margin: 0 0 var(--sp-3);
  display: block;
}
[data-theme="dark"] .eyebrow { color: var(--i360-cyan-400); }

.lead {
  font-size: clamp(16px, 2.2vw, 19.5px);
  line-height: 1.6;
  color: var(--i360-ink-700);
}
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.meta  { font-size: var(--fs-meta);  letter-spacing: var(--tracking-meta); }

.text-grad {
  background: var(--i360-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-grad-warm {
  background: var(--i360-grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-hand { font-family: var(--font-hand); font-weight: 700; font-size: var(--fs-hand); line-height: 1; }

.muted          { color: var(--i360-ink-500); }
.text-light     { color: #fff; }
.text-light-dim { color: var(--i360-ink-300); }

[data-theme="dark"] .lead { color: var(--i360-ink-300); }

/* ----------  Layout  ---------- */
.container { width: min(100% - 32px, 1200px); margin-inline: auto; }

.section {
  padding-block: var(--sp-12);
  position: relative;
  z-index: 1;
  background: transparent !important;  /* Visual Rev 5: NO hard section bg */
}
@media (min-width: 768px)  { .section { padding-block: var(--sp-20); } }
@media (min-width: 1024px) { .section { padding-block: 96px; } }

.section-paper { background: transparent; }

/* Visual Rev 5: section-dark is a NO-OP color carrier.
   Keeps the class on existing markup but no longer paints a hard navy block.
   Body bg flows continuously behind every section. */
.section-dark {
  background: transparent !important;
  color: inherit;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: inherit; }
.section-dark p, .section-dark li { color: inherit; }
.section-dark .eyebrow { color: var(--i360-blue-600); }
[data-theme="dark"] .section-dark .eyebrow { color: var(--i360-cyan-400); }

/* ----------  Accessibility  ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--i360-blue-600);
  outline-offset: 3px;
}
[data-theme="dark"] :focus-visible { outline-color: var(--i360-cyan-400); }

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