@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --white: #ffffff;
  --ink: #000000;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --red: #d62a1f;    /* etiquetas y precios de pre sale */
  --tile: #d9d8d4;   /* gris del fondo de estudio de las fotos */

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 68px; }  /* deja lugar para el menú fijo al saltar a una sección */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1rem/1.55 var(--body);
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 20; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { top: 8px; }

.logo {
  display: block;
  aspect-ratio: 2557 / 807;
  background-color: currentColor;
  -webkit-mask: url("assets/logo/shakas-logo.svg") center / contain no-repeat;
          mask: url("assets/logo/shakas-logo.svg") center / contain no-repeat;
}

/* Pantalla de carga con el logo (como Shaggy). main.js la saca cuando carga la
   página; si el JS falla, la animación la esconde sola a los 3 segundos. */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  animation: loader-out 400ms ease 3s forwards;
}
.loader-logo { width: min(46vw, 260px); animation: loader-logo 900ms var(--ease-out) both; }
.loader.is-done { animation: loader-out 450ms ease forwards; }
@keyframes loader-logo { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader-logo { animation: none; } }

/* Barra de aviso */
.announcement {
  background: var(--ink); color: var(--white);
  font-size: 0.8125rem; letter-spacing: 0.02em;
  padding-top: env(safe-area-inset-top);
  overflow: hidden; white-space: nowrap;
}
.marquee { display: flex; height: 36px; align-items: center; }
.marquee-track { display: flex; flex: none; animation: marquee 40s linear infinite; }
.marquee-track span { padding: 0 20px; border-right: 1px solid #555; line-height: 1; }
.marquee-track b { font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: logo al centro */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 68px; padding: 0 var(--gutter);
  margin-bottom: -68px;
  background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}
.site-header.is-over-hero { background: transparent; color: var(--white); border-bottom-color: transparent; }
.nav-left { display: flex; gap: 28px; }
.nav-left a, .text-link {
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.brand { width: 132px; }
.nav-right { display: flex; justify-content: flex-end; }
.nav-right a { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; }
@media (hover: hover) {
  .nav-left a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
}

/* Títulos en letra de póster surf retro: SVG generados con tools/lettering.py,
   usados como máscara para poder pintarlos de cualquier color. */
.lettering { filter: drop-shadow(0.03em 0.05em 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 0.1em 0.5em rgba(0, 0, 0, 0.3)); font-size: clamp(40px, 4vw, 64px); }
.lt {
  display: block; width: 100%; background-color: currentColor;
  -webkit-mask: var(--lt) center / contain no-repeat;
          mask: var(--lt) center / contain no-repeat;
}
.lt-sydney-uruguay { --lt: url("assets/lettering/sydney-uruguay.svg"); aspect-ratio: 3771 / 794; }
.lt-sydney-uruguay-movil { --lt: url("assets/lettering/sydney-uruguay-movil.svg"); aspect-ratio: 3085 / 839; }
.lt-disenados-australia { --lt: url("assets/lettering/disenados-australia.svg"); aspect-ratio: 4583 / 863; }
.lt-disenados-australia-movil { --lt: url("assets/lettering/disenados-australia-movil.svg"); aspect-ratio: 3696 / 906; }
.lt-narrow { display: none; }
@media (max-width: 700px) {
  .lt-wide { display: none; }
  .lt-narrow { display: block; }
}

/* Hero a pantalla completa */
.hero {
  position: relative;
  height: calc(100svh - 36px);
  min-height: 520px; max-height: 900px;
  overflow: hidden; color: var(--white);
}
/* Videos de fondo: se cargan desde main.js; mientras tanto (o con ahorro de datos) se ve el póster */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #5d7f95; }
/* iPhone en modo ahorro de energía no deja reproducir solo y pone su botón de
   play encima: lo escondemos para que se vea la foto fija del video. */
.bg-video { pointer-events: none; }
.scrub-canvas { background: none; }   /* deja ver la foto fija hasta que carga el primer cuadro */
.bg-video::-webkit-media-controls,
.bg-video::-webkit-media-controls-panel,
.bg-video::-webkit-media-controls-overlay-play-button,
.bg-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; opacity: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
}
/* El título va arriba y centrado, sobre el cielo; texto y botón quedan abajo */
.hero-copy {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter);
  top: calc(68px + clamp(24px, 7svh, 90px)); bottom: clamp(32px, 6vw, 72px);
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero h1 { width: min(100%, 900px); align-self: center; margin: 0 0 auto; }
@media (max-width: 700px) {
  /* En celular la portada deja ver el título GORROS abajo, así se entiende que hay más para bajar */
  .hero { height: calc(100svh - 36px - 120px); min-height: 440px; }
  .collection { padding-top: 28px; }
  .hero-copy { top: calc(68px + 7svh); bottom: 28px; }
  .hero h1 { width: 94%; }
}
/* Con el video que avanza con el scroll, la portada queda fija y ocupa toda la pantalla */
.hero.is-scrub { height: 100svh; max-height: none; }
/* Antes de bajar, la barra de aviso empuja la portada 36 px hacia abajo: subimos
   el texto y el botón para que no queden cortados */
.hero.is-scrub .hero-copy { bottom: calc(clamp(32px, 6vw, 72px) + 36px); }
@media (max-width: 700px) { .hero.is-scrub .hero-copy { bottom: calc(28px + 36px); } }

/* Indicador de "bajá", a la derecha y a media altura: una línea fina con un
   trazo que cae, como una gota.
   Aparece después de la pantalla de carga y se va apenas se empieza a bajar
   (main.js). El centrado va en "translate" para que las animaciones usen
   "transform" sin pisarlo. */
.scroll-cue {
  position: absolute; z-index: 1; right: var(--gutter); top: 50%; translate: 0 -50%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--white); pointer-events: none;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));   /* que se lea sobre el cielo y la espuma */
  animation: cue-in 700ms var(--ease-out) 1.6s both;
  transition: opacity 400ms ease, transform 400ms var(--ease-out);
}
.scroll-cue span { font: 600 0.875rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; padding-left: 0.2em; }
.scroll-cue i { position: relative; width: 2px; height: 72px; overflow: hidden; background: rgba(255, 255, 255, 0.35); }
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--white);
  animation: cue-drop 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.scroll-cue.is-gone { opacity: 0; transform: translateY(8px); animation: none; }
