/* =============================================
   CATÁLOGO TEJI MAX 2026 — CSS COMPLETO
   Paleta: azul noche, amarillo, blanco cálido
   Fuente: Montserrat
   ============================================= */

/* ── VARIABLES Y RESET ── */
:root {
  --azul-noche:     #121E26;
  --amarillo:       #F2C53D;
  --amarillo-oscuro:#D4A82E;
  --blanco-calido:  #FAF8F3;
  --blanco:         #FFFFFF;
  --gris-texto:     #555555;
  --gris-claro:     #f5f5f5;
  --verde-wa:       #25D366;
  --verde-wa-dark:  #128C7E;

  --shadow-sm:  0 2px 8px rgba(18,30,38,0.10);
  --shadow-md:  0 4px 20px rgba(18,30,38,0.15);
  --shadow-lg:  0 8px 40px rgba(18,30,38,0.25);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--azul-noche);
  background: var(--blanco-calido);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }


/* =============================================
   BOTONES REUTILIZABLES
   ============================================= */
.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.cat-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-btn:active {
  transform: translateY(0);
}

.cat-btn--amarillo {
  background: var(--amarillo);
  color: var(--azul-noche);
}

.cat-btn--amarillo:hover {
  background: var(--amarillo-oscuro);
}

.cat-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.cat-btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.cat-btn--full {
  width: 100%;
}


/* =============================================
   SEPARADOR COSTURA
   ============================================= */
.stitch-divider {
  display: block;
  width: 100%;
  height: 8px;
}


/* =============================================
   HEADER STICKY
   ============================================= */
.cat-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(18, 30, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 197, 61, 0.15);
  transition: background var(--transition), box-shadow var(--transition);
}

/* Clase que se añade al hacer scroll */
.cat-header.scrolled {
  background: rgba(18, 30, 38, 0.98);
  box-shadow: var(--shadow-lg);
}

.cat-header__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo */
.cat-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blanco);
  flex-shrink: 0;
}

.cat-header__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.cat-header__logo-text {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--blanco);
}

.cat-header__logo-text strong {
  font-weight: 800;
  color: var(--amarillo);
}

/* Título central */
.cat-header__title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amarillo);
  text-transform: uppercase;
}

/* Acciones */
.cat-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cat-header__back {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

.cat-header__back:hover {
  color: var(--blanco);
}

/* Hamburguesa */
.cat-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  margin-left: auto;
}

.cat-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Menú mobile */
.cat-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--azul-noche);
  border-top: 1px solid rgba(242,197,61,0.15);
}

.cat-mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}

.cat-mobile-menu a:hover {
  color: var(--amarillo);
}

.cat-mobile-menu.is-open {
  display: flex;
}


/* =============================================
   HERO
   ============================================= */
.cat-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  overflow: hidden;
  margin-top: 0; /* el padding-top compensa el header fijo */
}

/* Imagen de fondo */
.cat-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/feedAbril.png');
  background-size: cover;
  background-position: center;
  /* Si la imagen no carga, usa gradiente de respaldo */
  background-color: var(--azul-noche);
  z-index: 0;
}

/* Overlay azul noche 70% */
.cat-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 38, 0.72);
  z-index: 1;
}

/* Contenido sobre el overlay */
.cat-hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.cat-hero__badge {
  display: inline-block;
  background: rgba(242, 197, 61, 0.15);
  border: 1px solid var(--amarillo);
  color: var(--amarillo);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.cat-hero__heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--blanco);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cat-hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
}


/* =============================================
   FILTROS STICKY
   ============================================= */
.cat-filters {
  position: sticky;
  top: 68px; /* altura del header */
  z-index: 900;
  background: var(--blanco);
  border-bottom: 1px solid rgba(18,30,38,0.08);
  box-shadow: 0 2px 12px rgba(18,30,38,0.06);
}

.cat-filters__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cat-filters__inner::-webkit-scrollbar {
  display: none;
}

.cat-filter-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1.5px solid rgba(18,30,38,0.15);
  background: transparent;
  color: var(--gris-texto);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.cat-filter-btn:hover {
  border-color: var(--amarillo);
  color: var(--azul-noche);
}

