/* Piezas sueltas del sitio: botón de WhatsApp, enlaces a redes y páginas de error.
   Usa los colores de marca definidos en styles.css (--hovi-*). */

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 990;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 14px;
    border-radius: 56px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 6px 20px rgba(40, 38, 39, 0.28);
    text-decoration: none;
    animation: wa-entrada 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float:hover,
.wa-float:focus-visible {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(40, 38, 39, 0.34);
}
.wa-float svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: currentColor;
}
/* El texto vive cerrado (solo se ve el icono) y se despliega suavemente a ratos, al pasar el cursor o al enfocar */
.wa-float-text {
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(8px);
    transition: max-width 0.6s cubic-bezier(0.22, 1, 0.36, 1), margin-left 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.wa-float.expandido .wa-float-text,
.wa-float:hover .wa-float-text,
.wa-float:focus-visible .wa-float-text {
    max-width: 130px;
    margin-left: 10px;
    padding-right: 4px;
    opacity: 1;
    transform: translateX(0);
}
/* Aro que late solo mientras está cerrado, para llamar la atención sin molestar */
.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid #25d366;
    animation: wa-pulse 2.8s ease-out infinite;
    pointer-events: none;
}
.wa-float.expandido::before,
.wa-float:hover::before { animation: none; opacity: 0; }
@keyframes wa-pulse {
    0%   { transform: scale(1);    opacity: 0.7; }
    70%  { transform: scale(1.22); opacity: 0; }
    100% { transform: scale(1.22); opacity: 0; }
}
@keyframes wa-entrada {
    from { opacity: 0; transform: translateY(24px) scale(0.85); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .wa-float { animation: none; }
    .wa-float::before { animation: none; }
    .wa-float-text { transition: none; }
}
/* En pantallas con barra inferior móvil, el botón se sube sobre ella */
@media (max-width: 1150px) {
    .wa-float {
        right: 14px;
        bottom: 84px;
    }
}

/* ---------- Enlaces a redes sociales ---------- */
.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--hovi-gold);
    color: var(--hovi-bronze);
    font-size: 18px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.social-links a:hover {
    background: var(--hovi-charcoal);
    border-color: var(--hovi-charcoal);
    color: var(--hovi-gold);
    transform: translateY(-2px);
}
.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
/* ---------- Páginas de error (404 / 500) ---------- */
.error-page {
    padding: 70px 0 90px;
    background: var(--hovi-cream);
}
.error-page-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.error-page-code {
    display: block;
    font-size: clamp(96px, 20vw, 170px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--hovi-gold);
}
.error-page-title {
    margin: 10px 0 14px;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 600;
    color: var(--hovi-charcoal);
}
.error-page-text {
    margin: 0 auto 28px;
    max-width: 480px;
    color: #5f5a57;
    line-height: 1.6;
}
.error-page-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto 26px;
    padding: 6px 6px 6px 18px;
    background: #fff;
    border: 1px solid var(--hovi-gold);
    border-radius: 50px;
}
.error-page-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}
.error-page-search button,
.error-page-btn {
    padding: 11px 24px;
    border: 0;
    border-radius: 50px;
    background: var(--hovi-charcoal);
    color: var(--hovi-gold);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.error-page-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}
.error-page-cats-label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a827c;
}
.error-page-cats ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.error-page-cats a {
    color: var(--hovi-bronze);
    font-weight: 600;
}
.error-page-cats a:hover { color: var(--hovi-charcoal); }

/* 500: página sin plantilla base, por eso lleva su propio fondo y tipografía */
.error-standalone {
    --hovi-gold: #C69D6F;
    --hovi-charcoal: #373536;
    --hovi-cream: #F6F1EA;
    --hovi-bronze: #7A5C37;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--hovi-cream);
    font-family: "Segoe UI", Arial, sans-serif;
}
.error-standalone .error-page-logo {
    height: 54px;
    margin-bottom: 18px;
}

