/* ============================================================================
   ATHLOS BÁSICA · HOJA DE ESTILO ÚNICA
   ----------------------------------------------------------------------------
   Una sola hoja para todo el sitio. Diseño plano a propósito:

     · Sin sombras, sin destellos, sin degradados.
     · Esquinas rectas.
     · Dos tipografías (Anton para títulos, Barlow para texto).
     · Sin animación de entrada: el contenido se ve desde el primer momento.

   El redondeo, las sombras, los fondos decorativos y el movimiento
   pertenecen a las versiones Estándar y Pro.
   ========================================================================== */

/* ============================================================
   1. BASE
   ============================================================ */
:root {
  --rojo: #FF4B39;
  --rojo-hondo: #AC2B1F;
  --tinta: #0A0A0C;
  --tinta-2: #141418;
  --linea: #2A2A30;
  --texto: #F2F2F3;
  --texto-suave: #A7A7AE;
  --plata: #D9D9D9;

  --titulo: 'Anton', 'Arial Black', sans-serif;
  --cuerpo: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --margen: clamp(1rem, 4vw, 2.5rem);
  --ancho: 1180px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--tinta);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--titulo);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0; }

.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding-inline: var(--margen); }

.seccion { padding-block: clamp(3rem, 8vw, 5.5rem); }
.seccion--alterna { background: var(--tinta-2); }

.seccion__titulo { margin-bottom: .6rem; }
.seccion__texto { color: var(--texto-suave); max-width: 60ch; margin-bottom: 2.2rem; }

.etiqueta {
  display: inline-block;
  font-family: var(--cuerpo);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: .6rem;
}

.salta-al-contenido {
  position: absolute; left: -9999px;
  background: var(--rojo); color: #fff; padding: .8rem 1.2rem; z-index: 100;
}
.salta-al-contenido:focus { left: var(--margen); top: .6rem; }

:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }

/* ============================================================
   2. BOTONES
   ============================================================ */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: .8rem 1.6rem;
  background: var(--rojo);
  color: #fff;
  font-family: var(--cuerpo);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--rojo);
  cursor: pointer;
}
.boton:hover { background: var(--rojo-hondo); border-color: var(--rojo-hondo); }

.boton--linea { background: transparent; color: var(--texto); border-color: var(--linea); }
.boton--linea:hover { background: transparent; border-color: var(--rojo); color: var(--rojo); }

.boton--bloque { width: 100%; }

/* ============================================================
   3. BARRA SUPERIOR
   ============================================================ */
.aviso {
  background: var(--rojo);
  color: #fff;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-block: .5rem;
}

.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: var(--tinta);
  border-bottom: 1px solid var(--linea);
}
.cabecera__fila {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.marca {
  display: inline-flex; align-items: center;
  min-height: 44px;              /* zona cómoda para el dedo */
}
.marca img { width: clamp(132px, 40vw, 190px); height: auto; }

.menu { display: flex; gap: 1.6rem; }
.menu a {
  font-weight: 600; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--texto-suave);
  display: inline-flex; align-items: center; min-height: 44px;
}
.menu a:hover { color: var(--rojo); }

.cabecera__acciones { display: flex; align-items: center; gap: .6rem; }

.hamburguesa {
  display: none;
  width: 48px; height: 48px;
  background: none; border: 1px solid var(--linea);
  color: var(--texto); cursor: pointer;
  padding: 0;
}
.hamburguesa span {
  display: block; width: 20px; height: 2px;
  background: currentColor; margin: 4px auto;
}

@media (max-width: 860px) {
  .hamburguesa { display: block; }
  .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--tinta);
    border-bottom: 1px solid var(--linea);
    padding: .5rem var(--margen) 1.2rem;
  }
  .menu.abierto { display: flex; }
  .menu a { font-size: 1.1rem; padding-block: .8rem; border-bottom: 1px solid var(--linea); }
  .cabecera__acciones .boton { display: none; }
}

/* ============================================================
   4. PORTADA
   ============================================================ */
.portada {
  position: relative;
  border-bottom: 1px solid var(--linea);
  background: var(--tinta-2);
}
/* El max-width va en el texto, no en el contenedor: si se lo pones al
   contenedor pisa el max-width de .envoltura y el bloque se centra en
   lugar de alinearse con el resto de la página. */
.portada__caja { padding-block: clamp(3.5rem, 11vw, 7rem); }
.portada__caja > * { max-width: 42rem; }
.portada__texto { color: var(--texto-suave); font-size: 1.05rem; margin-block: 1rem 2rem; }
.portada__acciones { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ============================================================
   5. REJILLAS
   ============================================================ */
.rejilla { display: grid; gap: 1px; background: var(--linea); border: 1px solid var(--linea); }
/* Sin esto, una palabra larga (p. ej. «Monohidratada») impide que la
   columna 1fr se encoja y la rejilla se sale de la pantalla. */
.rejilla > * { min-width: 0; }
.rejilla > * > * { min-width: 0; }
.rejilla--3 { grid-template-columns: repeat(3, 1fr); }
.rejilla--4 { grid-template-columns: repeat(4, 1fr); }
.rejilla--6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 980px) {
  .rejilla--4, .rejilla--6 { grid-template-columns: repeat(3, 1fr); }
  .rejilla--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rejilla--4, .rejilla--6 { grid-template-columns: repeat(2, 1fr); }
  .rejilla--3 { grid-template-columns: 1fr; }
}

