/* =========================================================
   Perforación Diamante JB — Rediseño 2026
   Paleta: Rojo diamante, negro concreto, blanco
   ========================================================= */

:root {
  --red: #E30613;
  --red-dark: #B00410;
  --black: #0A0A0A;
  --ink: #111;
  --graphite: #1a1a1a;
  --smoke: #2b2b2b;
  --steel: #6b6b6b;
  --paper: #f5f4f1;
  --white: #ffffff;
  --font-display: "Anton", "Bebas Neue", Impact, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(14px);
  padding: 12px 40px;
  border-bottom-color: rgba(255,255,255,.08);
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 22px; letter-spacing: .12em; }
.nav__brand img { height: 38px; width: auto; }
.nav__brand em { color: var(--red); font-style: normal; }
.nav__links { display: flex; gap: 34px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a:hover { color: var(--red); }
.nav__links a::after { content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background: var(--red); transition: width .3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  padding: 12px 22px; background: var(--red); color: #fff;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px;
  border-radius: 999px; transition: transform .25s var(--ease), background .25s;
}
.nav__cta:hover { background: #fff; color: var(--black); transform: translateY(-2px); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 140px 40px 120px;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  filter: grayscale(.15) contrast(1.05) brightness(.55);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(227,6,19,.28), transparent 55%),
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.75) 60%, rgba(10,10,10,.95) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; width: 100%; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  margin-bottom: 34px; backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 0 rgba(227,6,19,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(227,6,19,.6);} 70%{box-shadow:0 0 0 14px rgba(227,6,19,0);} 100%{box-shadow:0 0 0 0 rgba(227,6,19,0);} }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(58px, 12vw, 200px); line-height: .9; letter-spacing: -.01em;
  margin: 0 0 34px; text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__title strong { font-weight: 400; }
.hero__title .stroke {
  color: transparent; -webkit-text-stroke: 2px #fff;
}
.hero__lead {
  max-width: 620px; font-size: clamp(16px, 1.4vw, 20px); color: rgba(255,255,255,.85);
  margin: 0 0 40px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #fff; color: var(--black); transform: translateY(-3px); }
.btn--ghost { border: 1px solid rgba(255,255,255,.4); }
.btn--ghost:hover { background: #fff; color: var(--black); border-color: #fff; transform: translateY(-3px); }

/* Hero marquee */
.hero__marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(10,10,10,.4); backdrop-filter: blur(6px);
  overflow: hidden; white-space: nowrap;
}
.marquee__track {
  display: inline-flex; gap: 40px; padding-left: 40px;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display); font-size: 22px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
}
.marquee__track span:nth-child(even) { color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { position: relative; padding: 140px 40px; max-width: 1440px; margin: 0 auto; }
.section__head { margin-bottom: 80px; }
.tag {
  display: inline-block; font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: 24px;
}
.giant {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(54px, 10vw, 160px); line-height: .88; letter-spacing: -.01em;
  margin: 0; text-transform: uppercase;
}
.giant em { font-style: normal; color: var(--red); }
.giant strong { font-weight: 400; }
.section__lead { max-width: 640px; font-size: 18px; color: rgba(255,255,255,.75); margin-top: 30px; }

/* ---------- NOSOTROS ---------- */
.nosotros__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.nosotros__img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; }
.nosotros__img::before {
  content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 50%, rgba(227,6,19,.25));
  z-index: 1; mix-blend-mode: multiply;
}
.nosotros__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.nosotros__img:hover img { transform: scale(1.05); }
.nosotros__text p { font-size: 17px; color: rgba(255,255,255,.82); margin: 0 0 18px; }
.nosotros__text strong { color: #fff; }

.stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 100px;
  padding-top: 60px; border-top: 1px solid rgba(255,255,255,.1);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num {
  font-family: var(--font-display); font-size: clamp(56px, 7vw, 110px); line-height: 1;
  color: var(--white);
}
.stat:nth-child(2) .stat__num, .stat:nth-child(4) .stat__num { color: var(--red); }
.stat__label { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- SERVICIOS ---------- */
.services { display: flex; flex-direction: column; gap: 32px; }
.service {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center;
  padding: 40px; background: var(--graphite); border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color .4s, transform .4s var(--ease);
}
.service:hover { border-color: var(--red); }
.service--reverse { grid-template-columns: 1fr 1.2fr; }
.service--reverse .service__img { order: 2; }
.service__img { overflow: hidden; border-radius: 4px; aspect-ratio: 4/3; }
.service__img img { width:100%; height:100%; object-fit: cover; transition: transform 1s var(--ease); filter: contrast(1.05); }
.service:hover .service__img img { transform: scale(1.06); }
.service__num {
  display: inline-block; font-family: var(--font-display); font-size: 44px; color: var(--red); line-height: 1;
  margin-bottom: 14px;
}
.service h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 3.4vw, 54px); text-transform: uppercase;
  line-height: 1; margin: 0 0 22px; color: #fff;
}
.service ul { padding: 0; list-style: none; margin: 0; }
.service li {
  position: relative; padding: 10px 0 10px 24px; color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15px;
}
.service li::before {
  content:""; position: absolute; left: 0; top: 18px;
  width: 12px; height: 2px; background: var(--red);
}
.service li strong { color: #fff; }

/* ---------- PARALLAX ---------- */
.parallax {
  position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center;
  background-attachment: fixed; background-size: cover; background-position: center;
  padding: 100px 40px; text-align: center; overflow: hidden;
}
.parallax__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.7), rgba(10,10,10,.85));
}
.parallax__content { position: relative; z-index: 2; max-width: 1200px; }
.mega {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 9vw, 140px); line-height: .9; margin: 0 0 40px; text-transform: uppercase;
}
.mega em { font-style: normal; color: var(--red); }
.mega strong { font-weight: 400; -webkit-text-stroke: 2px var(--red); color: transparent; }

