/* Edgewater 335EX Express 2013 — edgewater335.es
   Hoja de estilo única, sin frameworks ni dependencias externas. */

:root {
  --deep: #1d5f8f;
  --mid: #2a76ad;
  --light: #58a6d8;
  --ink: #22303c;
  --body: #4a5b68;
  --muted: #8a9aa8;
  --line: #dde5ec;
  --bg: #f5f7f9;
  --white: #ffffff;
  --sand: #f7f2e8;
  --wa: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  --tg: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  --radius: 14px;
  --shadow: 0 6px 24px rgba(29, 95, 143, .12);
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, strong, th { color: var(--ink); }
h1 { font-size: clamp(1.75rem, 6vw, 2.7rem); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.35rem, 4.2vw, 1.9rem); line-height: 1.25; margin: 0 0 .6em; }
h3 { font-size: 1.05rem; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

a { color: var(--mid); }
a:hover { color: var(--deep); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  min-height: 60px;
}
.brand { font-weight: 700; color: var(--deep); text-decoration: none; font-size: .95rem; letter-spacing: .01em; }
.brand span { color: var(--muted); font-weight: 500; }
.lang-switcher { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lang-switcher a {
  display: block; padding: 6px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--mid); text-decoration: none; border: 1px solid var(--line);
}
.lang-switcher a[aria-current="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--deep) 0%, var(--mid) 100%); color: #fff; }
.hero .wrap { padding-top: 40px; padding-bottom: 32px; }
.hero h1, .hero strong { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: rgba(255, 255, 255, .78); margin-bottom: .6em; }
.lede { font-size: 1.06rem; max-width: 46em; color: rgba(255, 255, 255, .92); }
.price { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; color: #fff; margin: 1.1em 0 .2em; }
.price small { display: block; font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .75); }
.price .neg { font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .85); }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; }

/* ---------- Botones ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem;
  color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow);
}
.btn:hover { color: #fff; filter: brightness(1.06); }
.btn-wa { background: var(--wa); }
.btn-tg { background: var(--tg); }
.btn-plain { background: var(--deep); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Secciones ---------- */
section { padding: 44px 0; }
section:nth-of-type(even) { background: var(--white); }
.section-note { color: var(--muted); font-size: .9rem; }

/* ---------- Cifras clave ---------- */
.keyfigures {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0; padding: 0; list-style: none;
}
.keyfigures li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.keyfigures strong { display: block; font-size: 1.15rem; line-height: 1.3; }
.keyfigures span { font-size: .82rem; color: var(--muted); }

/* ---------- Listas de equipamiento ---------- */
.cols { display: grid; gap: 26px; grid-template-columns: 1fr; }
.highlights { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 26px; padding: 0; list-style: none; }
.highlights li {
  background: var(--white); border-left: 4px solid var(--light);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.highlights strong { display: block; font-size: 1.02rem; margin-bottom: .15em; }
.highlights span { font-size: .92rem; }

ul.checklist { margin: 0; padding: 0; list-style: none; }
ul.checklist li { position: relative; padding-left: 26px; margin-bottom: .55em; font-size: .95rem; }
ul.checklist li::before {
  content: ""; position: absolute; left: 6px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--light);
}
ol.checklist { margin: 0; padding-left: 1.2em; }
ol.checklist li { margin-bottom: .6em; }

.extras {
  background: var(--sand); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 24px;
}
.extras p:last-child { margin-bottom: 0; }

/* ---------- Tabla de especificaciones ---------- */
table.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.specs caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: .8em; }
table.specs th, table.specs td { padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.specs th { width: 46%; font-weight: 600; }
table.specs td span.muted { color: var(--muted); }

/* ---------- Galería ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.gallery img { width: 100%; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery button.doc img { object-fit: contain; background: #eef2f5; }

/* ---------- Vídeo ---------- */
.videos { display: grid; gap: 20px; grid-template-columns: 1fr; }
.videos figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.videos video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.videos figcaption { padding: 10px 14px; font-size: .88rem; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-card .field { margin-bottom: 14px; }
.contact-card label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.contact-card input, .contact-card textarea {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd;
}
.contact-card input:focus, .contact-card textarea:focus { outline: 2px solid var(--light); outline-offset: 1px; border-color: var(--light); }
.contact-card .btn-row { margin-top: 6px; }
.form-hint { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.contact-list { list-style: none; margin: 0 0 22px; padding: 0; }
.contact-list li { margin-bottom: .7em; }
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a { font-size: 1.05rem; font-weight: 600; text-decoration: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 48px 16px 24px; background: rgba(8, 26, 40, .94);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 8px; }
.lightbox figcaption { color: #fff; font-size: .9rem; text-align: center; }
.lightbox-close, .lightbox-nav {
  position: absolute; border: 0; border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.3rem; line-height: 1;
  color: #fff; background: rgba(255, 255, 255, .16); cursor: pointer;
}
.lightbox-close { top: 12px; right: 12px; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, .3); }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 32px 0; font-size: .9rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--light); }
.site-footer .foot-row { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.site-footer .lang-switcher a { border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); }
.site-footer .lang-switcher a[aria-current="true"] { background: var(--light); border-color: var(--light); color: var(--ink); }

/* ---------- Accesibilidad ---------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Redirección (index.html) ---------- */
.lang-landing { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.lang-landing ul { list-style: none; margin: 1.5em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Escritorio ---------- */
@media (min-width: 640px) {
  .keyfigures { grid-template-columns: repeat(3, 1fr); }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .videos { grid-template-columns: repeat(3, 1fr); }
  section { padding: 56px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 44px; }
}

@media (min-width: 900px) {
  .keyfigures { grid-template-columns: repeat(6, 1fr); }
  .cols { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
}
