/* =========================================================
   KŌIK — estilos del sitio
   ========================================================= */

@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/questrial-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/questrial-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fondo: #323232;
  --fondo-claro: #3c3c3c;
  --fondo-oscuro: #262626;
  --superficie: #444444;
  --texto: #ffffff;
  --texto-suave: #c9c9c9;
  --borde: rgba(255, 255, 255, 0.14);
  --error: #ff8a80;
  --radio: 14px;
  --ancho: 1200px;
  --fuente: "Questrial", "Century Gothic", "Avenir", "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--texto); text-underline-offset: 3px; }
a:hover { color: var(--texto-suave); }

h1, h2, h3 { font-weight: 400; line-height: 1.2; margin: 0 0 0.6em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--texto); outline-offset: 3px; border-radius: 4px; }

.visual-oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.saltar {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--texto); color: var(--fondo); padding: 0.5rem 1rem; border-radius: 6px;
}
.saltar:focus { top: 1rem; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 1rem; }
.angosto { max-width: 820px; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(38, 38, 38, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}
.cabecera__barra { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.cabecera__logo img { width: 130px; height: auto; }

.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.menu a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 999px;
  text-decoration: none; font-size: 0.95rem; white-space: nowrap;
}
.menu a:hover, .menu a[aria-current="page"] { background: var(--superficie); color: var(--texto); }

.menu-boton {
  display: none; background: none; border: 0; padding: 0.75rem; cursor: pointer; color: var(--texto);
}
.menu-boton__icono, .menu-boton__icono::before, .menu-boton__icono::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease; position: relative;
}
.menu-boton__icono::before, .menu-boton__icono::after { content: ""; position: absolute; left: 0; }
.menu-boton__icono::before { top: -7px; }
.menu-boton__icono::after { top: 7px; }
.menu-boton[aria-expanded="true"] .menu-boton__icono { background: transparent; }
.menu-boton[aria-expanded="true"] .menu-boton__icono::before { transform: translateY(7px) rotate(45deg); }
.menu-boton[aria-expanded="true"] .menu-boton__icono::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-boton { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--fondo-oscuro); border-bottom: 1px solid var(--borde);
    display: none;
  }
  .menu.abierto { display: block; }
  .menu ul { flex-direction: column; padding: 0.5rem 1rem 1rem; }
  .menu a { border-radius: 8px; padding: 0.75rem; font-size: 1.05rem; }
  /* Sin JavaScript el menú se muestra siempre */
  .sin-js .menu { position: static; display: block; }
  .sin-js .menu-boton { display: none; }
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--texto); color: var(--fondo);
  border: 1px solid var(--texto); border-radius: 999px;
  padding: 0.75rem 1.6rem; font: inherit; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.boton:hover { background: transparent; color: var(--texto); }

.tiendas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.boton--tienda { background: transparent; color: var(--texto); border-color: var(--borde); border-radius: 12px; padding: 0.55rem 1.1rem; }
.boton--tienda:hover { background: var(--superficie); }
.boton--tienda span { display: flex; flex-direction: column; line-height: 1.15; font-size: 1.05rem; }
.boton--tienda small { font-size: 0.7rem; color: var(--texto-suave); }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.seccion--clara { background: var(--fondo-claro); }
.seccion--centrada { text-align: center; min-height: 55vh; display: flex; align-items: center; }
.seccion--centrada .boton { margin-top: 1rem; }
.seccion__titulo { margin-bottom: 1.5rem; }
.introduccion { font-size: 1.2rem; color: var(--texto); }
.resaltado { display: block; text-transform: uppercase; letter-spacing: 0.08em; }

.encabezado-pagina {
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(2rem, 5vw, 3rem);
  background: linear-gradient(180deg, var(--fondo-oscuro), var(--fondo));
  text-align: center;
}
.encabezado-pagina h1 { margin: 0; text-transform: uppercase; letter-spacing: 0.06em; }
.encabezado-pagina--imagen {
  background-size: cover; background-position: center bottom;
  padding-bottom: clamp(7rem, 18vw, 12rem);
}

.dos-columnas { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .dos-columnas { grid-template-columns: 1fr 1fr; }
  .dos-columnas--centrado { align-items: center; }
}
.dos-columnas > img { border-radius: var(--radio); margin: 0 auto; }

.tarjeta {
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: clamp(1.4rem, 4vw, 2.2rem);
}
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta__titulo { text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.3rem; }
.tarjeta--enlace { text-decoration: none; display: block; transition: transform 0.2s ease, border-color 0.2s ease; }
.tarjeta--enlace:hover { transform: translateY(-3px); border-color: var(--texto-suave); color: var(--texto); }
.tarjeta--enlace .boton { margin-top: 1rem; }

