/* ============================================================
   trotaminas.org · estilos compartidos
   Paleta: grafito + cobre/ocre · tipografías Oswald / Barlow / Inter
   ============================================================ */

:root {
  --graphite: #141414;
  --graphite-2: #1c1c1c;
  --graphite-3: #262626;
  --graphite-4: #3a3a3a;
  --steel: #5a5a58;
  --bone: #e8e3d6;
  --sand: #c8c0ac;
  --copper: #b87333;
  --copper-bright: #d38a46;
  --ocher: #c78e2c;
  --white: #ffffff;
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--copper); color: var(--white); }

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

/* ---------- TIPOGRAFÍA ---------- */
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

a {
  color: var(--copper-bright);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--ocher); }

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 100px 0; }

.section-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--copper);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 50px;
}

/* ---------- NAV ---------- */
nav.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 115, 51, 0.18);
  z-index: 100;
  padding: 14px 0;
}
nav.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand span { color: var(--copper); }
.brand a { color: inherit; }
.brand a:hover { color: var(--white); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--sand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--copper-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  cursor: pointer;
  font-size: 22px;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--graphite-2);
    flex-direction: column;
    padding: 20px 32px;
    gap: 16px;
    border-bottom: 1px solid rgba(184, 115, 51, 0.18);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- BOTONES / CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--copper);
  color: var(--white);
  padding: 14px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 10px;
  margin-right: 12px;
}
.btn:hover {
  background: var(--copper-bright);
  color: var(--white);
  transform: translateY(-1px);
}
.btn.outline {
  background: transparent;
  border: 1.5px solid var(--copper);
  color: var(--copper-bright);
}
.btn.outline:hover {
  background: rgba(184, 115, 51, 0.1);
  color: var(--copper-bright);
}

/* Compatibilidad con la clase usada en el CV */
.hero-cta { /* alias visual de .btn */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--copper);
  color: var(--white);
  padding: 14px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 30px;
  margin-right: 12px;
}
.hero-cta:hover {
  background: var(--copper-bright);
  color: var(--white);
  transform: translateY(-1px);
}
.hero-cta.outline {
  background: transparent;
  border: 1.5px solid var(--copper);
  color: var(--copper-bright);
}
.hero-cta.outline:hover {
  background: rgba(184, 115, 51, 0.1);
}

/* ---------- HERO genérico ---------- */
.hero {
  min-height: 100vh;
  background: var(--graphite);
  background-image:
    radial-gradient(ellipse at 20% 40%, rgba(184, 115, 51, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(199, 142, 44, 0.08) 0%, transparent 50%);
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 38px, rgba(184, 115, 51, 0.025) 38px, rgba(184, 115, 51, 0.025) 39px),
    repeating-linear-gradient(-45deg, transparent 0, transparent 38px, rgba(184, 115, 51, 0.025) 38px, rgba(184, 115, 51, 0.025) 39px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--copper);
}

.hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.hero h1 .accent { color: var(--copper-bright); display: block; }

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--sand);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-summary {
  font-size: 16.5px;
  color: var(--bone);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.75;
}

@media (max-width: 820px) {
  .hero { padding: 100px 0 60px; }
}

/* ---------- TARJETAS GENÉRICAS ---------- */
.card {
  background: var(--graphite-2);
  border: 1px solid var(--graphite-4);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--bone);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card:hover {
  border-color: var(--copper);
  transform: translateY(-3px);
  color: var(--bone);
  background: var(--graphite-3);
}
.card-mark {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper-bright);
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.card-text {
  font-size: 15px;
  color: var(--sand);
  line-height: 1.65;
}
.card-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  color: var(--copper-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--graphite-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-self: flex-start;
  padding: 3px 8px;
  border: 1px solid var(--graphite-4);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--graphite-2);
  border-top: 1px solid var(--graphite-4);
  padding: 30px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  color: var(--steel);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
footer .brand { font-size: 16px; }
footer a { color: var(--sand); }
footer a:hover { color: var(--copper-bright); }

/* ---------- ANIMACIÓN REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
