/* Íconos vectoriales a dos tintas (iconos-panel.js), mismo estilo que el front */
/* Compatibilidad: si el navegador aún tiene la versión anterior del script (que dejaba el dibujo junto al ícono),
   el ícono original se oculta igual y no se ven dos. */
.icp-oculto { display: none !important; }
html body .material-icons.icp-host.icp-host, html body #mobile-nav-glass .material-icons.icp-host, html body .nav-item .material-icons.icp-host { font-size: 0 !important; width: auto !important; letter-spacing: 0 !important; line-height: 0 !important; color: inherit; }
.icp-caja { display: inline-flex; flex: 0 0 auto; line-height: 0; vertical-align: middle; }
.icp-caja .icp { width: 100%; height: 100%; display: block; overflow: visible; }
/* Paleta: ciruela + rosa coral en claro; crema + rosa suave en oscuro */
.icp .ic-a { fill: #5B2A63; }
.icp .ic-b { fill: #E8506E; }
.icp .ic-c { fill: #FFFFFF; }
.icp .ic-k { fill: none; stroke: #FFFFFF; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.icp .ic-s { fill: none; stroke: #5B2A63; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.icp .ic-s-flor { stroke: #E8506E; }
[data-theme="dark"] .icp .ic-a { fill: #F7EDE6; }
[data-theme="dark"] .icp .ic-s { stroke: #F7EDE6; }
[data-theme="dark"] .icp .ic-b { fill: #FF8FB1; }
[data-theme="dark"] .icp .ic-s-flor { stroke: #FF8FB1; }
[data-theme="dark"] .icp .ic-c { fill: #2A1B30; }
[data-theme="dark"] .icp .ic-k { stroke: #2A1B30; }
.btn:not(.btn-outline) .icp .ic-b, .btn-primary .icp .ic-b { fill: #FFD9E8; }
.bottom-liquid-link .icp-caja { width: 24px !important; height: 24px !important; }
/* Sobre botones rellenos, el verde pasa a blanco para que se lea */
.btn:not(.btn-outline) .icp .ic-a, .btn-primary .icp .ic-a { fill: #FFFFFF; }
.mobile-nav-bar .nav-item .icp-caja, .bottom-liquid-link .icp-caja { width: 24px !important; height: 24px !important; }
.premium-circle-btn .icp-caja { width: 22px !important; height: 22px !important; }
.add-to-cart .icp .ic-a, .btn-add .icp .ic-a, button[class*="primary"] .icp .ic-a { fill: #FFFFFF; }

/* ── Animaciones de los íconos: solo donde tienen sentido ──
   En reposo se mueven poco y despacio (destellos, flores, campana); al pasar
   el cursor o tocar, cada ícono hace su gesto. Quien pide menos movimiento
   en su sistema no ve ninguna. */
.icp, .icp * { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  /* En reposo */
  .icp-caja[data-ic="auto_awesome"] .ic-b { animation: icp-destello 2.4s ease-in-out infinite; }
  .icp-caja[data-ic="auto_awesome"] .ic-a { animation: icp-destello 2.4s ease-in-out infinite; animation-delay: -1.2s; }
  .icp-caja:is([data-ic="notifications"], [data-ic="notifications_none"]) .icp { transform-origin: 50% 10%; animation: icp-campana 4s ease-in-out infinite; }
  .icp-caja[data-ic="local_florist"] .icp, .icp-caja[data-ic="spa"] .icp { transform-origin: 50% 100%; animation: icp-mecer 3.6s ease-in-out infinite; }
  .icp-caja[data-ic="favorite"] .icp { animation: icp-latido 2.2s ease-in-out infinite; }
  /* Brillo del sello: solo opacidad del acento (sin filtros ni capas extra) y en pausa fuera de pantalla */
  .icp-caja:is([data-ic="verified"], [data-ic="verified_user"]) .ic-b,
  :is(.bottom-liquid-link[aria-current="page"], .nav-item.active) .icp-caja .ic-b { animation: icp-pulso 3s ease-in-out infinite; }
  .icp-caja[data-ic="report_problem"] .ic-b { animation: icp-parpadeo 1.6s ease-in-out infinite; }
  .icp-caja[data-ic="insights"] .ic-b { animation: icp-destello 2.8s ease-in-out infinite; }
  .icp-caja[data-ic="schedule"] .ic-k { transform-origin: 0% 0%; }
  .icp-caja[data-ic="mail"] .ic-b, .icp-caja[data-ic="email"] .ic-b { animation: icp-parpadeo 2.4s ease-in-out infinite; }

  /* Al pasar el cursor o tocar (el botón o enlace que contiene el ícono) */
  :is(a, button, label, .nav-item):is(:hover, :active, :focus-visible) .icp-caja .icp { animation: icp-salto .5s cubic-bezier(.3,1.6,.5,1); }
  :is(a, button, .nav-item):is(:hover, :active) .icp-caja[data-ic="shopping_cart"] .icp { animation: icp-carrito .6s ease-in-out; }
  :is(a, button, .nav-item):is(:hover, :active) .icp-caja[data-ic="search"] .icp { animation: icp-lupa .7s ease-in-out; }
  :is(a, button, .nav-item):is(:hover, :active) .icp-caja[data-ic="home"] .ic-b { animation: icp-latido .6s ease-in-out; }
  :is(a, button):is(:hover, :active) .icp-caja[data-ic="logout"] .ic-b { animation: icp-salir .6s ease-in-out; }
  :is(a, button):is(:hover, :active) .icp-caja[data-ic="send"] .icp { animation: icp-enviar .6s ease-in; }
  :is(a, button):is(:hover, :active) .icp-caja[data-ic="delete"] .ic-b { transform-origin: 0% 100%; animation: icp-tapa .5s ease-in-out; }
  :is(a, button):is(:hover, :active) .icp-caja[data-ic="edit"] .icp { animation: icp-escribir .6s ease-in-out; }
  :is(a, button, label):is(:hover, :active) .icp-caja:is([data-ic="photo_camera"], [data-ic="add_a_photo"]) .ic-b { animation: icp-flash .5s ease-out; }
  :is(a, button):is(:hover, :active) .icp-caja[data-ic="menu"] .ic-b { animation: icp-menu .5s ease-in-out; }
  :is(a, button):is(:hover, :active) .icp-caja:is([data-ic="dark_mode"], [data-ic="light_mode"]) .icp { animation: icp-girar .7s ease-in-out; }
  :is(a, button):is(:hover, :active) .icp-caja:is([data-ic="favorite"], [data-ic="favorite_border"]) .icp { animation: icp-latido .5s ease-in-out 2; }
  :is(a, button):is(:hover, :active) .icp-caja[data-ic="local_shipping"] .icp { animation: icp-camion .8s ease-in-out; }
  :is(a, button):is(:hover, :active) .icp-caja:is([data-ic="redeem"], [data-ic="card_giftcard"]) .icp { animation: icp-carrito .6s ease-in-out; }

  /* La sección abierta en la barra de abajo respira un poco */
}
@keyframes icp-destello { 0%,100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.75) rotate(20deg); opacity: .6; } }
@keyframes icp-campana { 0%,80%,100% { transform: rotate(0); } 84% { transform: rotate(14deg); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
@keyframes icp-mecer { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes icp-latido { 0%,100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(.96); } 45% { transform: scale(1.08); } }
@keyframes icp-pulso { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes icp-brillo { 0%,100% { filter: brightness(1) drop-shadow(0 0 0 transparent); } 50% { filter: brightness(1.2) drop-shadow(0 0 3px rgba(232,80,110,.5)); } }
@keyframes icp-parpadeo { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes icp-salto { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-3px) scale(1.12); } 100% { transform: translateY(0) scale(1); } }
@keyframes icp-carrito { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 50% { transform: rotate(8deg) translateX(2px); } 75% { transform: rotate(-4deg); } }
@keyframes icp-lupa { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-2px,-2px); } 50% { transform: translate(2px,-1px); } 75% { transform: translate(-1px,2px); } }
@keyframes icp-salir { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes icp-enviar { 0% { transform: translate(0,0); opacity: 1; } 60% { transform: translate(8px,-6px); opacity: 0; } 61% { transform: translate(-6px,4px); opacity: 0; } 100% { transform: translate(0,0); opacity: 1; } }
@keyframes icp-tapa { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-18deg) translateY(-1px); } }
@keyframes icp-escribir { 0%,100% { transform: rotate(0) translate(0,0); } 25% { transform: rotate(-8deg) translate(-1px,1px); } 50% { transform: rotate(4deg) translate(2px,0); } 75% { transform: rotate(-4deg) translate(0,1px); } }
@keyframes icp-flash { 0% { filter: brightness(1); } 30% { filter: brightness(2.2) drop-shadow(0 0 5px #fff); } 100% { filter: brightness(1); } }
@keyframes icp-menu { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.6); } }
@keyframes icp-girar { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes icp-camion { 0%,100% { transform: translateX(0); } 40% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }

/* Botón de tema: solo se ve el ícono que toca (sol en oscuro, luna en claro) */
html[data-theme="dark"] .btn.dark-toggle .icon-sun,
html:not([data-theme="dark"]) .btn.dark-toggle .icon-moon { display: none !important; }
html[data-theme="dark"] .dark-toggle .icon-moon { opacity: 1; }
/* Botón del carrito (fondo rosa): ícono en ciruela para que contraste en ambos temas */
#cartBtn .icp .ic-a { fill: #5B2A63 !important; }
#cartBtn .icp .ic-s { stroke: #5B2A63 !important; }
#cartBtn .icp .ic-b { fill: #E8506E !important; }

/* El pulso de WhatsApp ya era transformación + opacidad: se le pide capa propia para no redibujar la página */
.whatsapp-float::after { will-change: transform, opacity; }
.icp-caja.icp-fuera *, .icp-caja.icp-fuera { animation: none !important; }

/* Rendimiento sin cambio visual: estos botones tienen fondo sólido, así que el desenfoque de fondo no se ve,
   pero obligaba al navegador a crear una capa por botón (36 solo en el catálogo). */
html body :is(.add-btn, .btn-primary, .cart-btn) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
