/* Daniela Collection — hoja de estilos compartida */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #8C6B57;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- index.html ---- */
body { background: #F7F1EA; color: #2B221C; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 90ms); }

.torn-top { position: relative; }
.torn-top svg { display: block; width: 100%; height: 48px; }

.btn-primary {
  background: #2B221C;
  color: #F7F1EA;
  transition: background-color .3s ease, transform .3s ease;
}
.btn-primary:hover { background: #8C6B57; transform: translateY(-1px); }

.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: currentColor; transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }

#mobileMenu { transition: opacity .3s ease, visibility .3s ease; }

.cta-whatsapp-btn {
  position: relative;
  background: linear-gradient(145deg, #34e07b, #1fa855);
  box-shadow:
    0 10px 22px rgba(15, 100, 50, .45),
    inset 0 2px 2px rgba(255,255,255,.4),
    inset 0 -3px 5px rgba(0,0,0,.28);
  transition: transform .25s ease;
}
.cta-whatsapp-btn:hover { transform: scale(1.07); }
.cta-whatsapp-btn::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 9999px;
  border: 2px solid rgba(37,211,102,.55);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: scale(.92); opacity: .85; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

.product-card img { transition: transform .6s ease; }
.product-card:hover img { transform: scale(1.04); }

/* ---- tarjeta.html ---- */
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.accordion-panel.open { grid-template-rows: 1fr; }
.accordion-panel > div { overflow: hidden; }

.action-btn { transition: transform .2s ease, background-color .2s ease; }
.action-btn:active { transform: scale(.97); }

.modal-backdrop { transition: opacity .25s ease; }
.modal-card { transition: opacity .25s ease, transform .25s ease; }

.toast { transition: opacity .3s ease, transform .3s ease; }
