@font-face {
  font-family: "Kiona";
  src: url("fonts/Kiona-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #E3B96A;
  --gold-pale: #ead181;
  --gold-text: #86692B; /* gold for text on white/cream: 5.2:1 and 4.8:1 (WCAG AA) */
  --cream: #F9F7F3;
  --ink: #000000;
  --body-text: #808285;
  --gray-dark: #5A5959;
  --white: #FFFFFF;
  font-family: "Lato", Arial, sans-serif;
  color: var(--body-text);
  background: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: "Kiona", Helvetica, Arial, sans-serif; font-weight: 400; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
p { margin: 0 0 16px; color: var(--body-text); line-height: 1.6; }
em { font-style: normal; color: var(--gold); }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 12px 16px; background: var(--white); z-index: 20; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 50; background: transparent; transition: background-color .35s ease, box-shadow .35s ease; }
.site-header.is-scrolled { background: var(--ink); box-shadow: 0 2px 16px rgba(0,0,0,.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--white); text-decoration: none; font-size: 14px; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-link:hover { border-bottom-color: var(--gold); }
.nav-cta { background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; padding: 12px 22px; white-space: nowrap; }
.nav-cta:hover { background: var(--gold); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); display: block; }

/* Buttons / links */
.button { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 15px 26px; font-size: 15px; }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--gray-dark); }
.text-link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }

