﻿/* ════════════════════════════════════════════════════════
   EXPLOSIVOS — tono ligeramente más claro · responsive
   ════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

:root {
  --gold: #8b6814;
  --gold-lt: #a8862a;
  --gold-soft: rgba(139, 104, 20, 0.16);
  --dark: #121210;
  --dark2: #1c1c19;
  --dark3: #262622;
  --surface: #30302a;
  --surface-lt: #3a3a34;
  --text: #ece8e0;
  --text-muted: rgba(236, 232, 224, 0.78);
  --white: #f8f6f2;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 6px;
}

body {
  background: var(--dark2);
  color: var(--text);
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-x: hidden;
}

nav,
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, rgba(18, 18, 16, 0.96) 0%, rgba(18, 18, 16, 0.85) 100%);
  transition: background 0.35s, border-color 0.35s;
}
nav.scrolled,
#navbar.scrolled {
  background: rgba(18, 18, 16, 0.98);
  border-bottom: 1px solid rgba(139, 104, 20, 0.2);
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-lt); }
.nav-cta {
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--dark); }

#page-hero {
  position: relative;
  min-height: min(52vh, 520px);
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 1.5rem 2.5rem;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--r2-explosivos-hero);
}
.page-hero-bg.has-banner {
  background-size: cover;
  background-position: center;
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 16, 0.35) 0%, rgba(28, 28, 25, 0.92) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--gold-lt); text-decoration: none; }
.breadcrumb .sep { color: var(--gold); opacity: 0.6; font-size: 0.65rem; }
.breadcrumb .current { color: var(--gold); }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.eyebrow-line { width: 36px; height: 2px; background: var(--gold); }
.hero-eyebrow span {
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  line-height: 0.92;
  color: var(--white);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero-title .outline {
  -webkit-text-stroke: 1px var(--gold-lt);
  color: transparent;
}

#subnav-bar {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(38, 38, 34, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-pill {
  flex-shrink: 0;
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.subnav-pill:hover { border-color: rgba(139, 104, 20, 0.5); color: var(--gold-lt); }
.subnav-pill.active {
  border-color: var(--gold);
  color: var(--gold-lt);
  background: var(--gold-soft);
}

#main-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  background: var(--dark3);
  aspect-ratio: 21 / 8;
  min-height: 180px;
  max-height: 420px;
}
.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.carousel-slide.is-active { display: block; }
.carousel-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 3;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--gold); border-color: var(--gold); }

.content-split {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.75rem;
  background: var(--dark3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.content-split.split-reverse .split-media { order: 2; }
.content-split.split-reverse .split-body { order: 1; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(139, 104, 20, 0.25);
  background: var(--surface);
}
.split-media img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.page-intro-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.feature-product.content-split { margin-top: 0; }
.feature-product-img img { min-height: 280px; }

.content-block {
  background: var(--dark3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.section-tag {
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.content-block p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.content-block p:last-child { margin-bottom: 0; }

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.pdf-card {
  background: var(--surface);
  border: 1px solid rgba(139, 104, 20, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s;
}
.pdf-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.pdf-card-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}
.pdf-card-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-lt);
  margin-top: 0.35rem;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  margin: 2rem 0;
  background: var(--dark3);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.partners-row img {
  max-height: 64px;
  max-width: 180px;
  object-fit: contain;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--dark3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 104, 20, 0.45);
}
.product-card-img {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.product-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card-body { padding: 1.1rem 1.15rem 1.25rem; border-top: 1px solid var(--line); }
.product-card-name {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.product-card-link { font-size: 0.92rem; font-weight: 600; color: var(--gold-lt); }

.notice-box {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  background: rgba(139, 104, 20, 0.1);
  border: 1px solid rgba(139, 104, 20, 0.3);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

.requisitos-intro {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.75rem;
}
.req-block {
  background: var(--dark3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.req-block h2 {
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-lt);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.req-block ol { padding-left: 1.35rem; }
.req-block li {
  margin-bottom: 0.65rem;
  font-size: 1.02rem;
  font-weight: 500;
}
.req-nota {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-lt);
  margin-top: 1rem;
}

.feature-product { max-width: 520px; margin: 0 auto; text-align: center; }
.feature-product img {
  max-width: 280px;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  background: var(--surface);
  padding: 1rem;
}
.feature-product h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: var(--white);
}
.feature-meta {
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-lt);
  margin-top: 0.35rem;
}
.feature-desc {
  font-size: 1.02rem;
  font-weight: 500;
  margin: 1rem 0 1.25rem;
  color: var(--text-muted);
}

.btn-gold {
  display: inline-flex;
  font-family: "Oswald", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--dark);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.25s;
}
.btn-gold:hover { background: var(--gold-lt); }
.btn-outline {
  display: inline-flex;
  font-family: "Oswald", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  text-decoration: none;
  border-radius: var(--radius);
}
.btn-outline:hover { background: var(--gold-soft); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.news-card {
  background: var(--dark3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s;
}
.news-card:hover { border-color: rgba(139, 104, 20, 0.4); }
.news-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.news-card p { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.news-card span {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-lt);
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  aspect-ratio: 16 / 10;
  max-height: 480px;
  background: var(--dark3);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  opacity: 0.65;
}
.gallery-thumb.active,
.gallery-thumb:hover { opacity: 1; border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.gallery-nav button {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.external-note {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--dark3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.external-note p {
  font-size: 1.08rem;
  font-weight: 500;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
}

#contact-strip {
  background: var(--surface);
  border-top: 1px solid rgba(139, 104, 20, 0.25);
  padding: 2rem 1.25rem;
  text-align: center;
}
.contact-strip-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.contact-strip-phone {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.contact-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

footer {
  padding: 1.75rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--dark);
}
.footer-copy {
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  nav,
  #navbar {
    padding: 0.85rem 1rem;
  }

  #subnav-bar {
    top: 58px;
  }

  #page-hero {
    padding: 5.25rem 1rem 2rem;
    min-height: auto;
  }

  .page-hero-content {
    max-width: 100%;
  }

  .hero-eyebrow span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .breadcrumb {
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  .hero-title {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }

  #main-content {
    padding: 1.25rem 1rem 2.5rem;
    max-width: 100%;
  }

  .content-split,
  .content-split.split-reverse,
  .feature-product.content-split {
    grid-template-columns: 1fr;
    padding: 1.15rem;
    gap: 1.15rem;
  }

  .content-split.split-reverse .split-media,
  .content-split.split-reverse .split-body {
    order: unset;
  }

  .split-media {
    min-height: 180px;
  }

  .split-media img {
    min-height: 180px;
  }

  .split-body p {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .hero-carousel {
    aspect-ratio: 16 / 9;
    max-height: 240px;
    margin-bottom: 1.5rem;
  }

  .pdf-grid {
    grid-template-columns: 1fr;
  }

  .partners-row {
    gap: 1.25rem;
    padding: 1.25rem 0.75rem;
  }

  .partners-row img {
    max-height: 52px;
    max-width: 140px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .req-block {
    padding: 1.1rem;
  }

  .req-block h2 {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .req-block li {
    font-size: 0.94rem;
  }

  .requisitos-intro {
    font-size: 1rem;
  }

  .contact-strip-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .contact-strip-actions .btn-gold,
  .contact-strip-actions .btn-outline {
    justify-content: center;
    text-align: center;
  }

  .gallery-main {
    max-height: 260px;
  }

  .gallery-thumb {
    width: 72px;
    height: 48px;
  }

  .external-note {
    padding: 1.5rem 1rem;
  }

  .external-note p {
    font-size: 0.98rem;
  }

  .notice-box {
    font-size: 0.92rem;
    padding: 1rem;
  }

  .feature-product-img img {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  #subnav-bar {
    top: 52px;
  }

  .subnav-pill {
    font-size: 0.7rem;
    padding: 0.42rem 0.8rem;
    letter-spacing: 0.06em;
  }

  .hero-title {
    font-size: clamp(1.95rem, 10vw, 2.75rem);
  }

  .section-tag {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
  }

  .content-block {
    padding: 1.15rem 1rem;
  }

  .pdf-card {
    padding: 1.15rem;
  }

  .contact-strip-phone {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  footer {
    padding: 1.25rem 1rem;
  }
}

@supports (padding: max(0px)) {
  nav,
  #navbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  #main-content,
  #contact-strip,
  footer {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