.cat-filter-btn--active {
  background: var(--amarillo);
  color: var(--azul-noche);
  border-color: var(--amarillo);
}


/* =============================================
   GRID DE PRODUCTOS
   ============================================= */
.cat-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Mensaje sin resultados */
.cat-no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gris-texto);
}

.cat-no-results i {
  font-size: 3rem;
  color: var(--amarillo);
  margin-bottom: 1rem;
  display: block;
}


/* ── TARJETA DE PRODUCTO ── */
.cat-card {
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  /* Animación de entrada */
  animation: fadeInUp 0.5s ease both;
  animation-delay: calc(var(--card-index, 0) * 0.05s);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--amarillo);
  border-style: dashed;
  border-radius: var(--radius);
}

/* Estado oculto por filtro */
.cat-card--hidden {
  display: none;
}

/* Animación de salida/entrada al filtrar */
.cat-card--fade-out {
  animation: fadeOutScale 0.2s ease forwards;
}

.cat-card--fade-in {
  animation: fadeInScale 0.3s ease both;
}


/* Imagen */
.cat-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--azul-noche); /* placeholder mientras carga */
}

/* Shimmer de carga */
.cat-card__img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(242,197,61,0.08) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 1;
  pointer-events: none;
}

/* Cuando la imagen cargó, el shimmer desaparece con CSS */
.cat-card__img-wrap:has(.cat-card__img[src]):not(.cat-card__img-wrap--placeholder)::before {
  display: none;
}

.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 2;
}

.cat-card:hover .cat-card__img {
  transform: scale(1.05);
}

/* Placeholder cuando imagen no carga */
.cat-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(242,197,61,0.5);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  z-index: 0; /* queda detrás de la imagen real */
}

.cat-card__img-placeholder i {
  font-size: 3rem;
  opacity: 0.4;
}

/* Cuando hay error en la imagen, mostrar placeholder */
.cat-card__img-wrap--placeholder .cat-card__img-placeholder {
  z-index: 2;
}

/* Badge de categoría */
.cat-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  background: var(--azul-noche);
  color: var(--amarillo);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  border: 1px solid rgba(242,197,61,0.3);
}

/* Hover overlay con botón "Ver detalle" */
.cat-card__hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,30,38,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 3;
}

.cat-card:hover .cat-card__hover-overlay {
  opacity: 1;
}

.cat-card__detail-btn {
  background: var(--amarillo);
  color: var(--azul-noche);
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.cat-card__detail-btn:hover {
  transform: scale(1.05);
}


/* Info del producto */
.cat-card__info {
  padding: 1.25rem;
}

.cat-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--azul-noche);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.cat-card__materials {
  font-size: 0.78rem;
  color: var(--gris-texto);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Tallas */
.cat-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.cat-card__sizes span {
  background: var(--gris-claro);
  color: var(--azul-noche);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* CTA WhatsApp en tarjeta */
.cat-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--verde-wa);
  color: var(--blanco);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  text-align: center;
}

.cat-card__cta:hover {
  background: var(--verde-wa-dark);
  transform: translateY(-1px);
}


/* =============================================
   LIGHTBOX
   ============================================= */
.cat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cat-lightbox.is-open {
  pointer-events: all;
  opacity: 1;
}

.cat-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 38, 0.95);
  cursor: pointer;
}

.cat-lightbox__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 90vw;
  max-height: 95vh;
  transform: scale(0.93);
  transition: transform 0.3s ease;
  padding: 0 3rem;
}

.cat-lightbox.is-open .cat-lightbox__content {
  transform: scale(1);
}

/* Botón cerrar */
.cat-lightbox__close {
  position: absolute;
  top: -1rem;
  right: 0;
  background: var(--amarillo);
  color: var(--azul-noche);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  z-index: 5;
}

.cat-lightbox__close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* Flechas de navegación */
.cat-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(242,197,61,0.9);
  color: var(--azul-noche);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 5;
}

.cat-lightbox__arrow:hover {
  background: var(--amarillo);
  transform: translateY(-50%) scale(1.1);
}

.cat-lightbox__arrow--prev {
  left: 0;
}

