/* ============================================
   ASFALKOTE PENNSYLVANIA — Industrial / Yellow & Black
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #131311;
  --bg-3: #1c1c19;
  --ink: #f7f5ee;
  --ink-soft: #c4c1b6;
  --muted: #8c887d;
  --yellow: #f8e91a;
  --yellow-2: #fff555;
  --yellow-3: #b8aa00;
  --line: rgba(248, 233, 26, 0.18);
  --line-soft: rgba(247, 245, 238, 0.08);
  --display: 'Saira Condensed', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --max: 1280px;
  --r: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--max), 92%); margin: 0 auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1;
  text-transform: uppercase;
}
h1 { font-size: clamp(3.4rem, 10vw, 8rem); font-weight: 900; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: 1.6rem; }
em {
  font-style: italic;
  color: var(--yellow);
  font-weight: 900;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
  display: inline-block;
}
.eyebrow.yellow { color: var(--yellow); }
.yellow { color: var(--yellow); }
.yellow-text { color: var(--yellow); font-weight: 600; }
.muted { color: var(--muted); }

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 580px;
  font-weight: 400;
}
.lead + .lead { margin-top: 0.8rem; }

/* highlight tipo marker amarillo */
.yellow-bg {
  background: var(--yellow);
  color: #0a0a0a;
  padding: 0 0.18em;
  display: inline-block;
  transform: skew(-6deg);
  font-style: italic;
  font-weight: 900;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(10,10,10,.92), rgba(10,10,10,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .3s ease, padding .3s ease;
}
.navbar.scrolled {
  background: rgba(10,10,10,.95);
  padding: 0.6rem 0;
  border-bottom: 2px solid var(--yellow);
}
.nav-inner {
  width: min(var(--max), 92%);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.brand-logo { height: 56px; width: auto; transition: transform .3s ease; }
.brand:hover .brand-logo { transform: scale(1.04); }

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links > a,
.nav-links .nav-trigger {
  font-family: var(--sans);
  font-size: 0.82rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative; padding: 0.4rem 0;
  transition: color .3s ease;
  display: inline-flex; align-items: center; gap: 0.3rem;
  cursor: pointer;
}
.nav-links > a::after,
.nav-links .nav-trigger::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width .35s ease;
}
.nav-links > a:hover,
.nav-links .nav-trigger:hover { color: var(--yellow); }
.nav-links > a:hover::after,
.nav-links .nav-trigger:hover::after { width: 100%; }

/* Dropdown menu */
.nav-item.has-dropdown { position: relative; }
.nav-item .caret {
  font-size: 0.7rem;
  transition: transform .25s ease;
  display: inline-block;
}
.nav-item.has-dropdown:hover .caret,
.nav-item.has-dropdown.is-open .caret {
  transform: rotate(180deg);
  color: var(--yellow);
}
.dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -1rem;
  min-width: 240px;
  background: var(--bg-2);
  border: 1px solid var(--yellow);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 110;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.6);
}
.dropdown::before {
  content: '';
  position: absolute;
  top: 16px; left: -1px;
  width: 4px; height: 24px;
  background: var(--yellow);
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.7rem 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .25s ease, color .25s ease, padding-left .25s ease;
}
.dropdown a:hover {
  background: var(--bg-3);
  color: var(--yellow);
  padding-left: 1.8rem;
}

.nav-cta {
  background: var(--yellow);
  color: #0a0a0a;
  padding: 0.7rem 1.3rem;
  font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all .3s ease;
  border-radius: var(--r);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.nav-cta:hover { background: var(--yellow-2); transform: translateY(-1px); }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1ea84f; display: inline-block;
  box-shadow: 0 0 0 0 rgba(30,168,79,.6);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,168,79,.6); }
  50% { box-shadow: 0 0 0 6px rgba(30,168,79,0); }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .brand-logo { height: 44px; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 7rem 0 3rem;
}
.hero-bg {
  position: absolute; inset: -10% -5% -10% -5%;
  background-image: url('assets/productos/hero.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.4) saturate(0.95) contrast(1.05);
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 30% 60%, rgba(248, 233, 26, .12), transparent 70%),
    linear-gradient(180deg, rgba(10,10,10,.7) 0%, rgba(10,10,10,.5) 40%, rgba(10,10,10,.95) 100%);
  pointer-events: none;
}

