/* ════════════════════════════════════════════════════════
   PORTAL OFERTAS · GRUPO SALMERÓN
   Sistema de diseño industrial
   ════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Tasa+Orbiter+Display:wght@400;500;600;700;800&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  /* Marca principal */
  --corten: #eb5e50;
  --corten-dark: #d94d3f;
  --iron: #212122;

  /* Submarcas */
  --steel: #20314b;       /* Elvia */
  --green-oxide: #233c39; /* Abitia */
  --bronze: #47313b;      /* Fabria */

  /* Neutros */
  --off-white: #f5f4f2;
  --mid-gray: #e8e6e2;
  --gray-muted: #8a8a8a;
  --iron-60: #6c6c6d;
  --white: #ffffff;

  /* Alpha */
  --corten-10: rgba(235,94,80,0.10);
  --corten-20: rgba(235,94,80,0.20);
  --iron-10: rgba(33,33,34,0.10);

  /* Tipografía */
  --font-display: 'Tasa Orbiter Display', 'Arial Black', sans-serif;
  --font-body: 'Raleway', Arial, sans-serif;

  /* Motion */
  --ease-brand: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--iron);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ────── NAVEGACIÓN ────── */
.nav {
  background: var(--iron);
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  height: 32px;
}
.nav-logo svg { height: 32px; width: auto; max-width: 200px; }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 3px;
  transition: all 0.15s ease;
}
.nav-item:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-item.active { color: var(--corten); }
.nav-cta {
  background: var(--corten);
  color: var(--white) !important;
  padding: 10px 18px;
}
.nav-cta:hover { background: var(--corten-dark) !important; }

/* ────── HERO ────── */
.hero {
  padding: 100px 60px 80px;
  position: relative;
  overflow: hidden;
}
.hero-iron { background: var(--iron); color: var(--white); }
.hero-steel { background: var(--steel); color: var(--white); }
.hero-green { background: var(--green-oxide); color: var(--white); }
.hero-bronze { background: var(--bronze); color: var(--white); }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(235,94,80,0.04) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(235,94,80,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--corten);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--corten);
}

h1.t-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 1000px;
}
.t-lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,0.78);
  max-width: 700px;
  line-height: 1.55;
}

/* ────── SECCIONES ────── */
section {
  padding: 80px 60px;
  max-width: 1280px;
  margin: 0 auto;
}
section.full {
  max-width: none;
  padding: 80px 60px;
}
.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--corten);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--corten);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -0.005em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--iron);
}
.section-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--iron-60);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 48px;
}
.hero .section-sub { color: rgba(255,255,255,0.7); }

/* ────── BOTONES ────── */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--corten); color: var(--white); border-color: var(--corten); }
.btn-primary:hover { background: var(--corten-dark); border-color: var(--corten-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--iron); border-color: var(--iron); }
.btn-secondary:hover { background: rgba(33,33,34,0.06); }
.btn-ghost { background: transparent; color: var(--corten); border-color: var(--corten); }
.btn-ghost:hover { background: var(--corten-10); }
.btn-ghost-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-dark { background: var(--iron); color: var(--white); border-color: var(--iron); }
.btn-dark:hover { background: #3a3a3b; }
.btn-lg { font-size: 13px; padding: 16px 32px; }
.btn-sm { font-size: 11px; padding: 9px 18px; }
.btn svg { width: 14px; height: 14px; }

/* ────── CARDS ────── */
.card {
  background: var(--white);
  border: 0.5px solid rgba(33,33,34,0.14);
  border-radius: 8px;
  padding: 28px 30px;
  transition: all 0.2s ease;
}
.card:hover { box-shadow: 0 4px 24px rgba(33,33,34,0.06); border-color: var(--corten); }
.card-project { border-top: 3px solid var(--corten); border-radius: 0 0 8px 8px; }
.card-elvia { background: var(--steel); color: var(--white); }
.card-abitia { background: var(--green-oxide); color: var(--white); }
.card-fabria { background: var(--bronze); color: var(--white); }

/* ────── TAGS ────── */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 3px;
  white-space: nowrap;
}
.tag-corten { background: var(--corten-10); color: var(--corten); }
.tag-iron { background: var(--iron-10); color: var(--iron); }
.tag-steel { background: rgba(32,49,75,0.12); color: var(--steel); }
.tag-green { background: rgba(35,60,57,0.12); color: var(--green-oxide); }
.tag-bronze { background: rgba(71,49,59,0.12); color: var(--bronze); }

/* ────── INPUTS ────── */
.input {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(33,33,34,0.22);
  border-radius: 4px;
  background: var(--white);
  color: var(--iron);
  transition: border-color 0.15s ease;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--corten); }
.input::placeholder { color: rgba(33,33,34,0.40); }
.input-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--iron);
  margin-bottom: 8px;
  display: block;
}

/* ────── FOOTER ────── */
footer {
  background: var(--iron);
  color: rgba(255,255,255,0.6);
  padding: 70px 60px 40px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--corten);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 4px 0; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-brand svg { height: 30px; width: auto; max-width: 200px; margin-bottom: 16px; }
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--corten);
  font-style: italic;
  margin-top: 16px;
}
.footer-bottom {
  max-width: 1280px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ────── ANIMACIONES ────── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: revealUp 0.7s var(--ease-brand) forwards;
  opacity: 0;
}
.stagger > * { animation: revealUp 0.7s var(--ease-brand) both; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 100ms; }
.stagger > *:nth-child(3) { animation-delay: 200ms; }
.stagger > *:nth-child(4) { animation-delay: 300ms; }
.stagger > *:nth-child(5) { animation-delay: 400ms; }
.stagger > *:nth-child(6) { animation-delay: 500ms; }

/* ────── HELPERS ────── */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  section, .hero { padding: 60px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
