/* ═══════════════════════════════════════════
   DITEV — Base: Reset + Tipografía + Globals
   ═══════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--grey-800);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }

/* ─── Tipografía global ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }

p { line-height: 1.7; }

/* ─── Layout helpers ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section--grey   { background: var(--grey-50); }
.section--navy   { background: var(--navy); color: var(--white); }
.section--navy h2,
.section--navy h3 { color: var(--white); }

/* ─── Section header ─── */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center { text-align: center; }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.section-divider {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-top: 1rem;
}

.section-header--center .section-divider {
  margin-inline: auto;
}

/* ─── Animate on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── Utilities ─── */
.text-red   { color: var(--red); }
.text-navy  { color: var(--navy); }
.text-muted { color: var(--grey-500); }
.text-white { color: var(--white); }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ─── Página inner (offset navbar) ─── */
.page-offset { padding-top: var(--nav-height); }

/* ─── Page hero (páginas internas) ─── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem var(--gutter) 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
  opacity: 0.88;
  z-index: 0;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-inline: auto;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.6rem; }

.breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.8rem;
}

.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.35); }