/* Diagonal warning stripes (industrial vibe) */
.diag-stripes {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 18px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0,
    var(--yellow) 24px,
    #0a0a0a 24px,
    #0a0a0a 48px
  );
  z-index: 3;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: left;
  width: min(var(--max), 92%);
  margin: 0 auto;
}
.hero-title {
  font-weight: 900;
  margin-bottom: 1.6rem;
  max-width: 1100px;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05rem 2rem;
  font-family: var(--sans);
  font-size: 0.85rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: var(--r);
  transition: all .3s cubic-bezier(.2,.7,.2,1);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-yellow {
  background: var(--yellow);
  color: #0a0a0a;
  box-shadow: 0 12px 30px -10px rgba(248,233,26,.4);
}
.btn-yellow:hover {
  background: var(--yellow-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(248,233,26,.55);
}
.btn-ghost {
  border-color: var(--ink-soft);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.btn.big { padding: 1.2rem 2.6rem; font-size: 0.92rem; }

.scroll-hint {
  position: absolute; bottom: 3.5rem; left: 50%;
  transform: translateX(-50%);
  display: grid; gap: 0.5rem; place-items: center;
  z-index: 3;
}
.scroll-hint span {
  width: 2px; height: 50px;
  background: linear-gradient(180deg, transparent, var(--yellow));
  animation: scrollLine 2s ease-in-out infinite;
}
.scroll-hint p {
  font-size: 0.7rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 600;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   TICKER de aplicaciones
   ============================================ */
.ticker {
  background: var(--yellow);
  color: #0a0a0a;
  padding: 1.2rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 4px solid #0a0a0a;
  border-bottom: 4px solid #0a0a0a;
}
.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: tickerMove 60s linear infinite;
  will-change: transform;
}
.ticker-track > span,
.ticker-track > i {
  margin-right: 2.4rem;
  flex-shrink: 0;
}
.ticker-track span {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.08em;
}
.ticker-track i {
  font-style: normal; color: #0a0a0a; opacity: 0.6;
  font-size: 0.9rem;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}

/* ============================================
   STATS
   ============================================ */
.stats-section {
  padding: 6rem 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--line-soft);
}
.stat-block {
  border-right: 1px solid var(--line-soft);
  padding: 1.5rem 2rem;
  text-align: left;
}
.stat-block .num {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  display: inline-block;
  font-style: italic;
}
.stat-block .num b {
  color: var(--yellow);
  font-weight: 900;
}
.stat-block p {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block { padding: 1.5rem 1rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}
.section-head { margin-bottom: 4rem; max-width: 760px; }
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }

.parallax-img {
  position: absolute; inset: -10% 0;
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  z-index: 0;
  will-change: transform;
}
.parallax-img.dark { opacity: 0.18; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  position: relative; z-index: 1;
}
.two-col.reverse .col-card { order: -1; }
@media (max-width: 960px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 3rem; }
  .two-col.reverse .col-card { order: 0; }
  .section { padding: 5rem 0; }
}

/* ABOUT */
.about h2 { margin-bottom: 1.8rem; max-width: 540px; }
.about strong { color: var(--ink); font-weight: 600; }
.badges {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 2.5rem;
}
.badge {
  display: inline-flex; align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  background: rgba(248, 233, 26, 0.04);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-frame {
  position: relative;
  background: #f5f0e8;
  border: 1px solid var(--line-soft);
  padding: 1.6rem;
}
.card-frame::before {
  content: '';
  position: absolute; inset: -8px;
  border: 2px solid var(--yellow);
  pointer-events: none;
  transition: inset .5s ease, opacity .5s ease;
  opacity: 0.5;
}
.card-frame:hover::before { inset: -14px; opacity: 0.8; }
.card-frame img {
  aspect-ratio: 1/1; object-fit: contain; width: 100%;
}
.card-frame.photo {
  background: var(--bg-3);
  padding: 0;
}
.card-frame.photo img {
  aspect-ratio: 4/5;
  object-fit: cover;
}
.card-tag {
  position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%) translateY(50%);
  background: var(--yellow);
  color: #0a0a0a;
  padding: 0.7rem 1.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.6rem;
}

/* ============================================
   PRODUCTOS — FAMILIAS
   ============================================ */
.products { background: var(--bg); }
.families-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.family-card {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  transition: transform .35s ease, border-color .35s ease;
  overflow: hidden;
  position: relative;
}
.family-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
}
.family-card::before {
  content: '';
  position: absolute; inset: auto 0 0 0;
  height: 3px; background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
  z-index: 2;
}
.family-card:hover::before { transform: scaleX(1); }