/* Hero */
.hero { position: relative; background: var(--ink); padding-block: 176px 96px; overflow: hidden; }
.hero-video-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.45)); }
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-text); display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.15; color: var(--white); }
.hero-desc { font-size: 17px; max-width: 580px; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.hero .text-link { color: var(--white); }
.hero .eyebrow { color: var(--gold); }

/* Sections */
.section { padding-block: 72px; }
.section-alt { background: var(--cream); }
.section h2 { font-size: clamp(24px, 3vw, 34px); }
.lead { font-size: 17px; max-width: 640px; }
.placeholder-note { font-style: italic; font-size: 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.card { background: var(--white); border: 1px solid #e7e2d8; padding: 28px; }
.card-number { font-family: "Kiona", Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 400; color: var(--gold-text); }
.card h3 { font-size: 19px; margin-top: 12px; }
.card p { margin-bottom: 0; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: flex; gap: 20px; align-items: center; }
.step-number { flex: 0 0 auto; width: 40px; height: 40px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: "Kiona", Helvetica, Arial, sans-serif; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin-bottom: 0; }

.steps-wrap { margin-top: 32px; }
.steps-wrap > div { max-width: 760px; }
.steps-cta { margin-top: 32px; }
.line-list { list-style: none; margin: 0; padding: 0; }
.line-list li { color: var(--ink); padding: 10px 0; border-top: 1px solid #e7e2d8; }
.line-list li:last-child { border-bottom: 1px solid #e7e2d8; }

/* Results: with / without Renova slider + video */
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; align-items: start; }
.results-item { margin: 0; }
.results-caption { margin-top: 10px; font-size: 14px; font-style: italic; color: var(--body-text); }
.results-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.ba-slider { position: relative; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--ink); }
.ba-slider img { pointer-events: none; -webkit-user-drag: none; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-top { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-label { position: absolute; top: 12px; padding: 6px 10px; background: rgba(0,0,0,.7); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; pointer-events: none; }
.ba-label { transition: opacity .2s ease; }
.ba-label.is-hidden { opacity: 0; }
.ba-label small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.ba-label-left { left: 12px; }
.ba-label-right { right: 12px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba-range:focus-visible + .ba-handle::after { outline: 2px solid var(--gold); outline-offset: 2px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1px; background: var(--white); pointer-events: none; display: flex; align-items: center; justify-content: center; }
.ba-handle::after { content: "\2194"; position: absolute; width: 36px; height: 36px; background: var(--white); color: var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.scope-note { margin-top: 24px; font-size: 14px; font-style: italic; }
.callout { margin-top: 32px; padding: 24px 28px; background: var(--cream); border-left: 4px solid var(--gold-text); }
.callout p { margin: 0; color: var(--ink); font-size: 16px; }
.callout strong { font-weight: 700; }

/* Grid of two (sedes) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 32px; }
.sede-card p { margin-bottom: 12px; }
.hours { margin-top: 32px; max-width: 640px; }
.hours h3 { font-size: 19px; }
.hours-list { margin: 0; }
.hours-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #e7e2d8; }
.hours-list div:last-child { border-bottom: 1px solid #e7e2d8; }
.hours-list dt { font-weight: 700; color: var(--ink); }
.hours-list dd { margin: 0; color: var(--ink); text-align: right; }

/* Services: Renova + SILICA */
.service-grid { align-items: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.service-card h3 { margin: 0; }
.service-logo { height: 40px; width: auto; align-self: flex-start; }
.service-card .scope-note { margin: 0; }
.service-actions { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.gallery { position: relative; }
.gallery-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.gallery-track:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 4px; }
.gallery-track img { flex: 0 0 auto; height: 300px; width: auto; max-width: 100%; object-fit: cover; scroll-snap-align: start; background: var(--cream); }
.gallery-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.gallery-btn { width: 40px; height: 40px; border: 1px solid #e7e2d8; background: var(--white); color: var(--ink); font-size: 18px; cursor: pointer; }
.gallery-btn:hover { background: var(--ink); color: var(--white); }

/* FAQ */
.faq-list { margin-top: 32px; display: grid; gap: 12px; max-width: 760px; }
.faq-item { background: var(--white); border: 1px solid #e7e2d8; padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0; font-weight: 700; color: var(--gold-text); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 12px 0 0; }

/* Pricing */
.estimator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; align-items: stretch; }
.estimator-calc { background: var(--cream); border: 1px solid #e7e2d8; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.estimator-question { font-weight: 700; color: var(--ink); font-size: 17px; margin-bottom: 16px; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); background: var(--white); margin-bottom: 28px; }
.stepper-btn { width: 48px; height: 48px; border: 0; background: var(--white); color: var(--ink); font-size: 22px; cursor: pointer; }
.stepper-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.stepper-btn:disabled { color: #b5b5b5; cursor: not-allowed; }
.stepper-input { width: 64px; border: 0; border-inline: 1px solid var(--ink); text-align: center; font: 700 20px "Lato", Arial, sans-serif; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn:focus-visible, .stepper-input:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.estimator-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-text); margin: 0 0 6px; }
.estimator-total { font-family: "Kiona", Helvetica, Arial, sans-serif; font-size: clamp(26px, 3.2vw, 34px); color: var(--ink); line-height: 1.2; margin: 0 0 8px; }
.estimator-total small { font-size: 16px; color: var(--body-text); }
.estimator-note { font-size: 14px; margin-bottom: 24px; }
.estimator-calc .button { margin-top: auto; }
.estimator-info h3 { font-size: 19px; }
.estimator-info h3:not(:first-child) { margin-top: 32px; }
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pay-steps li { display: flex; gap: 16px; align-items: flex-start; }
.pay-steps p { margin: 0; color: var(--ink); }
.pay-steps strong { font-weight: 700; }

/* Location */
.map-placeholder { background: var(--white); border: 1px dashed #c9c2b2; min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--body-text); font-weight: 700; }
.note { font-size: 13px; font-style: italic; }

/* Final CTA */
.cta-final { background: var(--ink); text-align: center; }
.cta-final h2 { color: var(--white); margin-inline: auto; }
.cta-final p { color: #cfcfcf; margin-inline: auto; }
/* On black, the button inverts like the nav CTA: white with black text, gold on hover. */
.cta-final .button-primary { background: var(--white); color: var(--ink); }
.cta-final .button-primary:hover { background: var(--gold); }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: #cfcfcf; padding-block: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p { margin: 0; color: #cfcfcf; font-size: 14px; }
.footer-whatsapp { color: var(--gold); text-decoration: none; font-weight: 700; font-size: 14px; }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: minmax(0, 1fr); }
  .estimator { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-track img { height: 240px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: 88px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 16px; display: none; }
  .site-nav.is-open { display: flex; }
  .nav-cta { text-align: center; }
}