/* ---------- Portada ---------- */
.portada { padding: clamp(3rem, 9vw, 6rem) 0; text-align: center; }
.portada__contenido { display: flex; flex-direction: column; align-items: center; }
.portada__logo { width: min(420px, 80%); margin-bottom: 2rem; }
.portada__titulo { margin-bottom: 0.4em; }
.portada__texto { font-size: 1.2rem; color: var(--texto-suave); max-width: 36rem; }
.portada .tiendas { justify-content: center; }

/* ---------- Categorías ---------- */
.categorias {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .categorias { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .categorias { grid-template-columns: repeat(4, 1fr); } }

.categoria { position: relative; border-radius: var(--radio); overflow: hidden; aspect-ratio: 1; background: var(--superficie); }
.categoria img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.6s ease, transform 0.6s ease; }
.categoria__nombre {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 0.9rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(0.8rem, 2.4vw, 1rem);
}
.categoria:hover img { filter: grayscale(0); transform: scale(1.04); }

/* ---------- Carrusel de marcas ---------- */
.carrusel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.carrusel__pista { list-style: none; margin: 0; padding: 0; display: flex; gap: 3rem; width: max-content; animation: desplazar 60s linear infinite; }
.carrusel__pista img { width: 180px; height: auto; opacity: 0.85; }
.carrusel:hover .carrusel__pista { animation-play-state: paused; }
@keyframes desplazar { to { transform: translateX(calc(-50% - 1.5rem)); } }
@media (prefers-reduced-motion: reduce) {
  .carrusel__pista { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 1rem; }
  .carrusel__pista li[aria-hidden="true"] { display: none; }
  html { scroll-behavior: auto; }
}

.llamado { text-align: center; }
.llamado p { color: var(--texto-suave); font-size: 1.15rem; }

/* ---------- Quiénes somos ---------- */
.valores { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .valores { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .valores { grid-template-columns: repeat(3, 1fr); } }
.valores .tarjeta p { color: var(--texto-suave); }

.video { position: relative; border-radius: var(--radio); overflow: hidden; aspect-ratio: 16 / 9; background: #000; align-self: center; }
.video__portada, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__portada img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.video__play {
  position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.7); border: 2px solid #fff;
}
.video__play::after {
  content: ""; position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -7px;
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff;
}
.video__portada:hover .video__play { background: #000; }

/* ---------- Servicios ---------- */
.etiquetas { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.etiquetas li { border: 1px solid var(--borde); border-radius: 999px; padding: 0.5rem 1.25rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--superficie); }

/* ---------- Soporte ---------- */
.faq__grupo { margin: 2rem 0 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texto-suave); font-size: 1rem; }
.faq { border: 1px solid var(--borde); border-radius: 10px; background: var(--superficie); margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 1.2rem 1.2rem; margin: 0; color: var(--texto-suave); }

/* ---------- Aviso legal ---------- */
.legal { font-size: 1rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--texto-suave); }
.legal ul { padding-left: 1.3rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal a { word-break: break-word; }

/* ---------- Contacto ---------- */
.datos-contacto { list-style: none; padding: 0; margin: 1.5rem 0; }
.datos-contacto li { padding: 0.75rem 0; border-bottom: 1px solid var(--borde); }
.datos-contacto span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--texto-suave); }
.mapa { border-radius: var(--radio); overflow: hidden; aspect-ratio: 4 / 3; }
.mapa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.6) invert(0.9) hue-rotate(180deg); }

.formulario__fila { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .formulario__fila { grid-template-columns: 1fr 1fr; } }
.campo { margin-bottom: 1rem; }
.campo label { display: block; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--texto-suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--texto);
  background: var(--fondo); border: 1px solid var(--borde); border-radius: 10px; padding: 0.75rem 0.9rem;
}
.campo textarea { resize: vertical; min-height: 140px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--texto); }
.campo select option { background: var(--fondo); }
.campo-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulario__nota { font-size: 0.85rem; color: var(--texto-suave); }
.alerta { border: 1px solid var(--error); color: var(--error); border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 1.25rem; }
.alerta ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Pie ---------- */
.pie { background: var(--fondo-oscuro); border-top: 1px solid var(--borde); padding: 3.5rem 0 1.5rem; font-size: 0.95rem; }
.pie__rejilla { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .pie__rejilla { grid-template-columns: 1.4fr 1fr 1fr; } }
.pie img { width: 130px; }
.pie__lema { color: var(--texto-suave); margin-top: 1rem; }
.pie__titulo { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--texto-suave); margin-bottom: 1rem; }
.pie__lista, .redes { list-style: none; padding: 0; margin: 0; }
.pie__lista li { margin-bottom: 0.5rem; }
.redes { display: flex; gap: 1rem; margin-top: 1.25rem; }
.tiendas--pie { margin-top: 1.25rem; }
.pie__legal { text-align: center; color: var(--texto-suave); font-size: 0.85rem; margin: 3rem 0 0; padding: 1.5rem 1rem 0; border-top: 1px solid var(--borde); }
