/* ═══════════════════════════════════════════════════════
   base.css — Variables, Reset, Tipografía, Utilidades
   B&R Maestranza · Bacian y Rocha Ltda.
═══════════════════════════════════════════════════════ */

/* ─── Variables globales ─── */
:root {
  --navy:          #0d1b2a;
  --navy-mid:      #152236;
  --navy-dark:     #091320;
  --orange:        #f05a1a;
  --orange-light:  #ff7a3d;
  --orange-dark:   #c94610;
  --white:         #ffffff;
  --gray-light:    #f4f5f7;
  --gray-mid:      #9aa5b4;
  --gray-dark:     #3d4f61;
  --text:          #1a2332;

  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;

  --radius-sm:     4px;
  --radius-md:     8px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.25);

  --transition:    0.3s ease;

  --container-max: 1200px;
  --section-py:    6rem;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ─── Layout ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 3rem;
}

section {
  padding: var(--section-py) 0;
}

/* ─── Tipografía de sección ─── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: var(--navy);
}

.section-title--light {
  color: var(--white);
}

/* ─── Botones ─── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 30px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  line-height: 1;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  border-color: var(--orange);
  background: rgba(240, 90, 26, 0.08);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--orange);
}

.btn--sm {
  font-size: 12px;
  padding: 10px 22px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn--full {
  width: 100%;
  text-align: center;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

/* ─── Grilla decorativa (hero / page-hero) ─── */
.deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 90, 26, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 90, 26, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ─── Page Hero (subpáginas) ─── */
.page-hero {
  position: relative;
  background: var(--navy);
  padding: 9rem 0 5rem;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  color: var(--orange);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
}

.page-hero__desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 540px;
  line-height: 1.7;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal--d4 { transition-delay: 0.4s; }

/* ─── Responsive base ─── */
@media (max-width: 768px) {
  :root {
    --section-py: 4rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}
