:root {
  --red: #b11226;
  --black: #101010;
  --white: #fff;
  --gray: #f3f3f3;
  --line: #dadada;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Montserrat, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 68px);
  color: var(--white);
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 28px 12px 18px;
  isolation: isolate;
}
.brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 48%, rgba(255,255,255,.35) 78%, rgba(17,17,17,0) 100%);
  border-left: 4px solid var(--red);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transform: skewX(-12deg);
  transform-origin: left center;
}
.brand img { width: 180px; display: block; position: relative; z-index: 1; }
.nav { display: flex; justify-content: center; gap: 23px; flex: 1; }
.nav a, .phone, .top-access {
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.nav a.active, .nav a:hover { color: var(--red); }
.phone { white-space: nowrap; }
.top-access, .btn, .outline, .emergency a, .footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}
.top-access, .btn.red { color: var(--white); background: var(--red); }
.btn.dark { color: var(--white); border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.22); }
.menu-toggle { display: none; margin-left: auto; padding: 10px 12px; border: 1px solid rgba(255,255,255,.4); color: var(--white); background: transparent; font-weight: 900; }

.hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(22px, 5vw, 70px) 88px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.85) 42%, rgba(0,0,0,.22) 100%),
    url("assets/web-hero.png") center/cover no-repeat,
    #111;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(0deg, rgba(0,0,0,.5), transparent);
}
.hero-inner { position: relative; z-index: 2; max-width: 690px; }
.hero p, .kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero h1, section h2 {
  margin: 0;
  font-weight: 900;
  line-height: .96;
  text-transform: uppercase;
}
.hero h1 { max-width: 720px; font-size: clamp(46px, 7vw, 84px); }
.hero span { display: block; max-width: 620px; margin-top: 18px; color: rgba(255,255,255,.86); font-size: 17px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.video-dot {
  position: absolute;
  right: 16%;
  top: 40%;
  z-index: 3;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
  color: var(--white);
  background: rgba(0,0,0,.35);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.whatsapp {
  position: absolute;
  right: clamp(18px, 5vw, 68px);
  bottom: 50px;
  z-index: 4;
  padding: 17px 26px;
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); color: var(--white); background: var(--black); }
.stats article { min-height: 104px; padding: 24px 34px; border-right: 1px solid rgba(255,255,255,.12); }
.stats b { display: block; font-size: 31px; line-height: 1; }
.stats span { display: block; max-width: 140px; margin-top: 5px; font-size: 11px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }

.services, .process, .cases { padding: 62px clamp(20px, 5vw, 70px); text-align: center; }
section h2 { font-size: clamp(28px, 4vw, 48px); }
.intro { max-width: 720px; margin: 10px auto 34px; color: #666; font-size: 13px; line-height: 1.6; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; max-width: 1200px; margin: 0 auto; }
.cards article {
  position: relative;
  min-height: 356px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px 18px 42px;
  color: var(--white);
  text-align: left;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.92)), var(--img) center/cover no-repeat;
  box-shadow: 0 14px 30px rgba(0,0,0,.13);
}
.cards h3 { min-height: 44px; margin: 0 0 10px; font-size: 15px; line-height: 1.08; font-weight: 900; text-transform: uppercase; }
.cards ul { margin: 0; padding-left: 15px; font-size: 11px; line-height: 1.65; }
.cards a { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 34px; height: 34px; color: var(--white); background: var(--red); font-size: 19px; font-weight: 900; }
.outline { margin-top: 26px; color: var(--red); border: 1px solid var(--red); background: var(--white); }

.why { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 470px; color: var(--white); background: var(--black); }
.why-photo { background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.88)), url("assets/web-nosotros.png") center/cover no-repeat; }
.why-text { padding: 64px clamp(26px, 6vw, 76px); }
.why-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 30px; }
.why-icons span { min-height: 84px; display: grid; place-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.88); font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }

