/* ==========================================================================
   PERROLOCO — direccion CALLE
   Capa sobre patio.css. Blanco dominante, contraste duro, sin curvas.
   Solo redefine; no reimplementa el layout base.
   ========================================================================== */

:root {
  --negro: #0A0A0A;
  --rojo: #E31E24;
  --gris-humo: #F2F2F2;
}

body { font-feature-settings: "kern" 1; }

/* --- Tipografia -------------------------------------------------------- */
h1, h2, h3, .marca__texto, .ficha__precio, .boton {
  font-family: var(--fuente-titulo);
  letter-spacing: .01em;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: .92;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  border-bottom: 3px solid var(--negro);
  padding-bottom: .5rem;
  margin-bottom: 1.8rem;
}

/* --- Cabecera ---------------------------------------------------------- */
.cabecera {
  border-bottom: 2px solid var(--negro);
  background: #fff;
}
.marca__texto {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .06em;
}
.buscador input { border-radius: 0; }
.navegacion a {
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .1em;
  font-weight: 600;
}

/* --- Portada a sangre -------------------------------------------------- */
.portada {
  background: #fff;
  padding: 0;
  border-bottom: 2px solid var(--negro);
  overflow: hidden;
}
.portada__reja {
  max-width: none;
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0;
}
.portada__reja > div:first-child {
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.portada__entrada {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 42ch;
  color: var(--tinta-suave);
  margin-bottom: 2rem;
}
.portada__figura {
  margin: 0;
  padding: 0;
  background: var(--gris-humo);
  min-height: 320px;
}
.portada__figura img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 900px) {
  .portada__reja { grid-template-columns: 1fr 1fr; min-height: 78vh; }
  .portada__figura, .portada__figura img { min-height: 78vh; }
}

/* --- Botones ----------------------------------------------------------- */
.boton {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 600;
  font-size: .85rem;
  padding: .95rem 2rem;
  border: 2px solid transparent;
  transition: background .15s, color .15s;
}
.boton--principal {
  background: var(--rojo);
  color: #fff;
  border-color: var(--rojo);
}
.boton--principal:hover { background: var(--negro); border-color: var(--negro); }
.boton--contorno {
  background: transparent;
  color: var(--negro);
  border-color: var(--negro);
}
.boton--contorno:hover { background: var(--negro); color: #fff; }

/* --- Rejilla densa ----------------------------------------------------- */
.rejilla {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--linea);
  border: 1px solid var(--linea);
}
@media (min-width: 720px)  { .rejilla { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .rejilla { grid-template-columns: repeat(4, 1fr); } }

.ficha {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  transition: background .15s;
}
.ficha:hover { background: var(--gris-humo); }
.ficha__foto {
  border-radius: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
}
.ficha__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .35s ease;
}
.ficha:hover .ficha__foto img { transform: scale(1.04); }
.ficha__cuerpo { padding: 1rem .9rem 1.4rem; }
.ficha__tipo {
  color: var(--rojo);
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .16em;
  font-weight: 700;
  margin: 0 0 .35rem;
}
.ficha__titulo {
  font-size: .95rem;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: var(--negro);
}
.ficha__precio {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--negro);
}

/* --- Producto ---------------------------------------------------------- */
.galeria__principal, .galeria__principal img,
.galeria__tira img { border-radius: 0; }
.galeria__principal { background: var(--gris-humo); }

.compra__cantidad input,
.campo input, .campo select, .campo textarea { border-radius: 0; }

/* --- Franja de marca --------------------------------------------------- */
.seccion + .seccion { padding-top: 0; }

/* --- Pie --------------------------------------------------------------- */
.pie, footer { border-top: 3px solid var(--rojo); }

/* --- Detalles ---------------------------------------------------------- */
.aviso, .cupon input, .buscador input { border-radius: 0; }
.cabecera__cuenta { border-radius: 0; background: var(--rojo); }

/* --- Correcciones de contraste ----------------------------------------- */

/* El azul heredado del tema anterior en precios, enlaces y texto rico */
.ficha__precio, .precio, .producto__precio,
.contenido-rico, .contenido-rico p, .contenido-rico li,
.detalles__cuerpo, .detalles__cuerpo p, .detalles__cuerpo li {
  color: var(--negro);
}
.contenido-rico a, .detalles__cuerpo a { color: var(--rojo); }

/* Boton deshabilitado: gris, no rojo lavado */
.boton[disabled], .boton:disabled,
.boton--principal[disabled], .boton--principal:disabled {
  background: #C9C9C9;
  border-color: #C9C9C9;
  color: #6E6E6E;
  cursor: not-allowed;
  opacity: 1;
}

/* Enlace activo del menu */
.navegacion a[aria-current="page"] {
  color: var(--rojo);
  border-bottom: 2px solid var(--rojo);
}

/* Entrada del hero con mas presencia */
.portada__entrada {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--negro);
  border-left: 3px solid var(--rojo);
  padding-left: 1rem;
}

/* Precio de producto en Oswald grande */
.producto__precio, .compra .precio {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

/* Etiqueta Agotado */
.ficha__marcas span, .marca-agotado, .agotado {
  background: var(--negro);
  color: #fff;
  text-transform: uppercase;
  font-size: .65rem;
  letter-spacing: .12em;
  font-weight: 700;
  border-radius: 0;
  padding: .3rem .6rem;
}

/* Selector de talla */
.casilla, .opcion, .talla {
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .05em;
}

/* --- Enlaces sin estilo (azul por defecto del navegador) --------------- */
a { color: inherit; }
a:not([class]) { color: var(--rojo); text-decoration: underline; }
.contenido-rico a, .detalles__cuerpo a { color: var(--rojo); }
.migas a, .breadcrumb a { color: var(--tinta-suave); text-decoration: none; }
.migas a:hover, .breadcrumb a:hover { color: var(--rojo); }
.pie a, footer a { color: inherit; }
.pie a:hover, footer a:hover { color: var(--rojo); }

/* Rejilla sin celdas fantasma cuando hay pocos productos */
.rejilla { background: transparent; border: 0; gap: 1px; }
.rejilla > * { outline: 1px solid var(--linea); }

/* --- Confirmacion de pedido -------------------------------------------- */
/* El bloque de WhatsApp hereda el verde menta del tema anterior. Se cambia
   a gris neutro: el unico verde de la pantalla debe ser el boton. */
.paso-siguiente, .aviso--teal {
  background: var(--gris-humo);
  border: 2px solid var(--negro);
  border-radius: 0;
}
.boton--wa {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
}