/* ---------- Página de contacto ---------- */
.contact-card {
    padding: 32px;
    border: 1px solid #e8dfd4;
    border-radius: 6px;
    background: var(--hovi-cream);
}
.contact-card-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 50px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-wa:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(40, 38, 39, 0.22); }
.contact-wa svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Cinta cruzada de Hovi: preventa y agotado ---------- */
.cinta { position: absolute; top: 0; left: 0; z-index: 6; width: 136px; height: 136px; overflow: hidden; pointer-events: none; }
.cinta[hidden], [hidden] > .cinta { display: none; }
.cinta > span {
    position: absolute;
    top: 29px;
    left: -44px;
    display: flex;
    width: 190px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 0;
    overflow: hidden;
    transform: rotate(-45deg);
    background: linear-gradient(180deg, #454243, var(--hovi-charcoal-deep, #282627));
    border-top: 2px solid var(--hovi-gold, #c69d6f);
    border-bottom: 2px solid var(--hovi-gold, #c69d6f);
    outline: 1px dashed rgba(198, 157, 111, 0.55);      /* pespunte */
    outline-offset: -5px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
    color: #f3dcb4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.3;
    text-transform: uppercase;
}
/* Las tres barras del logo de Hovi */
.cinta i {
    width: 11px;
    height: 11px;
    background:
        linear-gradient(var(--hovi-gold, #c69d6f), var(--hovi-gold, #c69d6f)) 0 4px / 3px 7px no-repeat,
        linear-gradient(var(--hovi-gold, #c69d6f), var(--hovi-gold, #c69d6f)) 4px 0 / 3px 11px no-repeat,
        linear-gradient(var(--hovi-gold, #c69d6f), var(--hovi-gold, #c69d6f)) 8px 4px / 3px 7px no-repeat;
}
/* Un haz de luz que la recorre cada pocos segundos */
.cinta > span::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 224, 170, 0.6), transparent);
    animation: cinta-luz 3.8s ease-in-out infinite;
}
.cinta--agotado > span { background: linear-gradient(180deg, #a39d97, #7d7771); border-color: #e4ded6; outline-color: rgba(255, 255, 255, 0.45); color: #fff; }
.cinta--agotado i { opacity: 0.5; filter: grayscale(1); }
.cinta--agotado > span::after { display: none; }
@keyframes cinta-luz { 0% { left: -40%; } 45%, 100% { left: 130%; } }

#gallery-swiper-started > .cinta { width: 190px; height: 190px; }
#gallery-swiper-started > .cinta > span { top: 42px; left: -56px; width: 260px; padding: 11px 0; font-size: 14px; }

@media (max-width: 767px) {
    .cinta { width: 104px; height: 104px; }
    .cinta > span { top: 21px; left: -37px; width: 148px; padding: 6px 0; font-size: 9px; gap: 5px; }
    .cinta i { display: none; }
    #gallery-swiper-started > .cinta { width: 130px; height: 130px; }
    #gallery-swiper-started > .cinta > span { top: 28px; left: -42px; width: 184px; padding: 8px 0; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .cinta > span::after { animation: none; display: none; } }

.preventa-chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    background: var(--hovi-charcoal, #373536);
    color: #f0d3a8;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ---------- Estado de stock ---------- */
.stock { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.stock::before { content: ""; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.stock--disponible { color: #1f7a45; }
.stock--pocas { color: #b4650a; }
.stock--preventa, .stock--agotado { color: #b42318; }
.stock--pocas::before { animation: stock-late 1.6s ease-in-out infinite; }
@keyframes stock-late { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 101, 10, 0.45); } 50% { box-shadow: 0 0 0 5px rgba(180, 101, 10, 0); } }

/* ---------- Desglose del carrito ---------- */
.cart-desglose { margin: 0 0 16px; }
.cart-desglose div { display: flex; justify-content: space-between; margin-bottom: 10px; color: #6b645f; }
.cart-desglose dd { margin: 0; color: var(--hovi-charcoal, #373536); font-weight: 600; }
.cart-desglose .cart-desglose-total { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e8dfd4; font-size: 20px; font-weight: 700; color: var(--hovi-charcoal, #373536); }