.fc-img {
  position: relative;
  aspect-ratio: 4/3;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f5f0e8;
  padding: 1rem;
  transition: background-color .35s ease;
  border-bottom: 1px solid var(--line-soft);
}
.family-card:hover .fc-img { background-color: #fffaf0; }

.fc-num {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  color: #0a0a0a;
  background: var(--yellow);
  padding: 0.05rem 0.6rem;
  line-height: 1;
}

.fc-body { padding: 1.6rem 1.5rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.fc-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.fc-body > p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

.fc-count {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-3);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  align-self: flex-start;
  flex: 0 0 auto;
}
.family-card:hover .fc-count {
  color: var(--yellow);
  background: rgba(248, 233, 26, 0.08);
}

.fc-cta {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  background: transparent;
  border: none;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6rem 0;
  cursor: pointer;
  position: relative;
  transition: color .3s ease, transform .3s ease;
}
.fc-cta::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--yellow-3);
  transition: background .3s ease;
}
.fc-cta:hover { color: var(--yellow-2); transform: translateX(4px); }
.fc-cta:hover::after { background: var(--yellow-2); }

/* ============================================
   MODAL DE PRODUCTOS
   ============================================ */
.product-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.product-modal.is-open { display: flex; }
.product-modal[aria-hidden="false"] { display: flex; }

.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  animation: fadeIn .35s ease;
}

.modal-box {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--yellow);
  width: min(1180px, 100%);
  max-height: calc(100vh - 4rem);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -10px rgba(0,0,0,0.7);
  animation: slideUp .45s cubic-bezier(.2,.7,.2,1);
}
.modal-box::before, .modal-box::after {
  content: '';
  position: absolute; width: 32px; height: 32px;
  border: 3px solid var(--yellow);
  pointer-events: none;
}
.modal-box::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.modal-box::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2rem 1.4rem;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-3) 0%, transparent 100%);
}
.modal-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
#modal-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.modal-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 580px;
}

.modal-close {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--yellow);
  font-size: 1.6rem;
  font-weight: 300;
  cursor: pointer;
  transition: all .25s ease;
  display: grid; place-items: center;
  line-height: 1;
}
.modal-close:hover {
  background: var(--yellow);
  color: #0a0a0a;
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow-3) var(--bg-2);
}
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: var(--bg-2); }
.modal-body::-webkit-scrollbar-thumb { background: var(--yellow-3); border-radius: 4px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.product-card {
  background: #f5f0e8;
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -10px rgba(248, 233, 26, 0.4);
}
.product-card .pc-img {
  aspect-ratio: 1/1;
  background: #ffffff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
}
.product-card .pc-img.no-img {
  background: var(--bg-3);
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.product-card .pc-meta {
  padding: 1rem 1rem 1.2rem;
  background: #1a1a17;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 0.6rem;
}
.product-card h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1.2;
}
.product-card .pc-cta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.45rem;
  transition: gap .25s ease, color .25s ease;
}
.product-card .pc-cta svg { flex-shrink: 0; }
.product-card .pc-cta.has-ficha { color: var(--yellow); }
.product-card .pc-cta.no-ficha  { color: #25d366; }
.product-card:hover .pc-cta { gap: 0.7rem; }
.product-card:hover .pc-cta.has-ficha { color: var(--yellow-2); }
.product-card:hover .pc-cta.no-ficha  { color: #2eea7a; }
.product-card.is-noficha .pc-img { background: #fafaf6; }

.modal-foot {
  border-top: 1px solid var(--line-soft);
  padding: 1.4rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  background: var(--bg-3);
}
.modal-foot p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .modal-head { flex-direction: row; padding: 1.5rem 1.2rem 1rem; }
  .modal-body { padding: 1.2rem; }
  .modal-foot { padding: 1rem 1.2rem; }
  .modal-foot p { font-size: 0.85rem; }
  .modal-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.7rem; }
  .product-card h4 { font-size: 0.92rem; }
}

/* Body lock cuando modal abierto */
body.modal-open { overflow: hidden; }

/* ============================================
   PÁGINAS INTERNAS (Quiénes Somos / Historia / RSE / Calidad)
   ============================================ */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: grid; place-items: center;
  padding: 9rem 0 5rem;
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.35) saturate(0.95) contrast(1.05);
  z-index: 0;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.7) 0%, rgba(10,10,10,.55) 50%, rgba(10,10,10,.95) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative; z-index: 2;
  width: min(var(--max), 92%);
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
  font-weight: 600;
}
.page-hero .breadcrumb a {
  color: var(--yellow);
  transition: color .25s ease;
}
.page-hero .breadcrumb a:hover { color: var(--yellow-2); }
.page-hero .breadcrumb span { margin: 0 0.7rem; opacity: 0.5; }