@keyframes cue-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes cue-drop {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue, .scroll-cue i::after { animation: none; }
  .scroll-cue i::after { top: 30%; bottom: 30%; }
}
.hero p { margin: 18px 0 26px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 34px;
  font-family: var(--display); font-weight: 600; font-size: 1.125rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-light { background: var(--white); color: var(--ink); }
@media (hover: hover) { .btn-light:hover { background: var(--ink); color: var(--white); } }

/* Secciones */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.section-head h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: 0.9375rem; }

/* Grilla de productos */
.collection { padding: clamp(48px, 7vw, 96px) 0; }
.collection .section-head { padding: 0 var(--gutter); }
.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.product a { display: block; }
.product-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tile); margin-bottom: 12px; }
.product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-photo-alt { opacity: 0; transition: opacity 250ms ease; }
@media (hover: hover) { .product a:hover .product-photo-alt { opacity: 1; } }
.product a { padding-bottom: 24px; }
.product h3, .product p { padding: 0 14px; }
.product h3 { font-family: var(--body); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; line-height: 1.3; }
.product-color { color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
.price { color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
.price s, .presale-points s { color: var(--red); margin-right: 4px; }
.price strong { color: var(--ink); font-weight: 600; }
.stock { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.badge {
  position: absolute; z-index: 1; top: 12px; left: 12px;
  background: var(--red); color: var(--white);
  font: 600 0.75rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 9px;
}

/* Pre sale: texto, formulario y preguntas frecuentes */
.presale {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px clamp(32px, 6vw, 96px);
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  background: #f4f3f1; border-top: 1px solid var(--line);
}
.presale h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.presale-lead { margin-top: 16px; font-size: 1.125rem; max-width: 46ch; }
.presale-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.presale-points li { padding-left: 22px; position: relative; }
.presale-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; background: var(--ink); }
.presale-form { display: grid; gap: 8px; align-content: start; background: var(--white); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); }
.presale-form label { font-weight: 600; font-size: 0.875rem; margin-top: 8px; }
.presale-form input, .presale-form select {
  font: inherit; font-size: 1rem;   /* 16px: evita el zoom automático en iPhone */
  min-height: 48px; padding: 0 14px; width: 100%;
  border: 1px solid #c9c9c9; border-radius: 0; background: var(--white); color: var(--text);
}
.presale-form input:focus-visible, .presale-form select:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.presale-form .btn { margin-top: 16px; width: 100%; min-height: 50px; border: 0; cursor: pointer; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.is-error { color: #b3261e; }
.form-note { color: var(--muted); font-size: 0.8125rem; }
.faq { grid-column: 1 / -1; max-width: 760px; }
.faq h3 { font-size: 1.5rem; margin-bottom: 12px; }
/* Todo el bloque se abre con el + de "Preguntas frecuentes"; adentro, cada
   pregunta también se abre por separado */
.faq-group { border-top: 1px solid #dcdad6; border-bottom: 1px solid #dcdad6; }
.faq-group > summary { align-items: center; padding: 18px 0; }
.faq-group > summary h3 { margin: 0; }
.faq-group > summary::after { font-size: 1.75rem; }
.faq-group[open] > summary::after { content: "–"; }
.faq-group .faq-list { padding-bottom: 8px; }
.faq-group .faq-list details:last-child { border-bottom: 0; }
.faq details { border-top: 1px solid #dcdad6; }
.faq details:last-child { border-bottom: 1px solid #dcdad6; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: 60ch; }

/* Página de cada gorro */
.pdp-page { padding-top: 68px; }   /* el menú fijo se superpone al contenido */
.breadcrumb { padding: 20px var(--gutter) 0; font-size: 0.8125rem; color: var(--muted); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.pdp {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 80px);
  padding: 20px var(--gutter) clamp(48px, 7vw, 96px); align-items: start;
}
/* Las 4 fotos del gorro en una grilla de 2 x 2, enteras (son verticales, 3:4) */
.pdp-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pdp-gallery figure { position: relative; background: var(--tile); aspect-ratio: 3 / 4; overflow: hidden; }
.pdp-gallery img { width: 100%; height: 100%; object-fit: cover; }
/* Cada foto es un botón que la abre ampliada */
.pdp-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pdp-zoom:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

/* Fotos ampliadas: pantalla completa en blanco, la foto entera al centro */
html.is-locked { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--white); color: var(--ink); overflow: hidden;
}
.lightbox[open] { animation: fade-in 200ms ease; }
.lightbox::backdrop { background: var(--white); }
.lightbox-stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 56px 72px 48px; overflow: hidden;
  touch-action: none;   /* el arrastre lo maneja main.js (recorrer o pasar de foto) */
}
.lightbox-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  cursor: zoom-in; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform 300ms var(--ease-out);
}
.lightbox.is-zoomed .lightbox-img { transform: scale(2.5); cursor: zoom-out; }
.lightbox-btn {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px;
  padding: 0; border: 0; background: rgba(255, 255, 255, 0.85); color: var(--ink); cursor: pointer;
}
.lightbox-close { top: 8px; right: 8px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox.is-zoomed .lightbox-prev, .lightbox.is-zoomed .lightbox-next { opacity: 0; pointer-events: none; }
.lightbox-count {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--muted);
}
@media (max-width: 700px) {
  .lightbox-stage { padding: 56px 0 44px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 0; transform: none; background: none; }
}
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } .lightbox-img { transition: none; } }
.pdp-info { position: sticky; top: calc(68px + 24px); display: grid; gap: 14px; max-width: 520px; }
.pdp-info h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.pdp-price { font-size: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pdp-price s { color: var(--red); }
.pdp-price strong { font-weight: 600; }
.pdp-price span { font-size: 0.8125rem; color: var(--muted); }
.pdp-stock { color: var(--muted); font-size: 0.875rem; }
.pdp-form { padding: 0; border: 0; background: none; margin-top: 6px; }
.pdp-form label { margin-top: 0; }
.pdp-form .btn { margin-top: 8px; }
.pdp-desc { display: grid; gap: 10px; }
.pdp-desc ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.pdp-faq { grid-column: auto; }
.more { padding-top: 0; }
.products-3 { grid-template-columns: repeat(3, 1fr); }

/* Pop-up del pre sale */
.popup {
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 0; background: var(--white); color: var(--text);
  display: none; grid-template-columns: 0.85fr 1fr; overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.popup[open] { display: grid; animation: popup-in 350ms var(--ease-out); }
.popup::backdrop { background: rgba(0, 0, 0, 0.55); animation: fade-in 350ms ease; }
@keyframes popup-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .popup[open], .popup::backdrop { animation: none; } }
.popup-photo { display: block; }
.popup-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.popup-body { position: relative; padding: clamp(28px, 4vw, 44px); display: grid; gap: 12px; align-content: center; }
.popup-badge { position: static; justify-self: start; }
.popup h2 { font-size: clamp(2.25rem, 4.5vw, 3rem); outline: none; }
.popup-text s { color: var(--red); }
.popup-form { padding: 0; border: 0; background: none; margin-top: 4px; }
.popup-form .btn { margin-top: 4px; }
.popup-close {
  position: absolute; z-index: 2; top: 8px; right: 8px; width: 44px; height: 44px;
  border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.popup .form-status:empty { display: none; }   /* sin mensaje no ocupa lugar */
/* En celular, más chico: que se vea la página alrededor */
@media (max-width: 600px) {
  .popup { width: min(340px, calc(100% - 48px)); }
  .popup-photo img { aspect-ratio: 16 / 7; }
  .popup-body { padding: 20px 22px 12px; gap: 8px; }
  .popup-badge { font-size: 0.75rem; }
  .popup h2 { font-size: 1.875rem; }
  .popup-text { font-size: 0.9375rem; line-height: 1.45; }
  .popup-form { gap: 6px; }
  .popup-form input { min-height: 44px; }
  .popup-form .btn { min-height: 46px; margin-top: 2px; }
  .popup .form-note { font-size: 0.75rem; line-height: 1.4; }
  .popup-skip { padding: 4px 8px 6px; font-size: 0.8125rem; }
}
.popup-skip { justify-self: center; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; font: inherit; font-size: 0.875rem; }

/* Beneficios */
.perks {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.perks > div { padding: 28px var(--gutter); text-align: center; }
.perks > div + div { border-left: 1px solid var(--line); }
.perks h3 { font-size: 1.25rem; margin-bottom: 6px; }
.perks p { color: var(--muted); font-size: 0.9375rem; }

/* Australia */
.aussie { position: relative; overflow: hidden; color: var(--white); margin-top: clamp(48px, 7vw, 96px); }
.aussie > img { width: 100%; height: clamp(440px, 58vw, 760px); object-fit: cover; }
.aussie::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0) 55%); }
.aussie-copy {
  position: absolute; inset: 0; z-index: 1;
  display: grid; align-content: start; justify-content: center; justify-items: center; gap: 16px;
  padding: clamp(28px, 6vw, 80px) var(--gutter) 0; text-align: center;   /* arriba, sobre el agua: el surfista queda libre */
}
.aussie h2 { width: min(88vw, 1000px); }
@media (max-width: 700px) {
  .aussie > img { height: 560px; object-position: 45% 50%; }
  .aussie-copy { align-content: space-between; padding-bottom: 28px; }
  .aussie::after { background: linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0) 40%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.4)); }
  .aussie h2 { width: 94vw; }
}
.aussie p { max-width: 36ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 500; }