.cat-lightbox__arrow--next {
  right: 0;
}

/* Imagen del lightbox */
.cat-lightbox__img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 65vh;
  max-width: 75vw;
  min-width: 280px;
}

.cat-lightbox__img {
  max-height: 65vh;
  max-width: 75vw;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

.cat-lightbox__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242,197,61,0.4);
  font-size: 5rem;
  background: rgba(18,30,38,0.5);
  border-radius: var(--radius);
}

/* Info del lightbox */
.cat-lightbox__info {
  background: rgba(18,30,38,0.85);
  border: 1px solid rgba(242,197,61,0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.cat-lightbox__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 0.4rem;
}

.cat-lightbox__materials {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}

.cat-lightbox__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.cat-lightbox__sizes span {
  background: rgba(242,197,61,0.15);
  color: var(--amarillo);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(242,197,61,0.3);
}


/* =============================================
   SECCIÓN FORMULARIO
   ============================================= */
.cat-form-section {
  position: relative;
  background: var(--azul-noche);
  padding: 5rem 2rem;
  overflow: hidden;
}

/* Esquinas de cruz dorada */
.cat-corner {
  position: absolute;
  z-index: 2;
  opacity: 0.6;
}

.cat-corner--tl { top: 1.5rem;  left: 1.5rem; }
.cat-corner--tr { top: 1.5rem;  right: 1.5rem; }
.cat-corner--bl { bottom: 1.5rem; left: 1.5rem; }
.cat-corner--br { bottom: 1.5rem; right: 1.5rem; }

.cat-form-section__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.cat-form-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.cat-form-section__heading {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.cat-form-section__sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

/* Formulario */
.cat-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(242,197,61,0.15);
  border-radius: var(--radius);
  padding: 2rem;
}

.cat-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cat-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cat-form-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
}

.cat-form-optional {
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

.cat-form-input-wrap {
  position: relative;
}

.cat-form-input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  pointer-events: none;
}

.cat-form-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: var(--blanco);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.cat-form-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.cat-form-input:focus {
  border-color: var(--amarillo);
  background: rgba(255,255,255,0.12);
}

.cat-form-input:focus + i,
.cat-form-input-wrap:focus-within i {
  color: var(--amarillo);
}

.cat-form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.cat-form-select option {
  background: var(--azul-noche);
  color: var(--blanco);
}

/* Error */
.cat-form-error {
  color: #ff6b6b;
  font-size: 0.75rem;
  font-weight: 500;
  min-height: 1.1em;
}

/* Disclaimer */
.cat-form-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* Mensaje de éxito */
.cat-form-success {
  text-align: center;
  padding: 2rem;
}

.cat-form-success__icon {
  font-size: 3.5rem;
  color: var(--verde-wa);
  margin-bottom: 1rem;
}

.cat-form-success h4 {
  font-size: 1.4rem;
  color: var(--blanco);
  margin-bottom: 0.5rem;
}

.cat-form-success p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}


/* =============================================
   FOOTER
   ============================================= */
.cat-footer {
  background: var(--azul-noche);
  border-top: 1px solid rgba(242,197,61,0.12);
  padding: 4rem 0 0;
}

.cat-footer__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.cat-footer__col--brand .cat-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blanco);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 400;
}

.cat-footer__col--brand .cat-footer__logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  filter: brightness(0) invert(1);
}

.cat-footer__col--brand .cat-footer__logo strong {
  font-weight: 800;
  color: var(--amarillo);
}

.cat-footer__tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cat-footer__social {
  display: flex;
  gap: 0.75rem;
}

.cat-footer__social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.cat-footer__social a:hover {
  background: var(--amarillo);
  color: var(--azul-noche);
}

.cat-footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amarillo);
  margin-bottom: 1.25rem;
}

.cat-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cat-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
}

.cat-footer__contact-list i {
  color: var(--amarillo);
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 14px;
}

.cat-footer__contact-list a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.cat-footer__contact-list a:hover {
  color: var(--amarillo);
}

