/* =====================================================================
   GOES · Ficha de modelo · CSS según Figma (WEB CFMOTO → GOES → ACTUALIZADO)
   Claude · 2026-10-08
   Base de diseño: frame PC de 1728 px. Las medidas usan clamp() para que
   a 1728 coincidan con el Figma y escalen hacia abajo.
   ===================================================================== */

/* ---------- tokens ---------- */
.goes-modelo {
  --orange: #FF6A1F;
  --bg: #F5F7F8;
  --panel: #F5F7F8;
  --pill: #DCDBE0;
  --text: #0B0B0B;
  --muted: #6B6B74;
  --line: #CFCFD6;
  --footer: #DCDBE0;
  --form: #DCDBE0;

  --font-head: "Helvetica Neue LT Pro", "HelveticaNeueLTPro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue LT Pro", "HelveticaNeueLTPro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "GOES Display", "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 6vw, 104px);   /* 104 px a 1728 */
  --wrap: 1520px;                       /* 1728 − 2·104 */
  --corner: clamp(32px, 3.7vw, 64px);  /* esquina recortada 64 px a 1728 */
  --sq: clamp(28px, 2.8vw, 48px);      /* cuadrado naranja 48 px a 1728 */

  --h1: clamp(40px, 3.7vw, 64px);
  --h2: clamp(28px, 2.8vw, 48px);
  --p:  clamp(14px, .93vw, 16px);

  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--p);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.goes-modelo.goes-dark {
  --bg: #000203;
  --panel: #000203;
  --pill: #2A2E38;
  --text: #FFFFFF;
  --muted: #A7A7B2;
  --line: #2A2E38;
}

/* reset mínimo dentro de la ficha */
.goes-modelo *, .goes-modelo *::before, .goes-modelo *::after { box-sizing: border-box; }
/* resets con :where() → especificidad 0, no pisan las clases de los componentes */
:where(.goes-modelo) :where(img) { max-width: 100%; height: auto; display: block; }
:where(.goes-modelo) :where(a) { color: inherit; text-decoration: none; }
:where(.goes-modelo) :where(ul) { list-style: none; margin: 0; padding: 0; }
:where(.goes-modelo) :where(h1, h2, h3, p) { margin: 0; }
:where(.goes-modelo) :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.goes-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.goes-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* flecha ↘ del Figma */
.goes-arr { display: inline-block; vertical-align: -.12em; color: currentColor; }
.goes-arr--h2 { width: .85em; height: .85em; margin-left: .3em; }
.goes-arr--li { width: 16px; height: 16px; color: var(--orange); flex: 0 0 16px; margin-top: .25em; }
.goes-arr--btn { width: 1em; height: 1em; margin-left: .5em; }

/* cuadrado naranja */
.goes-sq { position: absolute; width: var(--sq); height: var(--sq); background: var(--orange); z-index: 2; }

/* tipografía */
.goes-h1 { font-family: var(--font-head); font-weight: 900; font-size: var(--h1); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.goes-h2 { font-family: var(--font-head); font-weight: 700; font-size: var(--h2); line-height: 1.1; letter-spacing: -.01em; }
.goes-h2--caps { font-weight: 900; text-transform: uppercase; }

/* botón biselado del Figma */
.goes-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 44px;
  background: var(--orange); color: #0B0B0B;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
  transition: filter .15s;
}
.goes-btn:hover { filter: brightness(1.06); }
.goes-btn--block { width: 100%; }
.goes-btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--orange); clip-path: none; text-transform: none; letter-spacing: 0; padding: 0 28px; min-height: 44px; margin-top: 28px; }

