/* Perforaciones Rocca — styles
   Palette pulled from the brand: basalt black, rig yellow, logo water-drop blue. */

:root {
  --basalt: #0E0F0D;
  --basalt-2: #161814;
  --basalt-3: #20231E;
  --bone: #F2EEE5;
  --paper: #FBF9F4;
  --rule: #DCD4C3;
  --ink: #15160F;
  --ink-2: #4F5148;
  --white-80: rgba(255, 255, 255, .82);
  --white-60: rgba(255, 255, 255, .62);
  --line-dark: rgba(255, 255, 255, .14);
  --yellow: #F4B41A;
  --water: #2377BE;
  --water-hi: #3E9BDC;
  --wa: #25D366;
  --wa-hi: #3BE07A;
  --wa-ink: #062A14;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --hdr-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr-h); }
body {
  margin: 0;
  background: var(--basalt);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.svg-cond { font-family: var(--f-sans); font-stretch: 85%; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-weight: 800;
  font-stretch: 80%;
  text-transform: uppercase;
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: .96;
  letter-spacing: -.005em;
  max-width: 17ch;
  text-wrap: balance;
}
.display--md { font-size: clamp(36px, 5.4vw, 70px); max-width: 16ch; margin-inline: auto; }
.h2 {
  font-weight: 800;
  font-stretch: 82%;
  text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1;
  max-width: 22ch;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--white-80); max-width: 52ch; }
.body-l { font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.6; max-width: 56ch; margin-top: 20px; }
.sec--dark .body-l { color: var(--white-80); }
.muted { color: var(--ink-2); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-weight: 500; font-size: clamp(11px, 1vw, 12px); letter-spacing: clamp(.08em, .6vw, .14em); text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.eyebrow--light { color: var(--white-80); }
/* yellow tag carrying the ridge line from the logo */
.tag {
  flex: none; display: inline-grid; place-items: center;
  width: 36px; height: 22px; border-radius: 5px;
  background: var(--yellow); color: var(--ink);
}
.tag svg { width: 24px; height: 8.3px; }

/* ---------- WhatsApp pill (the one CTA) ---------- */
.wa-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: var(--wa-ink);
  font-weight: 700; font-size: 16.5px; letter-spacing: .01em; text-decoration: none;
  padding: 14px 26px 14px 18px; border-radius: 999px;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .55), inset 0 -2px 0 rgba(0,0,0,.12);
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.wa-pill svg { width: 22px; height: 22px; flex: none; }
.wa-pill:hover { background: var(--wa-hi); transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(37, 211, 102, .6), inset 0 -2px 0 rgba(0,0,0,.12); }
.wa-pill:active { transform: translateY(0); }
.wa-pill--sm { font-size: 14.5px; padding: 9px 16px 9px 12px; gap: 8px; box-shadow: 0 6px 18px -8px rgba(37, 211, 102, .6); }
.wa-pill--sm svg { width: 18px; height: 18px; }
.wa-pill--lg { font-size: 19px; padding: 18px 34px 18px 24px; gap: 12px; }
.wa-pill--lg svg { width: 26px; height: 26px; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hdr-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid {
  background: rgba(14, 15, 13, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-dark);
}
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__mark { height: 34px; width: auto; aspect-ratio: 670 / 378; }
.brand__sub {
  font-family: var(--f-mono); font-size: 10.5px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white-80); padding-left: 12px; border-left: 1px solid var(--line-dark);
}
.brand__sub span { color: var(--white-60); }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--white-80); transition: color .2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--yellow); transition: right .25s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after { right: 0; }
.hdr__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.lang a {
  text-decoration: none; padding: 5px 9px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; color: var(--white-80);
  transition: background-color .2s, color .2s;
}
.lang a[aria-current="page"] { background: #fff; color: var(--ink); }
.lang a:not([aria-current]):hover { color: #fff; }
@media (max-width: 459px) { .brand__sub { display: none; } }
@media (min-width: 1040px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(660px, 100svh);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--hdr-h) + clamp(28px, 6vh, 64px));
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; animation: settle 2.2s var(--ease) both; }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,15,13,.82) 0%, rgba(14,15,13,.6) 40%, rgba(14,15,13,.5) 62%, rgba(14,15,13,.94) 100%);
}
.hero__in { padding-bottom: 32px; }
.hero .lead { margin-top: 22px; }
.hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.hero__note { font-size: 11.5px; color: var(--white-60); }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,.22);
  margin-bottom: clamp(20px, 4vh, 40px);
}
.stats > div { padding: 16px 0 4px; }
.stats > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line-dark); }
.stats dt { font-size: 10.5px; color: var(--white-60); }
.stats dd { font-weight: 800; font-stretch: 80%; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; color: #fff; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }

@media (min-width: 768px) {
  .hero { min-height: clamp(680px, 100svh, 980px); }
  .hero__bg img { object-position: 50% 62%; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(14,15,13,.9) 0%, rgba(14,15,13,.62) 38%, rgba(14,15,13,.08) 70%),
      linear-gradient(0deg, rgba(14,15,13,.92) 0%, rgba(14,15,13,0) 34%),
      linear-gradient(180deg, rgba(14,15,13,.6) 0%, rgba(14,15,13,0) 22%);
  }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div { padding: 20px 0 6px 22px; border-left: 1px solid var(--line-dark); }
  .stats > div:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Towns marquee ---------- */
.towns { background: var(--basalt-2); overflow: hidden; }
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--basalt) 14px 28px); }
.towns__row { display: flex; width: max-content; padding: 18px 0; }
.towns__track { display: flex; flex: none; animation: marquee 70s linear infinite; }
.towns__track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-weight: 700; font-stretch: 82%; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; color: var(--white-80);
  white-space: nowrap;
}
.towns__track span::after { content: ""; width: 7px; height: 7px; background: var(--yellow); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(76px, 10vw, 140px); position: relative; }
.sec--bone { background: var(--bone); color: var(--ink); }
.sec--dark { background: var(--basalt); color: #fff; }
.sec__head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Benefits */
.ben { display: grid; gap: 16px; grid-template-columns: 1fr; }
.ben__card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px 26px 30px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.ben__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(21,22,15,.35); border-color: #CFC5B0; }
.ben__icon {
  width: 52px; height: 52px; padding: 12px; border-radius: 12px; background: var(--basalt);
  fill: none; stroke: var(--yellow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 26px;
}
.ben__card h3 { font-weight: 700; font-stretch: 88%; font-size: 23px; line-height: 1.15; margin-bottom: 10px; }
.ben__card p { color: var(--ink-2); font-size: 16px; }
@media (min-width: 640px) { .ben { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .ben { grid-template-columns: repeat(4, 1fr); } }

/* Promise */
.promise__grid { display: grid; gap: 44px; }
.promise__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.promise__img figcaption { font-size: 11px; color: var(--white-60); margin-top: 12px; }
.checks { margin-top: 32px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line-dark); font-size: 17px; color: var(--white-80); }
.checks li:last-child { border-bottom: 1px solid var(--line-dark); }
.checks svg { width: 28px; height: 28px; flex: none; color: var(--ink); background: var(--yellow); border-radius: 50%; padding: 5px; margin-top: -2px; }
@media (min-width: 960px) {
  .promise__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
  .promise__img img { aspect-ratio: 4 / 5; }
}

/* Services */
.srv { display: grid; gap: 40px; }
.srv__h { font-size: 12px; color: var(--ink-2); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.srv__list li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
/* same icon tile language as the benefit cards and process steps */
.srv__ic {
  flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--basalt);
  fill: none; stroke: var(--yellow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
/* "Y además te damos": green checks, boxed at the tile size so rows line up with the other column */
.srv__check { flex: none; width: 46px; height: 46px; padding: 8px; color: #1F9D4C; }
.srv__list li > span { font-weight: 600; font-stretch: 86%; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.2; }
@media (min-width: 860px) { .srv { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Rigs */
.rigs { display: grid; gap: 44px; }
.rigs__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.rig { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--basalt-3); }
.rig:nth-child(2) { margin-top: 48px; }
.rig img, .rig video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.rig figcaption { position: absolute; top: 12px; left: 12px; }
.rig figcaption span, .reel figcaption {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,15,13,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 11px; padding: 6px 11px; border-radius: 999px;
}
.rig figcaption span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
@media (min-width: 960px) {
  .rigs { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
  .rigs__media { gap: 20px; }
  .rig:nth-child(2) { margin-top: 80px; }
}

/* Process */
.steps { display: grid; gap: 0 56px; counter-reset: step; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--rule); }
.step__n {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  background: var(--basalt); color: var(--yellow); font-size: 14px; letter-spacing: .04em;
}
.step h3 { font-weight: 700; font-stretch: 86%; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.15; margin: 6px 0 8px; }
.step p { color: var(--ink-2); font-size: 16.5px; max-width: 46ch; }
@media (min-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Reels */
.ig-link { display: inline-flex; align-items: center; gap: 10px; color: var(--white-80); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.ig-link svg { width: 20px; height: 20px; }
.ig-link:hover { color: #fff; border-color: var(--yellow); }
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; border-radius: 16px; overflow: hidden; background: var(--basalt-3); scroll-snap-align: start; }
.reel video, .reel img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.reel figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; }
@media (min-width: 600px) { .reels { grid-auto-columns: 42%; } }
@media (min-width: 960px) {
  .reels { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 18px; }
  .reel:nth-child(even) { margin-top: 40px; }
}

/* FAQ */
.faq { display: grid; gap: 8px; }
.qa { border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-weight: 600; font-stretch: 88%; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 26px; height: 26px; flex: none; padding: 4px; border-radius: 50%; background: var(--ink); color: var(--bone); transition: transform .3s var(--ease), background-color .2s; }
.qa[open] summary svg { transform: rotate(45deg); background: var(--yellow); color: var(--ink); }
.qa summary:hover svg { background: var(--yellow); color: var(--ink); }
.qa p { color: var(--ink-2); font-size: 17px; max-width: 62ch; padding: 0 44px 24px 0; }
@media (min-width: 960px) {
  .faq { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .faq .sec__head { position: sticky; top: calc(var(--hdr-h) + 32px); }
}

/* Final CTA — at the bottom of the bore: water */
.final {
  background: radial-gradient(120% 90% at 50% 0%, var(--water-hi) 0%, var(--water) 38%, #123F6E 100%);
  color: #fff; text-align: center; overflow: hidden; isolation: isolate;
}
.final__ridge { position: absolute; z-index: -1; left: 50%; top: 18%; width: min(1500px, 160vw); height: auto; aspect-ratio: 640 / 180; transform: translateX(-50%); color: rgba(255,255,255,.1); }
.final__in { display: flex; flex-direction: column; align-items: center; }
.final .eyebrow { justify-content: center; }
.final .lead { margin: 22px auto 36px; color: rgba(255,255,255,.9); }

/* Footer */
.ftr { background: var(--basalt); color: var(--white-80); padding-top: 64px; }
.ftr__in { display: grid; gap: 44px; padding-bottom: 48px; }
.ftr__logo { width: 190px; height: auto; color: #fff; }
.ftr__cols { display: grid; gap: 32px; }
.ftr h3 { font-size: 11.5px; color: var(--white-60); margin-bottom: 14px; }
.ftr a, .ftr p { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; margin-bottom: 10px; }
.ftr a:hover { color: #fff; }
.ftr svg:not(.ftr__logo) { width: 18px; height: 18px; flex: none; color: var(--yellow); }
.ftr__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 11px; color: var(--white-60); }
.ftr__base a { font-size: inherit; margin: 0; }
.ftr__base a:hover { color: #fff; }
@media (min-width: 860px) {
  .ftr__in { grid-template-columns: 260px 1fr; align-items: start; }
  .ftr__cols { grid-template-columns: repeat(3, 1fr); }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .towns__row { width: auto; }
  .towns__track { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding-inline: var(--gutter); }
  .towns__track[aria-hidden="true"] { display: none; }
}
