/* theme.css — paleta y layout del catalogo Somos Padel Victoria ER.
   Mobile-first, desktop como port. Colores derivados del logo (dos azules). */

:root {
  /* Paleta — derivada del logo (2026-05-21, refinar si el papa confirma exactos) */
  --azul-claro: #2C7DD9;
  --azul-oscuro: #1B2D8E;
  --azul-acento: #4FA3F0;

  --texto-fuerte: #0F172A;
  --texto-suave: #475569;
  --borde: #E2E8F0;
  --fondo: #FFFFFF;
  --fondo-suave: #F8FAFC;
  --whatsapp: #25D366;
  --whatsapp-hover: #1FB855;

  --radio-chico: 8px;
  --radio: 12px;
  --radio-grande: 20px;

  --shadow-chica: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-media: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-grande: 0 12px 32px rgba(15, 23, 42, 0.12);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--fondo);
  color: var(--texto-fuerte);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 0.95; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1; }
h3 { font-size: 1.4rem; line-height: 1.1; }

/* ─── Header ─────────────────────────────────────────────── */
.header {
  background: var(--fondo);
  border-bottom: 1px solid var(--borde);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-chica);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: block;
  height: 44px;
}
.logo img { height: 100%; width: auto; }

.nav {
  display: none;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a {
  color: var(--texto-suave);
  transition: color 0.15s;
}
.nav a:hover { color: var(--azul-oscuro); }

@media (min-width: 720px) {
  .nav { display: flex; }
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-claro) 100%);
  color: white;
  padding: 60px 20px 80px;
  text-align: center;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero h1 {
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 24px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--azul-oscuro);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-grande);
}

/* ─── Categorías (filtros) ───────────────────────────────── */
.categorias {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.categoria-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--fondo-suave);
  color: var(--texto-suave);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--borde);
  transition: all 0.15s;
}
.categoria-chip:hover {
  border-color: var(--azul-claro);
  color: var(--azul-oscuro);
}
.categoria-chip.activa {
  background: var(--azul-oscuro);
  color: white;
  border-color: var(--azul-oscuro);
}

/* ─── Grid de productos ──────────────────────────────────── */
.productos {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.productos-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.productos-count {
  color: var(--texto-suave);
  font-size: 0.9rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Card de producto ───────────────────────────────────── */
.card {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-media);
}
.card-img {
  aspect-ratio: 1 / 1;
  background: var(--fondo-suave);
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-img.placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-suave);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.card-img.placeholder::before {
  content: '';
  position: absolute;
  inset: 8%;
  background-color: var(--azul-oscuro);
  -webkit-mask-image: var(--bg-svg);
  mask-image: var(--bg-svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.32;
  pointer-events: none;
}
.card-img.placeholder .placeholder-text {
  position: relative;
  z-index: 1;
}
.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-marca {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--azul-claro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-nombre {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--texto-fuerte);
}
.card-categoria {
  font-size: 0.8rem;
  color: var(--texto-suave);
  margin-top: auto;
}
.card-cta {
  margin-top: 10px;
  background: var(--whatsapp);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radio-chico);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}
.card-cta:hover { background: var(--whatsapp-hover); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--azul-oscuro);
  color: white;
  padding: 48px 20px 32px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}
.footer h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--azul-acento);
}
.footer p, .footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer a:hover { color: white; text-decoration: underline; }

.footer-bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ─── Floating WhatsApp button ───────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--whatsapp);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-grande);
  font-size: 1.8rem;
  z-index: 20;
  transition: transform 0.15s, background 0.15s;
}
.wa-float:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.08);
}

/* ─── Skeleton (loading) ─────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--fondo-suave) 25%, #EEF2F7 50%, var(--fondo-suave) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radio);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Card links a PDP ───────────────────────────────────── */
.card-link-img,
.card-link-text {
  color: inherit;
  text-decoration: none;
  display: block;
}
.card-link-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* ─── PDP (producto individual) ──────────────────────────── */
.pdp {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.breadcrumb {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--azul-oscuro);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.15s;
}
.breadcrumb:hover { opacity: 0.7; }

.pdp-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .pdp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

.pdp-img-wrap {
  border-radius: var(--radio-grande);
  overflow: hidden;
  background: var(--fondo-suave);
}
.pdp-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.pdp-img.placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-suave);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 6rem;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.pdp-img.placeholder::before {
  content: '';
  position: absolute;
  inset: 8%;
  background-color: var(--azul-oscuro);
  -webkit-mask-image: var(--bg-svg);
  mask-image: var(--bg-svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.32;
  pointer-events: none;
}
.pdp-img.placeholder .placeholder-text {
  position: relative;
  z-index: 1;
}
.pdp-img.skeleton {
  aspect-ratio: 1 / 1;
}

.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pdp-marca {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--azul-claro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pdp-nombre {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  margin: 0;
  color: var(--texto-fuerte);
}
.pdp-categoria {
  font-size: 0.95rem;
  color: var(--texto-suave);
  font-weight: 500;
}
.pdp-descripcion {
  font-size: 1.05rem;
  color: var(--texto-fuerte);
  font-weight: 500;
  margin: 16px 0 0;
  line-height: 1.5;
}
.pdp-descripcion-larga {
  font-size: 0.95rem;
  color: var(--texto-suave);
  margin: 0;
  line-height: 1.6;
}
.pdp-cta {
  margin-top: 12px;
  background: var(--whatsapp);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radio);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s, transform 0.15s;
}
.pdp-cta:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}
.pdp-aclaracion {
  font-size: 0.85rem;
  color: var(--texto-suave);
  margin: 4px 0 0;
}

.pdp-error {
  text-align: center;
  padding: 60px 20px;
}
.pdp-error h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.pdp-error code {
  background: var(--fondo-suave);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
