/* Soft 3D icons. Colours come from the panel palette (shared/panel-v2.css); the store
   (pedir/portada.css) switches the secondary tones to its cream palette with the --cc3-* variables. */
:root {
  --cc-icon-success: var(--v2-green, #15703a);
  --cc-icon-error: var(--v2-red-dark, #cc0709);
  --cc-motion-accent: #ea090b;
  --cc3-red-depth: #a30507;
  --cc3-redDark-depth: #7d0405;
  --cc3-neutral-depth: #a8a196;
  --cc3-cream-depth: #cfc9bf;
  --cc3-bun-depth: #cfaf88;
  --cc3-green-depth: #0e5229;
  --cc3-ink-depth: #151410;
}
/* Depth: the same shape, darker, shifted down. Rounded solids also stroke their depth. */
.cc3-d.cc3-red { fill: var(--cc3-red-depth); } .cc3-d.cc3-red.cc3-r { stroke: var(--cc3-red-depth); }
.cc3-d.cc3-redDark { fill: var(--cc3-redDark-depth); } .cc3-d.cc3-redDark.cc3-r { stroke: var(--cc3-redDark-depth); }
.cc3-d.cc3-neutral { fill: var(--cc3-neutral-depth); }
.cc3-d.cc3-cream { fill: var(--cc3-cream-depth); }
.cc3-d.cc3-bun { fill: var(--cc3-bun-depth); }
.cc3-d.cc3-green { fill: var(--cc3-green-depth); }
.cc3-d.cc3-ink { fill: var(--cc3-ink-depth); }
/* On red surfaces (primary buttons, red notices) a red icon would vanish: red turns white, cream turns red. */
.acceso__entrar, .btn--rojo, .btn--primary, .notice--error { --cc-motion-accent: currentColor; }
:is(.acceso__entrar, .btn--rojo, .btn--primary, .notice--error) :is(.cc3-f.cc3-red, .cc3-f.cc3-redDark) { fill: #fff; stroke: #fff; }
:is(.acceso__entrar, .btn--rojo, .btn--primary, .notice--error) :is(.cc3-d.cc3-red, .cc3-d.cc3-redDark) { fill: rgba(21, 20, 16, .22); stroke: rgba(21, 20, 16, .22); }
:is(.acceso__entrar, .btn--rojo, .btn--primary, .notice--error) .cc3-f.cc3-cream, :is(.acceso__entrar, .btn--rojo, .btn--primary, .notice--error) .cc3-on-red { fill: #cc0709; }
:is(.acceso__entrar, .btn--rojo, .btn--primary, .notice--error) .cc3-d.cc3-cream { fill: #a30507; }
:is(.acceso__entrar, .btn--rojo, .btn--primary, .notice--error) :is(.cc-success, .cc-error) { stroke: currentColor; }

[data-cc-icon]::before { content: ''; display: inline-block; width: 20px; height: 20px; margin-inline-end: 8px; vertical-align: middle; }
[data-cc-icon="burger"]::before { width: 56px; height: 56px; }
[data-cc-icon="burger"][data-cc-size="28"]::before { width: 28px; height: 28px; }
.cc-hydrated[data-cc-icon]::before { display: none; }
.cc-animated-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: var(--cc-icon-size, 20px); height: var(--cc-icon-size, 20px); margin-inline-end: 8px; vertical-align: middle; line-height: 1; color: inherit; }
.cc-animated-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* States: success = green check, error = red circle with "!". */
.cc-success { stroke: var(--cc-icon-success); }
.cc-error { stroke: var(--cc-icon-error); }
.cc-success, .cc-error { display: none; }
.cc-animated-icon[data-state="success"] .cc-shape,
.cc-animated-icon[data-state="error"] .cc-shape { display: none; }
.cc-animated-icon[data-state="success"] .cc-success { display: block; stroke-dasharray: 1; animation: cc-check .28s ease-out both; }
.cc-animated-icon[data-state="error"] .cc-error { display: block; animation: cc-error-reaction .32s ease-out; }

/* Motion. Everything is still at rest; each icon has one gesture while its action runs. */
.cc-travel, .cc-pin, .cc-shape, .cc-burger, .cc-layer, .cc-waves, .cc-locate-ring, .cc-send-trail { transform-box: fill-box; transform-origin: center; }
.cc-bell { transform-box: view-box; transform-origin: 32px 10px; }
.cc-animated-icon[data-state="loading"]:is([data-kind="login"], [data-kind="register"]) .cc-travel { animation: cc-enter var(--cc-duration) ease-in-out infinite; }
.cc-animated-icon[data-state="loading"][data-kind="upload"] .cc-travel { animation: cc-upload var(--cc-duration) ease-in-out infinite; }
.cc-send-trail { opacity: 0; }
.cc-animated-icon[data-state="loading"][data-kind="send"] .cc-send-trail { animation: cc-trail var(--cc-duration) ease-in-out infinite; }
.cc-animated-icon[data-state="loading"][data-kind="send"] .cc-travel { animation: cc-send var(--cc-duration) ease-in-out infinite; }
/* Location: still pin at rest; when asking for the location it hops and a ripple leaves its tip. */
.cc-locate-ring { opacity: 0; }
.cc-animated-icon:is([data-state="loading"], [data-state="active"])[data-kind="location"] .cc-pin { animation: cc-hop var(--cc-duration) ease-in-out infinite; }
.cc-animated-icon:is([data-state="loading"], [data-state="active"])[data-kind="location"] .cc-locate-ring { animation: cc-locate var(--cc-duration) ease-out infinite; }
.cc-animated-icon:is([data-state="loading"], [data-state="active"])[data-kind="location"] .cc-locate-ring--2 { animation-delay: calc(var(--cc-duration) * .3); }
.cc-animated-icon[data-state="loading"]:is([data-kind="save"], [data-kind="copy"], [data-kind="phone"]) .cc-shape { animation: cc-progress var(--cc-duration) ease-in-out infinite; }
.cc-animated-icon[data-state="active"] .cc-shape { animation: cc-nudge .22s ease-out; }
/* New order: the bell swings from its top and two waves appear. */
.cc-waves { opacity: 0; }
.cc-animated-icon[data-state="attention"] .cc-bell { animation: cc-ring .65s ease-out; }
.cc-animated-icon[data-state="attention"] .cc-waves { animation: cc-waves .65s ease-out; }
@media (hover: hover) {
  button:not(:disabled):hover .cc-animated-icon[data-kind="bell"] .cc-bell { animation: cc-ring .65s ease-out; }
  button:not(:disabled):hover .cc-animated-icon[data-kind="bell"] .cc-waves { animation: cc-waves .65s ease-out; }
}
/* Burger: the layers stack one by one (the loader ring turns with SMIL, see index.js). */
.cc-animated-icon[data-state="loading"] .cc-burger { transform-origin: center 90%; animation: cc-compress var(--cc-burger-duration) ease-in-out infinite; }
.cc-animated-icon[data-state="loading"] .cc-layer { animation: cc-ingredient var(--cc-burger-duration) cubic-bezier(.2,.8,.3,1) infinite; }
.cc-layer--1 { --cc-start: 0%; --cc-lift: 6px; }
.cc-animated-icon[data-state="loading"] .cc-layer--2 { animation-name: cc-ingredient-2; --cc-lift: 10px; }
.cc-animated-icon[data-state="loading"] .cc-layer--3 { animation-name: cc-ingredient-3; --cc-lift: 14px; }
.cc-animated-icon[data-state="loading"] .cc-layer--4 { animation-name: cc-ingredient-4; --cc-lift: 18px; }
.cc-animated-icon[data-state="loading"] .cc-layer--5 { animation-name: cc-ingredient-5; --cc-lift: 22px; }
.cc-animated-icon[data-state="loading"] .cc-layer--6 { animation-name: cc-ingredient-6; --cc-lift: 26px; }
.cc-animated-icon[data-loop="false"] *,
.cc-animated-icon[data-loop="false"] .cc-layer { animation-iteration-count: 1 !important; }
.cc-animated-icon[data-paused="true"] *, html[data-cc-paused="true"] .cc-animated-icon * { animation-play-state: paused !important; }
[hidden] .cc-animated-icon *, .cc-animated-icon[hidden] * { animation: none !important; }

.cc-input-shell { display: block; position: relative; width: 100%; min-width: 0; }
.cc-input-shell input { width: 100%; min-width: 0; padding-inline-start: 42px !important; }
.barra-acciones > .cc-input-shell { flex: 1 1 240px; width: auto; }
.cc-input-icon { position: absolute; top: 50%; inset-inline-start: 12px; display: flex; transform: translateY(-50%); pointer-events: none; }
.cc-input-icon .cc-animated-icon { margin: 0; }
.cc-input-shell:focus-within .cc-animated-icon[data-kind="search"] .cc-shape { transform: rotate(-8deg) scale(1.06); }
.cc-input-icon .cc-shape { transition: transform .16s ease-out; }
.acceso .acceso__ver { display: inline-flex; align-items: center; justify-content: center; }
.acceso__ver .cc-animated-icon { --cc-icon-size: 16px !important; margin-inline-end: 4px; }
.acceso .acceso__clave input { padding-right: 112px; }
.acceso .acceso__ver { min-width: 96px; }
.stepper .cc-animated-icon, .cantidad .cc-animated-icon { margin: 0; }
.stepper [data-cc-icon]::before, .cantidad [data-cc-icon]::before { margin: 0; }
.shop-photo-btn .cc-animated-icon { pointer-events: none; }
.inicio-estado > .cc-animated-icon { display: flex; margin: 0 auto 14px; }
[role="status"][data-cc-icon]:empty::before { display: none; }

@keyframes cc-enter { 0%,100% { transform: translateX(-3px); } 60% { transform: translateX(5px); } }
@keyframes cc-upload { 0%,100% { transform: translateY(3px); } 60% { transform: translateY(-5px); } }
@keyframes cc-send { 0% { transform: translate(0, 0); opacity: 1; } 38% { transform: translate(16px, -10px); opacity: 0; } 39% { transform: translate(-16px, 10px); opacity: 0; } 78%,100% { transform: translate(0, 0); opacity: 1; } }
@keyframes cc-trail { 0%,100% { opacity: .2; transform: translateX(3px); } 60% { opacity: .85; transform: translateX(-3px); } }
@keyframes cc-hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
@keyframes cc-locate { 0% { opacity: .85; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes cc-progress { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes cc-check { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cc-error-reaction { 25% { transform: translateX(-3px); } 60% { transform: translateX(3px); } 100% { transform: translateX(0); } }
@keyframes cc-nudge { 50% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes cc-ring { 15% { transform: rotate(13deg); } 35% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes cc-waves { 0% { opacity: 0; transform: scale(.85); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes cc-compress { 0%,65%,100% { transform: scaleY(1); } 72% { transform: scaleY(.94); } 79% { transform: scaleY(1); } }
@keyframes cc-ingredient { 0% { opacity: 0; transform: translateY(-18px); } 10% { opacity: 1; transform: translateY(1px); } 14%,78% { opacity: 1; transform: translateY(0); } 91% { opacity: .7; transform: translateY(var(--cc-lift)); } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes cc-ingredient-2 { 0%,10% { opacity: 0; transform: translateY(-24px); } 20% { opacity: 1; transform: translateY(1px); } 24%,78% { opacity: 1; transform: translateY(0); } 91% { opacity: .7; transform: translateY(calc(-1 * var(--cc-lift))); } 100% { opacity: 0; transform: translateY(-20px); } }
@keyframes cc-ingredient-3 { 0%,20% { opacity: 0; transform: translateY(-24px); } 30% { opacity: 1; transform: translateY(1px); } 34%,78% { opacity: 1; transform: translateY(0); } 91% { opacity: .7; transform: translateY(calc(-1 * var(--cc-lift))); } 100% { opacity: 0; transform: translateY(-24px); } }
@keyframes cc-ingredient-4 { 0%,30% { opacity: 0; transform: translateY(-24px); } 40% { opacity: 1; transform: translateY(1px); } 44%,78% { opacity: 1; transform: translateY(0); } 91% { opacity: .7; transform: translateY(calc(-1 * var(--cc-lift))); } 100% { opacity: 0; transform: translateY(-28px); } }
@keyframes cc-ingredient-5 { 0%,40% { opacity: 0; transform: translateY(-24px); } 50% { opacity: 1; transform: translateY(1px); } 54%,78% { opacity: 1; transform: translateY(0); } 91% { opacity: .7; transform: translateY(calc(-1 * var(--cc-lift))); } 100% { opacity: 0; transform: translateY(-32px); } }
@keyframes cc-ingredient-6 { 0%,50% { opacity: 0; transform: translateY(-28px); } 60% { opacity: 1; transform: translateY(1px); } 64%,78% { opacity: 1; transform: translateY(0); } 91% { opacity: .7; transform: translateY(calc(-1 * var(--cc-lift))); } 100% { opacity: 0; transform: translateY(-36px); } }
/* Reduced motion: no animation. The reset only touches the moving parts, so the depth offsets
   (transform attributes) and the soft floor shadow keep their look. */
@media (prefers-reduced-motion: reduce) {
  .cc-animated-icon *, .cc-input-icon .cc-shape { animation: none !important; transition: none !important; }
  :is(.cc-travel, .cc-pin, .cc-bell, .cc-shape, .cc-burger, .cc-layer) { transform: none !important; opacity: 1 !important; }
  .cc-animated-icon[data-state="success"] .cc-success { stroke-dashoffset: 0; }
  .cc-locate-ring, .cc-waves, .cc-send-trail { opacity: 0 !important; }
}