/* Fotos grandes con enlace */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 0 0; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; color: var(--white); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
/* La colección: encuadre abajo para que entre el gorro de abajo, y el título
   abajo a la derecha, donde no tapa ningún gorro */
.tile .tile-img-low { object-position: 50% 100%; }
.tile-right .tile-copy { left: auto; right: var(--gutter); justify-items: end; text-align: right; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.5)); }
.tile-copy { position: absolute; z-index: 1; left: var(--gutter); bottom: clamp(24px, 4vw, 48px); display: grid; gap: 10px; }
.tile-copy strong { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 0.9; }
.tile-link { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (hover: hover) { .tile:hover img { transform: scale(1.03); } }

/* Historia */
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.story-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.story-copy { padding: clamp(40px, 7vw, 112px); max-width: 640px; }
.story-copy h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 24px; }
.story-copy p { font-size: 1.0625rem; }
.story-copy p + p { margin-top: 14px; }
.story-copy .btn { margin-top: 28px; }
.btn-dark { background: var(--ink); color: var(--white); min-height: 46px; padding: 0 28px; }
@media (hover: hover) { .btn-dark:hover { background: #333; } }

.bleed-first img { margin-top: 0; }
.aussie + .bleed-first img { margin-top: 8px; }
.bleed img { width: 100%; height: clamp(360px, 60vw, 820px); object-fit: cover; margin-top: clamp(48px, 7vw, 96px); }

/* Franja final con el atardecer */
.sunset { position: relative; overflow: hidden; height: clamp(420px, 56vw, 760px); color: var(--white); }
/* Menos cielo: el video es más alto que la franja y queda pegado abajo, así se ve más agua */
.sunset .bg-video { top: auto; bottom: 0; height: 145%; object-position: 50% 100%; }
.sunset::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45)); }
.sunset-copy {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 6vw, 72px);
  display: grid; justify-items: start; gap: 20px;
}
.sunset h2 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
.place { display: flex; align-items: center; gap: 0.12em; }
.pin { width: 0.8em; height: 0.8em; flex: none; }

