@font-face{
    font-family: "Call The Beauty";
    src: url(/assets/call-the-beauty.otf);
    font-display: swap;
}

/* Paleta sacada del logo: lila, rosa chicle, rosa empolvado del teléfono, gris plata y cobre */
:root{
    --lila: #e39ae9;
    --chicle: #f7a2f4;
    --lila-claro: #f8e1f9;
    --crema: #fff6fd;
    --empolvado: #c4777f;
    --empolvado-os: #a85c68;
    --cobre: #c98b7e;
    --plata: #a79fa6;
    --ciruela: #5a2f55;
    --sombra: 0 10px 30px rgba(120, 50, 120, 0.18);
    --titulos: "Call The Beauty", "Segoe Print", cursive;
    --texto: "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*{
    text-decoration: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html{
    background-color: var(--lila);
    touch-action: manipulation;
    scroll-behavior: smooth;
}

body{
    font-family: var(--texto);
    margin: 0;
    min-height: 100vh;
    overscroll-behavior-y: none;
    overflow-x: hidden;
    color: var(--ciruela);
    touch-action: manipulation;
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 255, 255, 0.45) 0, transparent 38%),
        radial-gradient(circle at 92% 30%, rgba(255, 255, 255, 0.3) 0, transparent 34%),
        linear-gradient(160deg, #e39ae9 0%, #f0a0f0 45%, #f7a2f4 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4, .cesta > p:first-child{ font-family: var(--titulos); font-weight: normal; }
button{ font-family: inherit; }
button:focus-visible, select:focus-visible, a:focus-visible{ outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- CURSOR PERSONALIZADO (solo ratón) ---------- */
@media (hover: hover) and (pointer: fine){
    html, body{
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.7A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z' fill='%23c4777f' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") 6 4, auto;
    }
    a, button, select, .tarjeta-producto, label{
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.6 7.4L22 11l-7.4 2.6L12 21l-2.6-7.4L2 11l7.4-2.6z' fill='%23f7a2f4' stroke='%235a2f55' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 17 17, pointer;
    }
}

.chispa{
    position: fixed;
    z-index: 3000;
    pointer-events: none;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 0 6px var(--chicle), 0 0 2px var(--empolvado);
    animation: chispa 0.8s ease-out forwards;
}

@keyframes chispa{
    from{ opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
    to{ opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.2) rotate(120deg); }
}

/* ---------- NAV ---------- */
.nav-bar{
    position: fixed;
    display: flex;
    top: 14px;
    right: 12px;
    left: 12px;
    padding: 8px 14px;
    align-items: center;
    border-radius: 60px;
    justify-content: space-between;
    background: rgba(255, 246, 253, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: var(--sombra);
    z-index: 800;
    transition: padding 0.3s ease, top 0.3s ease;
}

.nav-bar.compacto{ top: 8px; padding: 4px 14px; }

.logo{
    width: 96px;
    height: 96px;
    border-radius: 28%;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(120, 50, 120, 0.25);
    transition: width 0.3s ease, height 0.3s ease;
}

.nav-bar.compacto .logo{ width: 58px; height: 58px; }

.logo img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.logo:hover img{ transform: scale(1.12) rotate(-3deg); }

.nav-bar h2{
    margin: 0;
    text-align: center;
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 0 var(--empolvado), 0 4px 14px rgba(120, 50, 120, 0.3);
    letter-spacing: 1px;
}

.btn-carrito{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    margin-right: 6px;
    background: linear-gradient(135deg, var(--empolvado), var(--empolvado-os));
    color: #fff;
    box-shadow: 0 6px 16px rgba(168, 92, 104, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-carrito i{ font-size: 1.2rem; color: #fff; }
.btn-carrito:hover{ transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 22px rgba(168, 92, 104, 0.5); }

.cont-carrito{
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: var(--empolvado-os);
    background: #fff;
    border-radius: 999px;
}

.btn-carrito.bump{ animation: bump 0.55s ease; }
.cont-carrito.pop{ animation: pop 0.45s ease; }

@keyframes bump{
    0%{ transform: scale(1) rotate(0); }
    30%{ transform: scale(1.22) rotate(-10deg); }
    60%{ transform: scale(0.94) rotate(8deg); }
    100%{ transform: scale(1) rotate(0); }
}

@keyframes pop{
    0%{ transform: scale(1); }
    50%{ transform: scale(1.7); background: var(--chicle); }
    100%{ transform: scale(1); }
}

/* ---------- HERO ---------- */
main{ margin-top: 150px; margin-bottom: 60px; }

.hero{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 10px;
    text-align: center;
}

.hero-logo{
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 36px;
    border: 4px solid #fff;
    box-shadow: 0 16px 40px rgba(120, 50, 120, 0.35);
    transform-origin: 50% 80%;
    animation: suena 5s ease-in-out 1.2s infinite;
}

/* El teléfono del logo "suena" cada pocos segundos */
@keyframes suena{
    0%, 14%, 100%{ transform: rotate(0); }
    2%, 6%, 10%{ transform: rotate(-6deg); }
    4%, 8%, 12%{ transform: rotate(6deg); }
}

.titulo{
    font-size: 4.4rem;
    line-height: 1.05;
    margin: 26px 0 8px;
    color: #fff;
    text-shadow: 3px 3px 0 var(--empolvado), 0 8px 24px rgba(120, 50, 120, 0.3);
    animation: sube 0.9s cubic-bezier(.2, .8, .2, 1) both;
}

.subtitulo{
    font-size: 1.15rem;
    max-width: 520px;
    margin: 0 auto 22px;
    line-height: 1.5;
    color: var(--ciruela);
    animation: sube 0.9s 0.15s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes sube{ from{ opacity: 0; transform: translateY(26px); } to{ opacity: 1; transform: none; } }

.hero-btns{ display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; animation: sube 0.9s 0.3s cubic-bezier(.2, .8, .2, 1) both; }

.btn-hero, .btn-social{
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero{ background: #fff; color: var(--empolvado-os); box-shadow: var(--sombra); }
.btn-social{ background: linear-gradient(135deg, #8a4fb0, var(--empolvado) 60%, #e8a07a); color: #fff; box-shadow: 0 8px 20px rgba(168, 92, 104, 0.4); }
.btn-hero:hover, .btn-social:hover{ transform: translateY(-3px) scale(1.03); }

.btn-social::after, .btn-add-cart::after{
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-social:hover::after, .btn-add-cart:hover::after{ left: 130%; }

/* ---------- CINTA ---------- */
.cinta{
    overflow: hidden;
    margin: 34px 0 0;
    padding: 12px 0;
    background: var(--ciruela);
    color: var(--lila-claro);
    transform: rotate(-1.2deg);
    box-shadow: 0 6px 18px rgba(90, 47, 85, 0.3);
}

.cinta-pista{ display: flex; width: max-content; animation: cinta 28s linear infinite; }
.cinta span{ white-space: nowrap; padding: 0 22px; font-size: 1.35rem; font-family: var(--titulos); }
@keyframes cinta{ to{ transform: translateX(-50%); } }

/* ---------- TIENDA ---------- */
.tienda{
    margin: 50px 12px 40px;
    padding: 22px;
    border-radius: 32px;
    background: rgba(255, 246, 253, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--sombra);
    scroll-margin-top: 130px;
}

.select-categorias{
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    padding: 8px 4px 14px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.select-categorias::-webkit-scrollbar{ display: none; }

.select-categorias button{
    flex-shrink: 0;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.75);
    color: var(--ciruela);
    font-size: 1.2rem;
    font-family: var(--titulos);
    border-radius: 999px;
    padding: 7px 22px;
    transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.select-categorias button:hover{ transform: translateY(-2px); background: #fff; }

.select-categorias button.active{
    background: var(--ciruela);
    color: #fff;
    box-shadow: 0 6px 14px rgba(90, 47, 85, 0.35);
}

#contenedor-productos{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 22px;
    padding: 12px 0;
    width: 100%;
}

.sin-productos{ text-align: center; font-size: 1.3rem; padding: 24px; }

.tarjeta-producto{
    background: #fff;
    border-radius: 26px;
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 22px rgba(120, 50, 120, 0.14);
    transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), box-shadow 0.3s ease;
}

.tarjeta-producto[hidden]{ display: none; }
.tarjeta-producto:hover{ transform: translateY(-8px) rotate(-0.6deg); box-shadow: 0 18px 34px rgba(120, 50, 120, 0.24); }

.tarjeta-producto.entra{ animation: entra 0.55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes entra{ from{ opacity: 0; transform: translateY(28px) scale(0.94); } to{ opacity: 1; transform: none; } }

.tarjeta-producto h3{ font-size: 1.45rem; margin: 10px 0 2px; line-height: 1.1; }

.categorias-producto{
    font-size: 0.78rem;
    color: var(--plata);
    margin-bottom: 4px;
}

.tarjeta-producto .precio{
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--empolvado-os);
    margin: 6px 0;
}

.precio-eur{ display: block; font-size: 0.78rem; font-weight: normal; color: var(--plata); }

.variantes-producto{
    width: 100%;
    padding: 9px 10px;
    font-size: 0.9rem;
    color: var(--ciruela);
    border: 2px solid var(--lila-claro);
    border-radius: 14px;
    background-color: var(--crema);
    margin-bottom: 8px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.variantes-producto:focus{ border-color: var(--lila); outline: none; }
.variantes-producto.error{ border-color: #d6455d; animation: tiembla 0.4s; }
@keyframes tiembla{ 25%{ transform: translateX(-5px); } 75%{ transform: translateX(5px); } }

.msg-variante{ font-size: 0.8rem; color: #d6455d; margin: -2px 0 8px; }
.aviso-stock{ font-size: 0.8rem; color: var(--empolvado-os); font-style: italic; margin: 4px 0 8px; }

.btn-add-cart{
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, var(--empolvado), var(--empolvado-os));
    color: #fff;
    border: none;
    padding: 11px 10px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 6px 14px rgba(168, 92, 104, 0.35);
    transition: transform 0.15s ease, background 0.3s ease;
}

.btn-add-cart:hover{ transform: scale(1.03); }
.btn-add-cart:active{ transform: scale(0.95); }
.btn-add-cart.ok{ background: linear-gradient(135deg, #7fbf8e, #5ea373); }

/* ---------- IMAGEN + LOADER ---------- */
.contenedor-img{
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 100px 100px 18px 18px;   /* forma de ventana arqueada */
    background: linear-gradient(180deg, #f8e1f9, #fbd3ea);
}

.img-producto{
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.contenedor-img.listo .img-producto{ opacity: 1; transform: scale(1); }
.tarjeta-producto:hover .contenedor-img.listo .img-producto{ transform: scale(1.06); }
.contenedor-img.listo .loader-dibujo{ display: none; }

.loader-dibujo{
    position: absolute;
    width: 34px;
    height: 34px;
    border: 3px solid transparent;
    border-top: 3px dashed var(--empolvado);
    border-right: 3px solid var(--empolvado);
    border-bottom: 2px dashed transparent;
    border-radius: 50%;
    animation: spinDoodle 0.8s infinite linear;
}

@keyframes spinDoodle{
    0%{ transform: rotate(0deg); }
    50%{ transform: rotate(170deg) scale(0.95); }
    100%{ transform: rotate(360deg); }
}

/* Producto que vuela a la cesta */
.volador{
    position: fixed;
    z-index: 2500;
    pointer-events: none;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 24px rgba(120, 50, 120, 0.4);
}

.corazon{
    position: fixed;
    z-index: 2500;
    pointer-events: none;
    color: var(--chicle);
    text-shadow: 0 0 4px #fff;
    animation: chispa 0.9s ease-out forwards;
}

/* ---------- CESTA ---------- */
.cesta{
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(460px, 100%);
    z-index: 1000;
    background: linear-gradient(180deg, #fbe7fb, #f6c9f3);
    padding: 100px 20px 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
    box-shadow: -10px 0 40px rgba(90, 47, 85, 0.35);
    border-radius: 28px 0 0 28px;
}

.cesta.active{ transform: translateX(0); }
.cesta p{ margin: 0; }

.cesta > p:first-child{
    position: absolute;
    top: 22px;
    left: 30px;
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 0 var(--empolvado);
}

.btn-close{
    position: absolute;
    top: 26px;
    right: 24px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--ciruela);
    color: #fff;
    font-family: system-ui, sans-serif;
    font-size: 1.4rem;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
    transition: transform 0.25s ease;
}

.btn-close:hover{ transform: rotate(90deg) scale(1.08); }

.cesta-prod{ flex: 1; overflow-y: auto; padding: 4px 2px 10px; }
.cesta-vacia{ text-align: center; font-size: 1.5rem; margin-top: 50px !important; font-family: var(--titulos); }

.item-cesta{
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: start;
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(120, 50, 120, 0.12);
}

.item-cesta.nuevo{ animation: itemNuevo 0.6s cubic-bezier(.2, .8, .2, 1); }
@keyframes itemNuevo{
    0%{ transform: translateX(40px) scale(0.9); opacity: 0; background: var(--chicle); }
    100%{ transform: none; opacity: 1; background: #fff; }
}

.item-img{ width: 72px; height: 72px; background: var(--lila-claro); border-radius: 16px; overflow: hidden; }
.item-img img{ width: 100%; height: 100%; object-fit: contain; }
.item-info{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-info h4{ margin: 0; font-size: 1.25rem; line-height: 1.1; }
.item-var{ font-size: 0.82rem; color: var(--plata); }
.item-precio{ font-size: 0.82rem; color: var(--empolvado-os); }
.item-subtotal{ font-size: 1rem; color: var(--empolvado-os); white-space: nowrap; }

.item-cant{ display: flex; align-items: center; gap: 4px; margin-top: 6px; }

.item-cant button{
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--lila-claro);
    color: var(--ciruela);
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.15s ease, background 0.2s ease;
}

.item-cant button:hover{ background: var(--chicle); transform: scale(1.12); }
.item-cant span{ min-width: 26px; text-align: center; font-weight: bold; }
.item-cant .item-borrar{ margin-left: auto; background: transparent; color: #c0455a; font-size: 0.95rem; }

.cesta-pie{ padding: 14px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 2px dashed var(--empolvado); }

.desglose{ margin: 0 0 6px; font-size: 0.92rem; }
.desglose div{ display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.desglose dt{ color: var(--ciruela); }
.desglose dd{ margin: 0; font-weight: bold; white-space: nowrap; }

.cesta-total{ display: flex; justify-content: space-between; align-items: baseline; font-family: var(--titulos); font-size: 1.7rem; }
.cesta-total strong{ font-weight: normal; font-size: 2.1rem; color: #fff; text-shadow: 2px 2px 0 var(--empolvado); }

.total-ars{ text-align: right; font-weight: bold; color: var(--empolvado-os); font-size: 0.95rem; }
.total-ars[hidden]{ display: none; }

.nota-pago{ font-size: 0.82rem; margin: 8px 0 !important; line-height: 1.35; color: var(--ciruela); }
.msg-pago{ min-height: 1.2em; font-size: 0.92rem; color: #a3213a; margin-bottom: 6px !important; }

.btn-finalizar{
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 15px;
    font-size: 1.5rem;
    font-family: var(--titulos);
    color: #fff;
    background: linear-gradient(135deg, var(--ciruela), #7d3d73);
    box-shadow: 0 8px 20px rgba(90, 47, 85, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-finalizar:hover:not(:disabled){ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(90, 47, 85, 0.5); }
.btn-finalizar:disabled{ opacity: 0.45; }

.borroso{
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(90, 47, 85, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.borroso.active{ opacity: 1; pointer-events: auto; }

/* ---------- FOOTER ---------- */
footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 22px;
    background: var(--ciruela);
    color: var(--lila-claro);
    font-size: 0.9rem;
}

footer p{ margin: 0; }
footer a{ color: var(--chicle); font-weight: bold; }
footer a:hover{ color: #fff; }
footer .btn-social{ padding: 9px 18px; font-size: 0.95rem; color: #fff; }

/* ---------- COOKIES ---------- */
.cookies{
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1200;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 18px;
    background: rgba(255, 246, 253, 0.95);
    border: 1.5px solid #fff;
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(90, 47, 85, 0.35);
    animation: sube 0.7s 1.5s cubic-bezier(.2, .8, .2, 1) both;
}

.cookies[hidden]{ display: none; }
.cookies p{ margin: 0; flex: 1 1 280px; font-size: 0.9rem; line-height: 1.4; }
.cookies p a{ color: var(--empolvado-os); font-weight: bold; text-decoration: underline; }
.cookies-btns{ display: flex; gap: 8px; }

.cookies-btns button{
    border: 2px solid var(--empolvado);
    background: transparent;
    color: var(--empolvado-os);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: bold;
}

.cookies-btns .primario{ background: var(--empolvado); color: #fff; }

/* ---------- LEGAL y 404 ---------- */
.legal{
    max-width: 820px;
    margin: 150px auto 60px;
    padding: 28px;
    background: rgba(255, 246, 253, 0.92);
    border: 1.5px solid #fff;
    border-radius: 28px;
    box-shadow: var(--sombra);
    line-height: 1.6;
}

.legal h1{ font-size: 3rem; margin-top: 0; }
.legal h2{ font-size: 2rem; margin-top: 32px; }
.legal a{ color: var(--empolvado-os); text-decoration: underline; font-weight: bold; }
.legal table{ width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.92rem; }
.legal th, .legal td{ border: 1px solid #e8c3ec; padding: 8px; text-align: left; vertical-align: top; }
.legal th{ background: var(--lila-claro); }

.error404{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.error404 .codigo{ font-family: var(--titulos); font-size: 8rem; line-height: 1; margin: 10px 0 0; color: #fff; text-shadow: 4px 4px 0 var(--empolvado); }
.error404 h1{ font-size: 2.6rem; margin: 6px 0; }
.error404 p{ max-width: 460px; margin: 6px auto 22px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 900px){
    .nav-bar h2{ display: none; }
    .logo{ width: 72px; height: 72px; }
    .nav-bar.compacto .logo{ width: 52px; height: 52px; }
    main{ margin-top: 120px; }
    .hero-logo{ width: 150px; height: 150px; }
    .titulo{ font-size: 2.9rem; }
    .cesta{ border-radius: 0; }
    .cesta > p:first-child{ left: 20px; }
    .tienda{ padding: 12px; margin: 34px 8px; border-radius: 24px; }
    #contenedor-productos{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .contenedor-img{ height: 140px; }
    footer{ flex-direction: column; text-align: center; }
    .error404 .codigo{ font-size: 6rem; }
}