/* ---------- cabecera ---------- */
.goes-hdr {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding-inline: clamp(16px, 2.8vw, 48px);
  background: var(--bg);
}
.goes-hdr__logo img { width: 36px; height: 36px; }
.goes-hdr__menu { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500; font-size: 14px; letter-spacing: .06em; }
.goes-hdr__burger { display: inline-flex; flex-direction: column; gap: 4px; width: 22px; }
.goes-hdr__burger i { display: block; height: 3px; background: var(--orange); }
.goes-nav { position: absolute; top: 60px; right: 0; min-width: 280px; padding: 24px 32px; background: var(--bg); box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.goes-nav__list li + li { margin-top: 10px; }
.goes-nav__list a { font-family: var(--font-head); font-weight: 700; font-size: 18px; text-transform: uppercase; }

/* ---------- hero ---------- */
.goes-hero {
  position: relative; overflow: hidden; background: #000;
  aspect-ratio: 1728 / 650;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corner)), calc(100% - var(--corner)) 100%, 0 100%);
}
.goes-hero__media, .goes-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.goes-hero__sq { top: clamp(20px, 2.4vw, 42px); left: clamp(20px, 2.4vw, 42px); }
.goes-hero__scroll { position: absolute; left: 50%; bottom: 23%; transform: translateX(-50%); z-index: 2; color: #fff; font-size: 10px; font-weight: 700; text-align: center; letter-spacing: .02em; }
.goes-hero__scroll svg { width: 18px; height: 28px; margin: 4px auto 0; display: block; }
.goes-hero__strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 var(--gutter) clamp(18px, 2.1vw, 36px);
}
.goes-hero__strip li { text-align: center; }
.goes-hero__strip strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, 2.1vw, 36px); line-height: 1; color: #fff; letter-spacing: .04em; }
.goes-hero__strip span { display: block; margin-top: 8px; font-size: clamp(11px, .8vw, 14px); color: #fff; }

/* ---------- intro ---------- */
.goes-intro { padding: clamp(48px, 5.5vw, 96px) 0 clamp(32px, 3.5vw, 60px); background: var(--bg); }
.goes-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.goes-intro__txt { padding-top: clamp(8px, 1.5vw, 24px); }
.goes-intro__p { max-width: 46ch; margin-top: clamp(20px, 2.4vw, 42px); font-size: var(--p); line-height: 1.45; }
.goes-intro__price { margin-top: clamp(20px, 2.2vw, 38px); font-family: var(--font-head); font-weight: 900; font-size: clamp(28px, 2.4vw, 42px); line-height: 1; }
.goes-intro__note { margin-top: 8px; font-size: 10px; line-height: 1.3; color: var(--muted); max-width: 46ch; }
.goes-intro .goes-btn { margin-top: clamp(28px, 3.2vw, 56px); min-width: 300px; }
.goes-intro__vis { position: relative; min-height: 320px; display: grid; align-content: center; }
.goes-intro__num {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(140px, 24vw, 420px); line-height: 1; letter-spacing: -.02em;
  color: var(--text); opacity: .07; pointer-events: none; user-select: none;
}
.goes-intro__img { position: relative; z-index: 1; width: min(100%, 560px); margin-inline: auto; }
.goes-colors { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 22px; font-size: 13px; }
.goes-colors__name { margin-right: 6px; }
.goes-colors__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(128,128,128,.45); }
.goes-colors__dot.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--orange); }

/* ---------- característica (Frame 856) ---------- */
.goes-feat { background: var(--panel); }
.goes-feat__media { position: relative; margin: 0; aspect-ratio: 1728 / 560; overflow: hidden; }
.goes-feat__media picture, .goes-feat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.goes-feat__sq { top: clamp(20px, 2.4vw, 42px); right: clamp(20px, 2.4vw, 42px); }
.goes-feat__panel {
  position: relative; z-index: 3;
  margin-top: calc(-1 * clamp(36px, 4.2vw, 72px));
  padding: clamp(22px, 2.6vw, 44px) 0 clamp(36px, 4.6vw, 80px);
  background: var(--panel); color: var(--text);
  /* corte diagonal arriba a la derecha que deja ver la foto */
  clip-path: polygon(0 0, 76% 0, 86% clamp(36px, 4.2vw, 72px), 100% clamp(36px, 4.2vw, 72px), 100% 100%, 0 100%);
}
.goes-feat .goes-h2 { max-width: 20ch; }
.goes-bullets { margin-top: clamp(18px, 2.2vw, 36px); display: grid; gap: 10px; }
.goes-bullets li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--p); line-height: 1.4; }
.goes-bullets li strong { font-weight: 700; }
.goes-pill { display: flex; justify-content: space-between; gap: 24px; width: min(100%, 640px); padding: 9px 14px; background: var(--pill); font-size: 14px; }
.goes-pill strong { text-align: right; white-space: nowrap; }
.goes-bullets__pill { align-items: center; }
.goes-bullets__pill .goes-arr--li { margin-top: 0; }