.cat-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cat-footer__nav-list a {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cat-footer__nav-list a:hover {
  color: var(--amarillo);
}

/* Código descuento */
.cat-footer__discount {
  background: rgba(242,197,61,0.08);
  border: 1px solid rgba(242,197,61,0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.cat-footer__discount-code {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amarillo);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.cat-footer__discount-text {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  line-height: 1.5;
}

.cat-footer__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--amarillo);
  font-size: 0.85rem;
  font-weight: 600;
  transition: gap var(--transition);
}

.cat-footer__back-link:hover {
  gap: 0.6rem;
}

/* Footer bottom */
.cat-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 2rem;
  text-align: center;
}

.cat-footer__bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
}


/* =============================================
   BOTÓN WHATSAPP FLOTANTE (solo mobile)
   ============================================= */
.cat-wa-float {
  display: none; /* se muestra en mobile via media query */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--verde-wa);
  color: var(--blanco);
  text-align: center;
  padding: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  z-index: 9000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transition: background var(--transition);
  font-family: 'Montserrat', sans-serif;
}

.cat-wa-float:hover {
  background: var(--verde-wa-dark);
}

.cat-wa-float i {
  font-size: 1.2rem;
}


/* =============================================
   ANIMACIONES @KEYFRAMES
   ============================================= */

/* Entrada de tarjetas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOutScale {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.92);
  }
}

/* Shimmer de lazy loading */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Stagger de tarjetas: asigna --card-index via JS */
.cat-card:nth-child(1)  { animation-delay: 0.05s; }
.cat-card:nth-child(2)  { animation-delay: 0.10s; }
.cat-card:nth-child(3)  { animation-delay: 0.15s; }
.cat-card:nth-child(4)  { animation-delay: 0.20s; }
.cat-card:nth-child(5)  { animation-delay: 0.25s; }
.cat-card:nth-child(6)  { animation-delay: 0.30s; }
.cat-card:nth-child(7)  { animation-delay: 0.05s; }
.cat-card:nth-child(8)  { animation-delay: 0.10s; }
.cat-card:nth-child(9)  { animation-delay: 0.15s; }
.cat-card:nth-child(10) { animation-delay: 0.20s; }
.cat-card:nth-child(11) { animation-delay: 0.25s; }
.cat-card:nth-child(12) { animation-delay: 0.30s; }


/* =============================================
   RESPONSIVE — 1024px (tablet grande / landscape)
   ============================================= */
@media (max-width: 1024px) {

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cat-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .cat-header__title {
    font-size: 0.65rem;
  }
}


/* =============================================
   RESPONSIVE — 768px (mobile)
   ============================================= */
@media (max-width: 768px) {

  /* Header */
  .cat-header__title { display: none; }
  .cat-header__actions { display: none; }
  .cat-hamburger { display: flex; }

  .cat-header__inner {
    padding: 0.75rem 1.25rem;
  }

  /* Filtros */
  .cat-filters {
    top: 60px;
  }

  .cat-filters__inner {
    padding: 0.6rem 1rem;
    gap: 0.4rem;
  }

  .cat-filter-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
  }

  /* Hero */
  .cat-hero {
    min-height: 50vh;
    padding: 7rem 1.5rem 4rem;
  }

  /* Grid */
  .cat-main {
    padding: 2rem 1rem;
  }

  .cat-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Lightbox */
  .cat-lightbox__content {
    padding: 0 2.5rem;
    max-width: 95vw;
  }

  .cat-lightbox__img {
    max-height: 50vh;
    max-width: 85vw;
  }

  .cat-lightbox__arrow {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  /* Formulario */
  .cat-form-section {
    padding: 3.5rem 1.25rem;
  }

  .cat-form-wrap {
    padding: 1.5rem;
  }

  /* Footer */
  .cat-footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.25rem 2rem;
  }

  /* Botón flotante mobile: mostrar */
  .cat-wa-float {
    display: flex;
    /* Espacio extra para no tapar contenido */
  }

  /* Espacio extra al fondo para el botón flotante */
  .cat-footer__bottom {
    padding-bottom: 4.5rem;
  }
}


/* =============================================
   UTILIDADES
   ============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Scroll suave y padding-top para anclas con header fijo */
[id] {
  scroll-margin-top: 80px;
}