.page-content {
  padding: 5rem 0 7rem;
}
.page-content .container {
  max-width: 880px;
}
.page-content p,
.page-content li {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.4rem;
}
.page-content p strong { color: var(--ink); font-weight: 600; }
.page-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 3.5rem 0 1.5rem;
  color: var(--ink);
}
.page-content h3 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: var(--yellow);
}
.page-content ul {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding-left: 0;
}
.page-content ul li {
  position: relative;
  padding-left: 2rem;
}
.page-content ul li::before {
  content: '◆';
  position: absolute;
  left: 0; top: 0;
  color: var(--yellow);
  font-size: 0.9rem;
  line-height: 1.75;
}
.page-content blockquote {
  border-left: 3px solid var(--yellow);
  padding: 1rem 0 1rem 1.6rem;
  margin: 2rem 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--yellow);
  font-weight: 600;
  line-height: 1.4;
}
.page-content figure {
  margin: 3rem 0;
}
.page-content figure img {
  width: 100%;
  border: 1px solid var(--line);
}
.page-content figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.7rem;
  text-align: center;
  letter-spacing: 0.05em;
}

/* TIMELINE de Historia */
.timeline {
  position: relative;
  padding: 2rem 0;
  margin: 3rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-left: 130px;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 73px; top: 0.5rem;
  width: 16px; height: 16px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-year {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 900;
  color: var(--yellow);
  width: 70px;
  text-align: right;
  line-height: 1.4;
}
.timeline-item p {
  margin-bottom: 0;
  font-size: 0.98rem;
}
.timeline-item.highlight {
  background: linear-gradient(90deg, rgba(248,233,26,0.06), transparent);
  padding: 1.5rem 1.5rem 1.5rem 130px;
  margin-left: -1rem;
  margin-right: -1rem;
  border-left: 3px solid var(--yellow);
}
.timeline-item.highlight::before {
  left: 73px;
}

/* Stats inline para páginas */
.page-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  margin: 3rem 0;
}
.page-stat {
  background: var(--bg-2);
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.page-stat .ps-num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 900;
  font-style: italic;
  color: var(--yellow);
  line-height: 1;
  display: block;
}
.page-stat .ps-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  display: block;
}

@media (max-width: 720px) {
  .timeline::before { left: 24px; }
  .timeline-item { padding-left: 64px; }
  .timeline-item::before { left: 17px; }
  .timeline-year {
    position: relative; left: auto; top: auto;
    text-align: left; width: auto;
    margin-bottom: 0.4rem;
    display: block;
  }
  .timeline-item.highlight { padding-left: 64px; }
}

.catalog-bar {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  padding: 1.6rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  margin-top: 1.5rem;
}
.catalog-bar p {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}

/* ============================================
   APLICACIONES
   ============================================ */
.apps { background: var(--bg-2); }
.apps .container { position: relative; z-index: 1; }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.app-tile {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 2.4rem 1.6rem;
  background: rgba(10,10,10,0.4);
  transition: background .3s ease, transform .3s ease;
  position: relative;
}
.app-tile:hover {
  background: rgba(248,233,26,0.06);
}
.app-tile::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 3px; width: 0;
  background: var(--yellow);
  transition: width .4s ease;
}
.app-tile:hover::after { width: 100%; }