.emergency { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 34px clamp(20px, 5vw, 70px); color: var(--white); background: linear-gradient(90deg, #9b0c1e, var(--red)); }
.circle { display: grid; place-items: center; width: 78px; height: 78px; border: 4px solid var(--white); border-radius: 50%; font-size: 20px; font-weight: 900; }
.emergency h2, .emergency p { margin: 0; }
.emergency p { margin-top: 6px; font-weight: 800; text-transform: uppercase; }
.emergency a { color: var(--white); border: 1px solid rgba(255,255,255,.65); }

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 1120px; margin: 26px auto 0; }
.steps article { min-height: 106px; padding: 16px 10px; border-bottom: 2px solid var(--line); }
.steps b { display: block; color: var(--red); font-size: 12px; margin-bottom: 12px; }
.steps span { display: block; font-size: 11px; font-weight: 800; line-height: 1.25; }

.policies, .quote { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 24px; padding: 42px clamp(20px, 5vw, 70px); color: var(--white); background: var(--black); border-top: 4px solid var(--red); }
.policies p, .quote p { margin: 8px 0 0; color: rgba(255,255,255,.72); line-height: 1.55; }
.policy-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.policy-list span { padding: 14px; border: 1px solid rgba(255,255,255,.14); font-size: 11px; font-weight: 900; text-align: center; text-transform: uppercase; }

.brands-map { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands, .coverage { padding: 54px clamp(20px, 5vw, 70px); }
.brands { border-right: 1px solid var(--line); }
.brands div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.brands span { padding: 14px 10px; color: var(--red); background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 900; text-align: center; text-transform: uppercase; }
.map { position: relative; min-height: 310px; margin-top: 18px; overflow: hidden; border: 1px solid #c8c8c8; background: #ddd; }
.map iframe { width: 100%; height: 310px; border: 0; filter: grayscale(.65) contrast(1.08); }
.zone { position: absolute; left: 44%; top: 48%; width: 150px; height: 98px; transform: translate(-50%, -50%) rotate(-9deg); background: rgba(177,18,38,.7); clip-path: polygon(12% 40%, 34% 15%, 56% 25%, 74% 7%, 94% 42%, 76% 72%, 46% 92%, 20% 78%); pointer-events: none; }
.map strong { position: absolute; left: 44%; top: 68%; transform: translateX(-50%); padding: 7px 10px; color: var(--white); background: var(--red); font-size: 10px; text-transform: uppercase; }

.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; max-width: 1120px; margin: 24px auto 0; }
.case-grid article { min-height: 184px; padding: 118px 13px 14px; color: var(--white); text-align: left; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.86)), url("assets/web-casos.png") center/cover no-repeat; border-bottom: 4px solid var(--red); }
.case-grid b, .case-grid span { display: block; }
.case-grid b { font-size: 13px; text-transform: uppercase; }
.case-grid span { margin-top: 5px; color: rgba(255,255,255,.76); font-size: 11px; font-weight: 700; }

.quote h2, .policies h2 { margin: 0; }
.footer { display: grid; grid-template-columns: 1.1fr .8fr 1.3fr .9fr; gap: 26px; padding: 42px clamp(20px, 5vw, 70px); color: var(--white); background: var(--black); border-top: 4px solid var(--red); }
.footer img { width: 168px; }
.footer p, .footer span { display: block; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.65; }
.footer b { display: block; margin-bottom: 12px; font-size: 12px; text-transform: uppercase; }
.footer button { width: 100%; margin-top: 14px; color: var(--white); background: var(--red); }

.access-modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px; }
.access-modal.open { display: grid; }
.shade { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.72); cursor: pointer; }
.access-box { position: relative; z-index: 1; width: min(92vw, 390px); padding: 30px 26px 26px; border-top: 6px solid var(--red); color: var(--black); text-align: center; background: var(--white); box-shadow: 0 24px 90px rgba(0,0,0,.55); }
.access-box h2 { margin: 0 0 8px; font-size: 36px; line-height: 1; font-weight: 900; text-transform: uppercase; }
.access-box p { margin: 0 0 22px; color: #555; font-size: 14px; font-weight: 700; }
.access-box a { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 10px; color: var(--white); background: var(--black); font-size: 14px; font-weight: 900; text-transform: uppercase; }
.access-box a:first-of-type { background: var(--red); }
.access-x { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; color: var(--black); background: transparent; font-size: 22px; font-weight: 900; cursor: pointer; }

@media (max-width: 1060px) {
  .topbar { position: static; background: var(--black); flex-wrap: wrap; }
  .nav { order: 5; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .cards, .stats, .steps, .case-grid, .footer { grid-template-columns: repeat(2, 1fr); }
  .why, .brands-map, .policies, .quote { grid-template-columns: 1fr; }
  .brands { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 660px) {
  .phone, .top-access { display: none; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; }
  .topbar.open .nav { display: grid; gap: 14px; }
  .brand { padding: 10px 20px 10px 14px; }
  .brand img { width: 142px; }
  .hero { min-height: 560px; padding-top: 64px; background: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.72)), url("assets/web-hero.png") center/cover no-repeat, #111; }
  .video-dot { display: none; }
  .whatsapp { left: 18px; right: 18px; text-align: center; }
  .cards, .stats, .steps, .case-grid, .footer, .brands div, .policy-list { grid-template-columns: 1fr; }
}