/* ============================================================
   6. CATEGORÍAS
   ============================================================ */
.categoria {
  background: var(--tinta);
  padding: 1.6rem 1rem;
  text-align: center;
  font-family: var(--titulo);
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--texto-suave);
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  min-height: 92px;
}
.categoria:hover { color: var(--rojo); }

/* ============================================================
   7. PRODUCTOS
   ============================================================ */
.producto { background: var(--tinta); padding: 1rem; display: flex; flex-direction: column; }
.producto__foto {
  aspect-ratio: 1;
  background: var(--tinta-2);
  border: 1px solid var(--linea);
  display: grid; place-items: center;
  margin-bottom: .9rem;
  overflow: hidden;
}
.producto__foto img { width: 100%; height: 100%; object-fit: cover; }
.hueco { display: grid; place-items: center; gap: .4rem; padding: 1rem; text-align: center; }
.hueco img { width: 34px; opacity: .25; }
.hueco span { font-size: .62rem; color: var(--texto-suave); opacity: .5; word-break: break-all; }

.producto__categoria { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rojo); }
.producto__nombre {
  font-family: var(--titulo); font-size: 1.05rem;
  text-transform: uppercase; margin-block: .3rem;
  overflow-wrap: anywhere;
}
.producto__detalle { font-size: .85rem; color: var(--texto-suave); }
.producto__precio { font-family: var(--titulo); font-size: 1.5rem; margin-block: .7rem .8rem; }
.producto .boton { margin-top: auto; }

.filtros { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.filtro {
  min-height: 44px; padding: .5rem 1rem;
  background: transparent; color: var(--texto-suave);
  border: 1px solid var(--linea);
  font-family: var(--cuerpo); font-weight: 600;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
}
.filtro:hover { color: var(--texto); }
.filtro.activo { background: var(--rojo); border-color: var(--rojo); color: #fff; }

/* ============================================================
   8. PAQUETES
   ============================================================ */
.paquete { background: var(--tinta); padding: 1.8rem 1.4rem; display: flex; flex-direction: column; }
.paquete__nombre { margin-bottom: 1rem; }
.paquete__lista { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .5rem; }
.paquete__lista li {
  font-size: .9rem; color: var(--texto-suave);
  padding-left: 1.3rem; position: relative;
}
.paquete__lista li::before { content: '—'; position: absolute; left: 0; color: var(--rojo); }
.paquete__precio { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.1rem; }
.paquete__precio b { font-family: var(--titulo); font-size: 1.9rem; font-weight: 400; }
.paquete__antes { color: var(--texto-suave); text-decoration: line-through; font-size: .95rem; }
.paquete .boton { margin-top: auto; }

/* ============================================================
   9. MEMBRESÍAS
   ============================================================ */
.plan { background: var(--tinta); padding: 1.8rem 1.4rem; display: flex; flex-direction: column; }
.plan--destacado { border-top: 3px solid var(--rojo); }
.plan__precio { font-family: var(--titulo); font-size: 2.1rem; margin-block: .6rem 1rem; }
.plan__precio small { font-family: var(--cuerpo); font-size: .85rem; color: var(--texto-suave); }

/* ============================================================
   10. CÓMO COMPRAR
   ============================================================ */
.paso { background: var(--tinta); padding: 1.6rem 1.3rem; }
.paso__numero {
  font-family: var(--titulo); font-size: 2.2rem;
  color: var(--rojo); line-height: 1; margin-bottom: .5rem;
}
.paso p { color: var(--texto-suave); font-size: .92rem; margin-top: .4rem; }

/* ============================================================
   11. CONTACTO
   ============================================================ */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .contacto { grid-template-columns: 1fr; } }

.dato { display: flex; gap: .8rem; align-items: center; border-bottom: 1px solid var(--linea); }
.dato b {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--texto-suave); min-width: 7.5rem;
  display: inline-flex; align-items: center; min-height: 44px;
}
.dato a {
  color: var(--texto); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.dato a:hover { color: var(--rojo); }

/* ============================================================
   12. PIE
   ============================================================ */
.pie { border-top: 1px solid var(--linea); padding-block: 2.5rem 1.5rem; }
.pie__fila { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.pie__redes { display: flex; gap: 1.2rem; }
.pie__redes a {
  color: var(--texto-suave); text-decoration: none;
  font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center; min-height: 44px;
}
.pie__redes a:hover { color: var(--rojo); }
.pie__legal {
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid var(--linea);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--texto-suave);
}
/* El crédito va parejo: misma tipografía y tamaño en toda la línea */
.pie__credito {
  font-family: var(--cuerpo); font-weight: 600;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--texto-suave);
}
.pie__credito b { font-weight: 600; color: var(--plata); }

/* ============================================================
   13. PÁGINA 404
   ============================================================ */
.error404 { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error404__numero { font-family: var(--titulo); font-size: clamp(5rem, 22vw, 11rem); color: var(--rojo); line-height: 1; }
.error404 p { color: var(--texto-suave); margin-block: 1rem 2rem; }
