/* =========================================================
   Cattleya — Base / Reset
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-wine);
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin: 0 0 var(--space-sm);
  text-wrap: pretty;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title .eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--color-magenta);
  margin-bottom: -0.5rem;
}

.text-center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-magenta);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover {
  background: var(--color-magenta-dark);
  box-shadow: var(--shadow-card-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-wine);
  color: var(--color-wine);
}
.btn-outline:hover {
  background: var(--color-wine);
  color: var(--color-white);
}

/* Verde WhatsApp profundo: con texto blanco da 5:1 (el #25D366 original daba 1.98:1). */
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  box-shadow: var(--shadow-card-hover);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: var(--fs-small);
  min-height: 44px;
}

/* --- Foco visible con teclado --- */
:focus-visible {
  outline: 3px solid var(--color-wine);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -4rem;
  z-index: 300;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--color-wine);
  color: var(--color-cream);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--space-xs);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:hover, .product-card:hover, .feature-card:hover, .whatsapp-float:hover {
    transform: none;
  }
}

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-promo {
  background: var(--color-magenta);
  color: var(--color-white);
}
.badge-agotado {
  background: var(--color-danger);
  color: var(--color-white);
}
.badge-disponible {
  background: var(--color-success);
  color: var(--color-white);
}

/* --- Estados de carga / vacío (usados por catalog-*.js) --- */
.state-message {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  color: var(--color-text-muted);
  font-style: italic;
}