.app-tile span {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}
.app-tile h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.app-tile p {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  font-family: var(--sans);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
@media (max-width: 900px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .apps-grid { grid-template-columns: 1fr; } }

/* ============================================
   NOVEDADES
   ============================================ */
.news { background: var(--bg-2); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.news-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
}
.nc-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: #1a1a17;
  position: relative;
  filter: brightness(0.95);
  transition: filter .35s ease, transform .8s ease;
}
.news-card:hover .nc-img { filter: brightness(1.05); }
.nc-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
}
.nc-body {
  padding: 1.3rem 1.3rem 1.4rem;
  display: flex; flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}
.nc-date {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
}
.nc-body h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ink);
}
.nc-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}
.nc-cta {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--yellow);
  margin-top: 0.4rem;
  transition: color .3s ease;
}
.news-card:hover .nc-cta { color: var(--yellow-2); }

.news-foot {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.news-foot p {
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  font-size: 1rem;
}

/* ============================================
   COMERCIO EXTERIOR
   ============================================ */
.export { background: var(--bg); }
.export-stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}
.export-stat::before, .export-stat::after {
  content: '';
  position: absolute; width: 24px; height: 24px;
  border: 2px solid var(--yellow);
}
.export-stat::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.export-stat::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.big-num {
  font-family: var(--display);
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 900;
  font-style: italic;
  color: var(--yellow);
  line-height: 0.9;
  display: block;
}
.export-stat > p {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.7rem 0 2rem;
  font-weight: 500;
}
.countries {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.7rem;
  align-items: stretch;
  text-align: left;
  max-width: 240px;
  margin: 0 auto;
}
.countries li {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: var(--bg-3);
  border-left: 3px solid var(--yellow);
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}
.countries li span {
  font-size: 1.4rem;
  filter: contrast(1.2);
}

.link-arrow {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--yellow-3);
  padding-bottom: 0.3rem;
  transition: color .3s ease, border-color .3s ease, transform .3s ease;
}
.link-arrow:hover {
  color: var(--yellow-2);
  border-color: var(--yellow-2);
  transform: translateX(4px);
}

/* ============================================
   CONTACTO
   ============================================ */
.contact { background: var(--bg-2); padding: 8rem 0; }
.contact-card {
  max-width: 920px; margin: 0 auto;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4rem 2.5rem;
  position: relative;
}
.contact-card::before, .contact-card::after {
  content: '';
  position: absolute; width: 36px; height: 36px;
  border: 3px solid var(--yellow);
}
.contact-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.contact-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.contact-card h2 { margin: 1rem 0 1.4rem; }
.contact-card .lead { margin: 0 auto 2.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-bottom: 2.5rem;
}
.contact-item {
  background: var(--bg-2);
  padding: 1.4rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  text-align: left;
  transition: background .3s ease;
}
.contact-item:not(.static):hover { background: var(--bg-3); }
.ci-label {
  font-size: 0.7rem; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
}
.ci-value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #050505;
  border-top: 4px solid var(--yellow);
  padding: 4rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.foot-brand .foot-logo { height: 60px; width: auto; margin-bottom: 1.2rem; }
.foot-brand p { color: var(--ink-soft); font-size: 0.92rem; max-width: 320px; }

.foot-links { display: flex; flex-direction: column; gap: 0.5rem; }
.foot-links h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}
.foot-links a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color .3s ease;
}
.foot-links a:hover { color: var(--yellow); }

.foot-legal {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: right;
}
.foot-legal .muted { font-size: 0.75rem; margin-top: 0.4rem; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .foot-legal { text-align: left; grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whats-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 60px; height: 60px;
  background: #25d366; color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 99;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.55);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: pulseW 2.5s ease-in-out infinite;
}
.whats-float:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 40px -8px rgba(37,211,102,.7);
}
@keyframes pulseW {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.55), 0 0 0 0 rgba(37,211,102,.5); }
  50% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.55), 0 0 0 14px rgba(37,211,102,0); }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal:nth-child(6) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .parallax, .parallax-img, .hero-bg { transform: none !important; }
  .ticker-track { animation: none; }
  .scroll-hint span { animation: none; }
  .dot { animation: none; }
}