/* Footer */
.site-footer {
  background: var(--ink); color: var(--white);
  padding: 56px var(--gutter) calc(32px + env(safe-area-inset-bottom));
}
/* Computadora: columnas a la izquierda, logo a la derecha a la altura de los títulos */
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 48px; }
.logo-footer { width: 180px; color: var(--white); order: 2; flex: none; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: 32px; flex: 1; }
.footer-cols h3 { font-size: 1.125rem; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-cols a { display: block; padding: 4px 0; color: #cfcfcf; }
.footer-cols p { color: #9a9a9a; font-size: 0.875rem; margin-top: 8px; }
@media (hover: hover) { .footer-cols a:hover { color: var(--white); } }
.small { font-size: 0.8125rem; color: #9a9a9a; border-top: 1px solid #262626; padding-top: 20px; }

/* Tablet y celular */
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .presale { grid-template-columns: 1fr; }
  .popup { grid-template-columns: 1fr; }
  .popup-photo img { height: auto; aspect-ratio: 1200 / 750; object-position: 50% 50%; }
  .popup-close { color: var(--white); text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
  .pdp { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; }
  .pdp-info { position: static; padding: 0 var(--gutter); max-width: none; }
  /* Fotos en carrusel que se desliza de costado */
  .pdp-gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
  .pdp-gallery::-webkit-scrollbar { display: none; }
  .pdp-gallery figure { scroll-snap-align: center; aspect-ratio: 1 / 1; }
  .products-3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .products-3::-webkit-scrollbar { display: none; }
  .products-3 .product { scroll-snap-align: start; }
  .story { grid-template-columns: 1fr; }
  .story-photo img { aspect-ratio: 4 / 3; }
  .story-copy { padding: 40px var(--gutter) 8px; }
}
@media (max-width: 640px) {
  .hide-mobile, .announcement-extra { display: none; }
  .brand { width: 104px; }
  .perks { grid-template-columns: 1fr; }
  .perks > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .perks > div { padding: 20px var(--gutter); }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 4.5; }
  .footer-top { flex-direction: column; align-items: stretch; gap: 40px; }
  .logo-footer { order: 0; align-self: center; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Aviso de cookies (lo crea main.js; solo aparece hasta que la persona elige) */
.cookie-bar {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 600px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 0.875rem; line-height: 1.4;
}
.cookie-bar p { margin: 0; flex: 1; }
.cookie-bar a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.cookie-bar .btn { min-height: 42px; padding: 0 20px; font-size: 1rem; border: 0; cursor: pointer; }
.cookie-no { border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; padding: 10px 8px; }
@media (max-width: 600px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .cookie-bar p { font-size: 0.8125rem; }
  .cookie-actions .btn { flex: 1; }
}

/* Páginas de texto (privacidad) */
.legal-page { padding-top: 68px; }   /* el menú fijo se superpone al contenido */
.legal { max-width: 68ch; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.legal h2 { font-size: 1.5rem; margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-date { color: var(--muted); font-size: 0.875rem; }
.legal .btn { border: 0; cursor: pointer; margin-top: 8px; }
.not-found { text-align: center; padding-block: clamp(64px, 14vw, 160px); }
.not-found h1 { margin-bottom: 12px; }
.not-found .btn { text-decoration: none; margin-top: 20px; }