/* ---------- especificaciones ---------- */
.goes-specs { padding: clamp(48px, 5.5vw, 96px) 0; background: var(--bg); }
.goes-specs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; margin-top: clamp(24px, 2.8vw, 48px); }
.goes-tabs { display: flex; gap: clamp(20px, 3vw, 56px); border-bottom: 1px solid var(--line); }
.goes-tabs__tab { padding: 10px 2px 12px; font-family: var(--font-head); font-weight: 700; font-size: clamp(15px, 1.1vw, 19px); color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.goes-tabs__tab.is-active { color: var(--orange); border-bottom-color: var(--orange); }
.goes-tabs__panel { display: none; margin-top: 18px; }
.goes-tabs__panel.is-active { display: block; }
.goes-specs__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.goes-specs__row span:first-child { font-weight: 700; }
.goes-specs__row span:last-child { color: var(--muted); }
.goes-specs__right { display: grid; align-content: center; justify-items: center; padding-top: 24px; }
.goes-specs__img { width: min(100%, 560px); }

/* ---------- galería ---------- */
.goes-gal { padding: clamp(32px, 4vw, 72px) 0 clamp(48px, 5.5vw, 96px); background: var(--bg); }
.goes-gal__stage { position: relative; margin-top: clamp(24px, 2.8vw, 48px); aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.goes-gal__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; }
.goes-gal__slide.is-active { opacity: 1; pointer-events: auto; }
.goes-gal__slide img { width: 100%; height: 100%; object-fit: cover; }
.goes-gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; color: #fff; z-index: 2; }
.goes-gal__nav svg { width: 32px; height: 32px; }
.goes-gal__nav--prev { left: clamp(8px, 2vw, 40px); }
.goes-gal__nav--next { right: clamp(8px, 2vw, 40px); }
.goes-gal__thumbbar { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: clamp(10px, 1.6vw, 28px); margin-top: clamp(14px, 1.6vw, 28px); }
.goes-gal__sq { width: 56px; height: 56px; background: var(--orange); color: #0B0B0B; display: grid; place-items: center; }
.goes-gal__sq svg { width: 24px; height: 24px; }
.goes-gal__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 28px); overflow: hidden; }
.goes-gal__thumb { aspect-ratio: 282 / 160; overflow: hidden; padding: 0; opacity: .9; }
.goes-gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.goes-gal__thumb.is-active { outline: 3px solid var(--orange); outline-offset: -3px; opacity: 1; }
.goes-gal__thumb[hidden] { display: none; }

