/* Ivanuki | Fase 3 — microinteracciones de catálogo (03/11/2026)
   Solo presentación: no modifica precios, elecciones, enlaces ni verificación.
   Importante: mantener transiciones sutiles, nunca añadir efectos por encima de iconos originales. */

/* Interacciones táctiles y de ratón, sin alterar tamaño de los elementos en el flujo. */
.v21-actions .v21-action,
.v21-offers .pack-whatsapp,
.v21-services a[href],
.city-configurator .city-submit,
.city-configurator .city-reset,
.city-configurator .city-select-button,
.city-configurator .city-preview-trigger,
.city-configurator .city-barn-card,
.v21-offers .service-pick,
.v21-offers .service-disclose{
  transition:transform .22s ease, box-shadow .24s ease, border-color .22s ease, filter .22s ease, background-color .22s ease;
}
@media (hover:hover) and (pointer:fine){
  .v21-actions .v21-action:not([disabled]):hover,
  .v21-offers .pack-whatsapp:not(.disabled):hover,
  .v21-services a[href]:hover,
  .city-configurator .city-submit:not(.is-disabled):hover{
    transform:translateY(-2px);filter:brightness(1.065);
    box-shadow:0 6px 18px rgba(0,0,0,.21);
  }
  .city-configurator .city-select-button:not(:disabled):hover,
  .city-configurator .city-preview-trigger:not(:disabled):hover,
  .city-configurator .city-barn-card:not(:disabled):hover,
  .v21-offers .service-pick:not(:disabled):hover{transform:translateY(-1px)}
}
.v21-actions .v21-action:not([disabled]):active,
.v21-offers .pack-whatsapp:not(.disabled):active,
.v21-services a[href]:active,
.city-configurator .city-submit:not(.is-disabled):active,
.city-configurator .city-barn-card:not(:disabled):active,
.v21-offers .service-pick:not(:disabled):active{transform:translateY(1px) scale(.995)}

/* Servicios del pack: el desplegable entra suavemente; no animamos altura auto. */
.v21-offers .pack-panel.active .pack-body{animation:iv3-pack-open .3s cubic-bezier(.2,.7,.2,1) both}
.v21-offers .service-entry.is-expanded .service-detail{animation:iv3-detail-open .27s cubic-bezier(.18,.7,.3,1) both}
.v21-offers .service-entry.iv3-just-selected .service-entry-bar{
  animation:iv3-selection-light .56s ease-out both;border-radius:9px;
}
.v21-offers .pack-meta .selected-count.iv3-price-changed,
.v21-offers .pack-summary.iv3-summary-changed{animation:iv3-text-pop .4s ease-out both}

/* Ciudad a la carta: confirma la selección donde se hizo y en el resumen. */
.city-configurator .city-group[open]>.city-group-body{animation:iv3-detail-open .28s cubic-bezier(.18,.7,.3,1) both}
.city-configurator .city-option-row.iv3-just-selected .city-switch,
.city-configurator .city-select-field.iv3-just-selected .city-select-button,
.city-configurator .city-select-field.iv3-just-selected .city-level-input,
.city-configurator .city-barn-card.iv3-just-selected{
  animation:iv3-selection-light .56s ease-out both;
}
.city-configurator .city-group.iv3-group-confirm .city-category-icon img{
  animation:iv3-icon-ack .48s cubic-bezier(.2,.7,.3,1) both;
}
.city-configurator .city-group.iv3-group-confirm .city-group-badge:not([hidden]){
  animation:iv3-text-pop .4s ease-out both;
}
.city-configurator #city-total-price.iv3-price-changed,
.city-configurator #city-dock-total.iv3-price-changed{
  display:inline-block;transform-origin:center;
  animation:iv3-total-ack .5s cubic-bezier(.2,.6,.2,1) both;
}
.city-configurator .city-summary-panel.iv3-summary-changed .city-summary-total{
  animation:iv3-summary-light .7s ease-out both;
}
/* One brief gleam restricted to the EXISTING illustrated summary banner on selection. */
.city-configurator .city-summary-banner{position:relative;overflow:hidden}
.city-configurator .city-summary-banner::after{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:0;
  background:linear-gradient(115deg,transparent 40%,rgba(253,231,170,.10) 52%,transparent 64%);
  transform:translateX(-60%);
}
.city-configurator .city-summary-panel.iv3-summary-changed .city-summary-banner::after{
  animation:iv3-banner-gleam .72s ease-out both;
}

@keyframes iv3-pack-open{from{opacity:.68;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes iv3-detail-open{from{opacity:.55;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@keyframes iv3-selection-light{0%{filter:brightness(1);box-shadow:0 0 0 0 rgba(233,210,133,0)}34%{filter:brightness(1.12);box-shadow:inset 0 0 0 1px rgba(250,220,153,.45),0 0 12px rgba(200,177,111,.13)}100%{filter:brightness(1);box-shadow:0 0 0 0 rgba(233,210,133,0)}}
@keyframes iv3-text-pop{0%{opacity:.7;filter:brightness(1.32)}60%{opacity:1;filter:brightness(1.15)}100%{opacity:1;filter:brightness(1)}}
@keyframes iv3-total-ack{0%{transform:scale(1);filter:brightness(1)}36%{transform:scale(1.075);filter:brightness(1.35)}100%{transform:scale(1);filter:brightness(1)}}
@keyframes iv3-summary-light{0%{filter:brightness(1)}35%{filter:brightness(1.08)}100%{filter:brightness(1)}}
@keyframes iv3-icon-ack{0%{transform:translateY(0) scale(1)}35%{transform:translateY(-3px) scale(1.055)}100%{transform:translateY(0) scale(1)}}
@keyframes iv3-banner-gleam{0%{opacity:0;transform:translateX(-65%)}30%{opacity:1}100%{opacity:0;transform:translateX(65%)}}

/* No movement for people who request reduced motion. */
@media (prefers-reduced-motion:reduce){
 .v21-actions .v21-action,.v21-offers .pack-whatsapp,.v21-services a[href],
 .city-configurator .city-submit,.city-configurator .city-reset,
 .city-configurator .city-select-button,.city-configurator .city-preview-trigger,
 .city-configurator .city-barn-card,.v21-offers .service-pick,.v21-offers .service-disclose{
   transition:none!important;transform:none!important;
 }
 .v21-offers .pack-panel.active .pack-body,
 .v21-offers .service-entry.is-expanded .service-detail,
 .v21-offers .service-entry.iv3-just-selected .service-entry-bar,
 .v21-offers .pack-meta .selected-count.iv3-price-changed,
 .v21-offers .pack-summary.iv3-summary-changed,
 .city-configurator .city-group[open]>.city-group-body,
 .city-configurator .city-option-row.iv3-just-selected .city-switch,
 .city-configurator .city-select-field.iv3-just-selected .city-select-button,
 .city-configurator .city-select-field.iv3-just-selected .city-level-input,
 .city-configurator .city-barn-card.iv3-just-selected,
 .city-configurator .city-group.iv3-group-confirm .city-category-icon img,
 .city-configurator .city-group.iv3-group-confirm .city-group-badge:not([hidden]),
 .city-configurator #city-total-price.iv3-price-changed,
 .city-configurator #city-dock-total.iv3-price-changed,
 .city-configurator .city-summary-panel.iv3-summary-changed .city-summary-total,
 .city-configurator .city-summary-panel.iv3-summary-changed .city-summary-banner::after{
   animation:none!important;transform:none!important;
 }
}