/* ---------- BENTO PROYECTOS ---------- */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px;
}
.bento__item {
  position: relative; overflow: hidden; border-radius: 4px;
  background-size: cover; background-position: center;
  cursor: pointer; transition: transform .5s var(--ease);
}
.bento__item::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.9));
  transition: background .4s;
}
.bento__item:hover { transform: scale(.985); }
.bento__item:hover::after {
  background: linear-gradient(180deg, rgba(227,6,19,.4) 0%, rgba(0,0,0,.9));
}
.bento__item--tall { grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__label { position: absolute; left: 24px; bottom: 22px; z-index: 2; }
.bento__label span { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.bento__label h4 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 2.2vw, 34px); text-transform: uppercase;
  margin: 6px 0 0; line-height: 1; color: #fff;
}

/* ---------- PRODUCTOS ---------- */
.productos__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.prod-card {
  padding: 40px; border-radius: 6px; background: var(--graphite);
  border: 1px solid rgba(255,255,255,.06); background-size: cover; background-position: center;
  min-height: 460px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s;
}
.prod-card:hover { transform: translateY(-6px); border-color: var(--red); }
.prod-card--dark { background: linear-gradient(150deg, var(--red-dark) 0%, var(--black) 100%); }
.prod-card__tag { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 700; }
.prod-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 2.6vw, 40px); text-transform: uppercase; line-height: 1;
  margin: 14px 0 20px;
}
.prod-card p { color: rgba(255,255,255,.8); font-size: 15px; }
.prod-card__row { display: flex; gap: 12px; margin-top: auto; padding-top: 24px; }
.prod-pill {
  flex: 1; padding: 18px; border-radius: 4px; display: flex; flex-direction: column; gap: 6px;
}
.prod-pill span { font-family: var(--font-display); font-size: 28px; letter-spacing: .05em; }
.prod-pill small { font-size: 12px; opacity: .85; }
.prod-pill--black { background: #000; }
.prod-pill--red { background: var(--red); }

.prod-list { list-style: none; padding: 0; margin: 0; }
.prod-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; color: rgba(255,255,255,.85); }
.prod-list li::before { content: "→ "; color: var(--red); font-weight: 700; }

.prod-card--brands { background: #fff; color: var(--black); }
.prod-card--brands .prod-card__tag { color: var(--steel); }
.prod-card--brands p { color: var(--smoke); }
.brands { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.brand {
  font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); letter-spacing: .04em;
  padding: 14px 20px; border: 1px solid rgba(0,0,0,.1); border-radius: 4px;
  transition: background .3s, color .3s;
}
.brand:hover { background: var(--red); color: #fff; border-color: var(--red); }
.prod-card__foot { font-size: 13px; color: var(--steel); margin-top: auto; }

/* ---------- CONTACTO ---------- */
.contacto__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
.info-block { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.info-block h4 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: .08em;
  font-size: 20px; text-transform: uppercase; color: var(--red); margin: 0 0 10px;
}
.info-block p { margin: 0; color: rgba(255,255,255,.85); font-size: 16px; }
.info-block a:hover { color: var(--red); }

.contacto__form {
  background: var(--graphite); padding: 44px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 18px;
}
.contacto__form h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 40px; text-transform: uppercase;
  margin: 0 0 10px; line-height: 1;
}
.contacto__form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600;
}
.contacto__form input, .contacto__form textarea {
  background: var(--black); border: 1px solid rgba(255,255,255,.12); border-radius: 4px;
  color: #fff; padding: 14px 16px; font: inherit; font-size: 15px; transition: border-color .3s;
}
.contacto__form input:focus, .contacto__form textarea:focus { outline: none; border-color: var(--red); }
.contacto__form button { align-self: flex-start; margin-top: 10px; }

/* ---------- FOOTER ---------- */
.footer { background: #050505; padding: 60px 40px 30px; border-top: 1px solid rgba(255,255,255,.06); }
.footer__top {
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand { display: flex; align-items: center; gap: 20px; max-width: 480px; }
.footer__brand img { height: 60px; }
.footer__brand p { margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.footer__links a:hover { color: var(--red); }
.footer__bottom { max-width: 1440px; margin: 24px auto 0; font-size: 12px; color: rgba(255,255,255,.5); text-align: center; }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .3s var(--ease);
  animation: bounce 3s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }

/* ---------- REVEAL ANIM ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__title .line { transform: translateY(110%); transition: transform 1s var(--ease); opacity: 1; }
.hero__title .line.is-in { transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav { padding: 14px 22px; }
  .nav.scrolled { padding: 10px 22px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 24px; gap: 18px;
    background: rgba(10,10,10,.98); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .hero, .section { padding-left: 22px; padding-right: 22px; }
  .section { padding-top: 90px; padding-bottom: 90px; }
  .nosotros__grid, .contacto__grid { grid-template-columns: 1fr; gap: 40px; }
  .service, .service--reverse { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .service--reverse .service__img { order: 0; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .bento { grid-template-columns: repeat(2,1fr); grid-auto-rows: 200px; }
  .bento__item--tall, .bento__item--wide { grid-row: auto; grid-column: auto; }
  .productos__grid { grid-template-columns: 1fr; }
  .parallax { background-attachment: scroll; }
  .footer__top { flex-direction: column; }
}
@media (max-width: 560px) {
  .hero { padding: 120px 20px 100px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .marquee__track { font-size: 16px; }
  .contacto__form { padding: 24px; }
  .contacto__form h3 { font-size: 30px; }
}