/* ---------- formulario ---------- */
.goes-form { padding: clamp(32px, 4vw, 72px) 0 clamp(48px, 6vw, 110px); background: var(--bg); }
.goes-form__panel {
  width: min(100%, 1120px); margin-inline: auto;
  padding: clamp(28px, 3.3vw, 56px) clamp(20px, 5vw, 90px) clamp(28px, 3.3vw, 56px);
  background: var(--form); color: #0B0B0B;
  clip-path: polygon(var(--corner) 0, 100% 0, 100% 100%, 0 100%, 0 var(--corner));
}
.goes-form__panel .goes-h2 { color: #0B0B0B; }
.goes-form__form { margin-top: clamp(24px, 3vw, 56px); }
.goes-form__row { display: block; margin-top: 18px; }
.goes-form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.goes-form__row--2 label { display: block; }
.goes-form input:not([type=checkbox]), .goes-form textarea {
  width: 100%; padding: 14px 0 12px; background: transparent; border: 0; border-bottom: 1px solid #9A9AA3;
  font: inherit; font-size: 15px; letter-spacing: .02em; color: #0B0B0B; outline: none; resize: vertical;
}
.goes-form input::placeholder, .goes-form textarea::placeholder { color: #0B0B0B; opacity: 1; text-transform: uppercase; }
.goes-form input:focus, .goes-form textarea:focus { border-bottom-color: var(--orange); }
.goes-form textarea { min-height: 120px; }
.goes-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.goes-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 13px; line-height: 1.35; }
.goes-check + .goes-check { margin-top: 8px; }
.goes-check input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--orange); flex: 0 0 15px; }
.goes-check a { text-decoration: underline; }
.goes-form__legal { margin-top: 8px; font-size: 10px; color: #6B6B74; }
.goes-form__legal a { text-decoration: underline; }
.goes-form .goes-btn--block { margin-top: 28px; min-height: 58px; }

/* ---------- pie ---------- */
.goes-footer {
  background: var(--footer); color: #0B0B0B;
  padding: clamp(40px, 4.6vw, 80px) 0 clamp(28px, 3vw, 48px);
  clip-path: polygon(var(--corner) 0, 100% 0, 100% 100%, 0 100%, 0 var(--corner));
}
.goes-footer__grid { display: grid; grid-template-columns: 80px 1.2fr 1.2fr 1.4fr; gap: clamp(20px, 3vw, 56px); align-items: start; }
.goes-footer__logo img { width: 40px; height: 40px; }
.goes-footer h3 { font-family: var(--font-head); font-weight: 900; font-size: clamp(16px, 1.2vw, 20px); letter-spacing: .02em; margin-bottom: 16px; }
.goes-footer__col li + li { margin-top: 10px; }
.goes-footer__col a, .goes-footer__plain li { font-size: 13px; color: #4C4C55; }
.goes-footer__arr { color: var(--orange); margin-left: 6px; }
.goes-footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: clamp(28px, 3.2vw, 56px); padding-top: 18px; border-top: 2px solid #0B0B0B; font-size: 13px; color: #4C4C55; }
.goes-footer__legal { display: flex; gap: 14px; justify-content: center; }
.goes-footer__rrss { display: flex; gap: 18px; justify-content: flex-end; grid-column: 3; }
.goes-footer__bottom > span { grid-column: 1; }

/* ---------- lightbox ---------- */
.goes-lb { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(0,0,0,.92); }
.goes-lb[hidden] { display: none; }
.goes-lb__img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.goes-lb__close, .goes-lb__nav { position: absolute; color: #fff; font-size: 44px; line-height: 1; width: 56px; height: 56px; }
.goes-lb__close { top: 16px; right: 16px; }
.goes-lb__nav { top: 50%; transform: translateY(-50%); }
.goes-lb__nav--prev { left: 12px; } .goes-lb__nav--next { right: 12px; }

/* ---------- oculta cualquier resto de Astra / chat por si algún plugin lo inyecta ---------- */
.goes-modelo .ast-header, .goes-modelo .site-header, .goes-modelo .ast-footer, .goes-modelo .site-footer,
.goes-modelo #ast-desktop-header, .goes-modelo #ast-mobile-header,
.goes-modelo [id*="goes-chat"], .goes-modelo [class*="goes-chat"], .goes-modelo .chat-bubble,
.goes-modelo #ast-scroll-top, .goes-modelo .ast-scroll-top-icon { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .goes-hero { aspect-ratio: 1280 / 850; }
  .goes-intro__grid, .goes-specs__grid { grid-template-columns: 1fr; }
  .goes-intro__vis { order: -1; }
  .goes-footer__grid { grid-template-columns: 1fr 1fr; }
  .goes-footer__logo { grid-column: 1 / -1; }
  .goes-feat__panel { clip-path: polygon(0 0, 70% 0, 82% clamp(36px, 4.2vw, 72px), 100% clamp(36px, 4.2vw, 72px), 100% 100%, 0 100%); }
}
@media (max-width: 640px) {
  .goes-hero { aspect-ratio: 440 / 1036; max-height: 90vh; }
  .goes-hero__strip { flex-wrap: wrap; gap: 14px 18px; justify-content: flex-start; }
  .goes-hero__strip li { text-align: left; }
  .goes-hero__scroll { display: none; }
  .goes-feat__media { aspect-ratio: 440 / 500; }
  .goes-form__row--2 { grid-template-columns: 1fr; gap: 0; }
  .goes-footer__grid { grid-template-columns: 1fr; }
  .goes-footer__bottom { grid-template-columns: 1fr; text-align: center; }
  .goes-footer__rrss { justify-content: center; grid-column: 1; }
  .goes-footer__bottom > span { grid-column: 1; }
  .goes-gal__thumbbar { grid-template-columns: 44px 1fr 44px; }
  .goes-gal__sq { width: 44px; height: 44px; }
  .goes-intro .goes-btn { min-width: 0; width: 100%; }
}
