/* Reset & Base */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; font-family:Arial, Helvetica, sans-serif; background:#000; color:#fff; }
a { color:#ffd700; text-decoration:none; }
a:hover { text-decoration:underline; }
.container { max-width:1100px; margin:0 auto; padding:0 20px; }

/* Navbar (single row; scrolls on small screens) */
.navbar{
  width:100%;
  padding:15px;
  background:rgba(0,0,0,.7);
  display:flex;
  align-items:center;
  justify-content:space-between;      /* keep one row */
  gap:12px;
  font-size:1.05em;
  position:sticky; top:0; z-index:9;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.navbar a{ color:#fff; transition:color .3s; }
.navbar a:hover{ color:#ffd700; }

.nav-links{
  display:flex;
  gap:16px;
  flex:1 1 auto;      /* allow shrink */
  min-width:0;        /* enable overflow */
  overflow-x:auto;    /* single-row horizontal scroll on small screens */
  white-space:nowrap;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.nav-links::-webkit-scrollbar{ display:none; } /* hide scrollbar on mobile */

/* Language segmented toggle (EN/ES) */
.lang-toggle{
  --seg-bg:rgba(255,255,255,.06);
  --seg-border:rgba(255,255,255,.18);
  --seg-active:#ffd700;
  --seg-text:#fff;
  --seg-text-active:#000;

  position:relative;
  display:inline-grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  border:1px solid var(--seg-border);
  background:var(--seg-bg);
  border-radius:999px;
  padding:4px;
  user-select:none;
}
.lang-toggle input{ position:absolute; opacity:0; pointer-events:none; }
.lang-toggle label{
  position:relative; z-index:2;
  text-align:center; padding:6px 12px;
  font-weight:700; min-width:44px;
  color:var(--seg-text); cursor:pointer; border-radius:999px;
  transition:color .15s ease;
}
.lang-toggle .segmented-highlight{
  position:absolute; z-index:1; top:4px; bottom:4px; left:4px; width:calc(50% - 4px);
  border-radius:999px; background:var(--seg-active);
  box-shadow:0 2px 10px rgba(255,215,0,.25);
  transition:transform .18s ease;
}
#lang-en:checked ~ label[for="lang-en"]{ color:var(--seg-text-active); }
#lang-es:checked ~ label[for="lang-es"]{ color:var(--seg-text-active); }
#lang-es:checked ~ .segmented-highlight{ transform:translateX(100%); }
.lang-toggle label:focus-visible{ outline:2px solid #ffd700; outline-offset:2px; }

/* Hero */
.hero{
  display:flex; align-items:center; justify-content:center;
  min-height:60vh; text-align:center;
  background:radial-gradient(80% 80% at 50% 0%, rgba(255,255,255,.08), rgba(0,0,0,.4) 60%), #000;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.hero-inner{ padding:60px 20px; }
.kicker{ letter-spacing:.08em; text-transform:uppercase; opacity:.8; font-size:.9em; }
.title{ font-size:2.4rem; line-height:1.15; margin:10px auto; max-width:820px; }
.subtitle{ font-size:1.1rem; opacity:.9; margin:0 auto 24px; max-width:780px; }
.cta-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:10px; }
.btn{ padding:12px 18px; border:1px solid #ffd700; color:#000; background:#ffd700; border-radius:6px; font-weight:bold; }
.btn.secondary{ background:transparent; color:#ffd700; }
.hero-media{ margin:24px auto 0; max-width:900px; border:1px dashed rgba(255,255,255,.25); border-radius:12px; opacity:.9; }

/* Sections */
section{ padding:64px 0; background:#000; }
section.alt{ background:#0b0b0b; }
.section-title{ font-size:1.8rem; margin-bottom:12px; }
.section-sub{ opacity:.85; margin-bottom:24px; }

/* Steps */
.steps{
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:18px; margin-top:18px;
}
.step-card{
  border:1px solid rgba(255,255,255,.12); border-radius:10px; padding:16px;
  background:rgba(255,255,255,.02); text-align:center;
}
.step-card img{ max-width:100%; border-radius:8px; margin-bottom:10px; opacity:.9; }
.step-title{ font-weight:bold; margin-bottom:6px; }
.step-text{ opacity:.85; font-size:.95rem; }

/* Benefits */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.card{
  border:1px solid rgba(255,255,255,.12); border-radius:10px; padding:18px;
  background:rgba(255,255,255,.02);
}
.list{ margin-top:10px; }
.list li{ margin-left:18px; margin-bottom:8px; }

/* Specs & Media */
.specs{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:16px; }
.spec{
  border:1px solid rgba(255,255,255,.12); border-radius:10px; padding:14px;
  background:rgba(255,255,255,.02); text-align:center;
}
.spec .label{ opacity:.75; font-size:.85rem; }
.spec .value{ font-weight:bold; margin-top:6px; }
.media-split{ display:grid; grid-template-columns:1.2fr 1fr; gap:24px; align-items:center; }
.media-box{
  border:1px dashed rgba(255,255,255,.25); border-radius:12px;
  height:600px; display:flex; align-items:center; justify-content:center; opacity:.9;
}
.coverage{
  border:1px dashed rgba(255,255,255,.25); border-radius:12px;
  height:320px; display:flex; align-items:center; justify-content:center; opacity:.9;
}

/* Coverage segmented control (SF first) */
.segmented{
  --seg-bg:rgba(255,255,255,.06);
  --seg-border:rgba(255,255,255,.18);
  --seg-active:#ffd700;
  --seg-text:#fff;
  --seg-text-active:#000;

  position:relative; display:inline-grid; grid-template-columns:1fr 1fr; align-items:center;
  border:1px solid var(--seg-border); background:var(--seg-bg); border-radius:999px;
  padding:4px; user-select:none; margin-bottom:12px;
}
.segmented input{ position:absolute; opacity:0; pointer-events:none; }
.segmented label{
  position:relative; z-index:2; text-align:center; padding:8px 16px; font-weight:700;
  color:var(--seg-text); cursor:pointer; border-radius:999px; transition:color .15s ease;
}
.segmented .segmented-highlight{
  position:absolute; z-index:1; top:4px; bottom:4px; left:4px; width:calc(50% - 4px);
  border-radius:999px; background:var(--seg-active); box-shadow:0 2px 10px rgba(255,215,0,.25);
  transition:transform .18s ease;
}
/* Color active label text (JS moves the highlight; these keep text readable) */
#mv:checked ~ label[for="mv"]{ color:var(--seg-text-active); }
#sf:checked ~ label[for="sf"]{ color:var(--seg-text-active); }
/* If you rely on CSS-only highlight, this line moves it; JS will override via inline transform */
#sf:checked ~ .segmented-highlight{ transform:translateX(100%); }
.segmented label:focus-visible{ outline:2px solid #ffd700; outline-offset:2px; }

/* CTA + Footer */
.cta{ text-align:center; padding:56px 0; border-top:1px solid rgba(255,255,255,.08); }
.footer{ font-size:.95rem; padding:28px 0; text-align:center; color:#ddd; opacity:.9; }

/* Guarantee */
.guarantee{
  background:#101010; padding:50px 0;
  border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08);
  text-align:center;
}
.guarantee-box{
  max-width:800px; margin:0 auto;
  border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.05);
  border-radius:12px; padding:30px 25px;
}
.guarantee-title{ color:#ffd700; font-size:1.6rem; margin-bottom:15px; }
.guarantee-text{ font-size:1rem; line-height:1.6; opacity:.95; }
.guarantee-note{ font-size:.9rem; opacity:.8; margin-top:12px; }

/* Responsive */
@media(max-width:900px){
  .navbar{ padding:12px; }
  .nav-links{ gap:12px; }
  .steps{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .specs{ grid-template-columns:1fr 1fr; }
  .media-split{ grid-template-columns:1fr; }
  .hero-media{ height:220px; }
}

@media(max-width:600px){
  .navbar{ font-size:0.98em; }
  .nav-links{ gap:10px; }
  .media-box{ height:auto; }
  #mercuryVideo{ width:100%; height:auto; object-fit:contain !important; }
}

/* --- Video wrapper --- */
.video-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  /* Keeps height on mobile so the video isn't 0px tall */
  aspect-ratio: 16 / 9;
}

/* --- Overlay play button --- */
.video-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(0,0,0,0.7);
  color: #fff;
  cursor: pointer;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

/* Optional: show overlay on keyboard focus */
.video-overlay:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
