/* Roofing Solutions Pro — estilo industrial (rojo/negro), efecto glass */
:root {
  --red: #da2324;
  --red-dark: #a81b1c;
  --ink: #0b0b0c;
  --ink-2: #141416;
  --steel: #2a2c31;
  --text: #f4f4f5;
  --muted: #a6a8ad;
  --line: rgba(255, 255, 255, .14);
  --glass: rgba(18, 18, 20, .42);
  --glass-strong: rgba(14, 14, 16, .66);
  --glass-hi: rgba(255, 255, 255, .08);
  --radius: 4px;
  --wrap: 1240px;
  --head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55;
  color: var(--text); background: var(--ink); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Fondo de video fijo ---------- */
.bg-video { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #111; }
.bg-video::before { content: ""; position: absolute; inset: -4%; background: url("../img/hero-poster.jpg") center/cover no-repeat; animation: kenburns 32s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
.bg-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.bg-video video.is-on { opacity: 1; }
.bg-video__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,9,.88) 0%, rgba(8,8,9,.55) 45%, rgba(8,8,9,.25) 100%),
    linear-gradient(0deg, rgba(8,8,9,.9) 0%, transparent 40%);
}
.bg-video__grain {
  position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 4px);
}

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(135deg, var(--glass-hi), transparent 60%), var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
}

/* ---------- Topbar ---------- */
.topbar { background: var(--red); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { text-decoration: none; opacity: .92; }
.topbar__links a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.55);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.header.is-scrolled { background: rgba(10,10,11,.85); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font-family: var(--head); font-weight: 800; font-size: 19px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 3px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-weight: 900; font-size: 19px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: #fff; border: 2px solid transparent; padding: 15px 30px; cursor: pointer;
  border-radius: var(--radius); transition: background .2s, transform .2s var(--ease), border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--red-dark); }
.btn--glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 20px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-family: var(--head); font-weight: 800; font-size: 16px; letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--red); }
.h2 {
  font-family: var(--head); font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(44px, 7vw, 92px); line-height: .9; letter-spacing: -.01em; margin: 0;
}
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 110px); display: flex; align-items: center; position: relative; padding: 80px 0 110px; }
.hero__title {
  font-family: var(--head); font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(56px, 11vw, 150px); line-height: .84; letter-spacing: -.015em; margin: 0 0 26px;
  text-shadow: 0 6px 40px rgba(0,0,0,.5);
}
.hero__title span { color: var(--red); }
.hero__lead { max-width: 540px; font-size: clamp(17px, 1.6vw, 21px); color: #dcdcde; margin: 0 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Stats ---------- */
.stats { padding: 0 0 40px; }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 26px 24px; border-top: 4px solid var(--red); }
.stat strong { display: block; font-family: var(--head); font-weight: 900; font-style: italic; font-size: 54px; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section--dark { background: rgba(8,8,9,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.section__head { margin-bottom: 48px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 34px 28px 38px; position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--red); transition: width .4s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: rgba(218,35,36,.6); }
.card:hover::before { width: 100%; }
.card__num { font-family: var(--head); font-weight: 900; font-style: italic; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.card h3 { font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 18px 0 12px; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Carrusel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 10px; scrollbar-width: none; outline: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(72vw, 360px); margin: 0; scroll-snap-align: center; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--steel); }
.slide figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 20px 20px; background: linear-gradient(0deg, rgba(8,8,9,.92), transparent); }
.slide figcaption b { display: block; font-family: var(--head); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 24px; line-height: 1; }
.slide figcaption span { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: grayscale(.35) contrast(1.05); }
.slide:hover img, .slide.is-active img { transform: scale(1.04); filter: none; }
.slide::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.slide.is-active::after { transform: scaleX(1); }
.carousel__ctrl { display: flex; gap: 10px; }
.ctrl { width: 54px; height: 54px; border: 2px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); color: #fff; font-size: 22px; cursor: pointer; border-radius: var(--radius); transition: background .2s, border-color .2s; }
.ctrl:hover { background: var(--red); border-color: var(--red); }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.carousel__dots button { width: 30px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.25); cursor: pointer; transition: background .2s, width .2s; }
.carousel__dots button[aria-selected="true"] { background: var(--red); width: 54px; }
.link-ig { display: inline-block; margin-top: 34px; font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 4px; }

/* ---------- Split / checks ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.checks { list-style: none; margin: 0; padding: 14px 32px; }
.checks li { padding: 22px 0 22px 44px; position: relative; border-bottom: 1px solid var(--line); color: #d6d6d9; }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 26px; width: 22px; height: 12px; border-left: 4px solid var(--red); border-bottom: 4px solid var(--red); transform: rotate(-45deg); }
.checks b { color: #fff; font-family: var(--head); font-size: 21px; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Formulario ---------- */
.form { padding: clamp(24px, 4vw, 40px); }
.field { margin: 0 0 20px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; margin-bottom: 8px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 14px 16px; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: rgba(0,0,0,.5); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff5a5a; }
.field--radio { display: flex; flex-wrap: wrap; gap: 12px; }
.field--radio legend { width: 100%; }
.radio { flex: 1 1 140px; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span { display: block; text-align: center; padding: 13px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); font-family: var(--head); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; transition: all .2s; }
.radio input:checked + span { background: var(--red); border-color: var(--red); }
.radio input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { margin: 18px 0 0; min-height: 1.4em; font-weight: 600; }
.form__msg.is-ok { padding: 16px 18px; background: rgba(34,160,90,.18); border-left: 4px solid #22a05a; }
.form__msg.is-err { color: #ff8a8a; }

.social { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; max-width: 360px; }
.social__btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; font-weight: 600; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.05); transition: background .2s, border-color .2s; }
.social__btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.social__btn--wa:hover { background: #1fa855; border-color: #1fa855; }
.social__btn--ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: transparent; }

/* ---------- Footer ---------- */
.footer { background: #050506; border-top: 4px solid var(--red); padding: 48px 0; }
.footer__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.footer img { height: 70px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.footer nav a { text-decoration: none; font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.footer nav a:hover { color: var(--red); }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #1fa855; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats__in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topbar__msg { display: none; }
  .topbar__in { justify-content: center; }
  .burger { display: block; z-index: 2; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(8,8,9,.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 34px; }
  .split { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .cards, .stats__in { grid-template-columns: 1fr; }
  .brand img { height: 48px; }
  .topbar__links { gap: 14px; font-size: 11px; }
  .topbar__links a[href^="mailto"] { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .slide { flex-basis: 78vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
