/* =========================================================
   PRODUCTOS — BASE COMPARTIDA
   Header, footer, botones, imágenes y avisos para:
   catálogo, detalle, Mi cotización y datos de cotización.
   Todo está encapsulado bajo body.shop (no afecta otras páginas).
   ========================================================= */

.shop {
    --sh-ink: #0B1B30;
    --sh-dark: #1A2F4D;
    --sh-navy: #1E3A5F;
    --sh-mid: #2D5986;
    --sh-blue: #4A9EFF;
    --sh-blue-600: #357ABD;
    --sh-blue-700: #1F6FD1;
    --sh-light: #7CB8FF;
    --sh-ice: #EAF3FF;
    --sh-surface: #F5F8FC;
    --sh-text: #1E293B;
    --sh-muted: #64748B;
    --sh-border: #E2E8F0;
    --sh-green: #16A34A;
    --sh-amber: #D97706;
    --sh-red: #DC2626;
    --sh-radius: 16px;
    --sh-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --sh-shadow: 0 10px 30px -16px rgba(26, 47, 77, 0.22);
    --sh-shadow-hover: 0 22px 44px -18px rgba(26, 47, 77, 0.3), 0 0 0 1px rgba(74, 158, 255, 0.35);

    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--sh-text);
    background: var(--sh-surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.shop h1,
.shop h2,
.shop h3,
.shop h4,
.shop p,
.shop input,
.shop select,
.shop textarea,
.shop button {
    font-family: inherit;
}

.shop .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.shop.shop-lock {
    overflow: hidden;
}

.shop :focus-visible {
    outline: 3px solid rgba(74, 158, 255, 0.55);
    outline-offset: 2px;
}

/* ---------------------------------------------------------
   HEADER claro (solo páginas de Productos)
   --------------------------------------------------------- */
.shop header {
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sh-border);
    box-shadow: 0 6px 20px -14px rgba(26, 47, 77, 0.25) !important;
}

.shop .header-container {
    max-width: 1320px;
    padding: 0.75rem 2rem;
    gap: 1rem;
}

.shop .logo-container img {
    height: 46px;
    filter: none;
}

.shop .logo-text .main-title {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--sh-dark);
}

.shop .logo-text .subtitle {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--sh-blue-600);
}

.shop nav ul {
    gap: 0.2rem;
}

.shop nav ul li a {
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
    border-radius: 9px;
}

.shop nav ul li a::before {
    display: none;
}

.shop nav ul li a:hover {
    color: var(--sh-navy);
    background: #F1F5FA;
    transform: none;
}

.shop nav ul li a.active {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, var(--sh-blue), var(--sh-blue-600));
    box-shadow: 0 6px 14px -6px rgba(74, 158, 255, 0.7);
}

.shop .shop-nav-quote {
    margin-left: 0.6rem;
}

.shop nav ul li a.shop-quote-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--sh-navy);
    background: var(--sh-ice);
    border: 1px solid #D4E6FF;
    border-radius: 999px;
}

.shop nav ul li a.shop-quote-link:hover,
.shop nav ul li a.shop-quote-link.is-active {
    color: var(--sh-navy);
    background: #DCEBFF;
    border-color: var(--sh-light);
}

.shop-quote-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--sh-blue-700);
}

.shop-quote-badge.is-empty {
    color: var(--sh-navy);
    background: #C9DDF7;
}

.shop-quote-badge.is-bump {
    animation: sh-bump 0.5s var(--sh-ease);
}

.shop nav ul li a.btn-certificados {
    margin-left: 0.3rem;
    padding: 0.55rem 1.15rem;
    font-weight: 600;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sh-blue-700), var(--sh-navy));
    box-shadow: 0 8px 18px -10px rgba(31, 111, 209, 0.8);
}

.shop nav ul li a.btn-certificados:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--sh-blue), var(--sh-blue-700));
}

/* Acceso rápido a Mi cotización en móvil (junto al botón de menú) */
.shop-quote-mobile {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 12px;
    font-size: 1.05rem;
    color: var(--sh-navy);
    text-decoration: none;
    background: var(--sh-ice);
    border: 1px solid #D4E6FF;
}

.shop-quote-mobile .shop-quote-badge {
    position: absolute;
    top: -6px;
    right: -6px;
}

.shop .menu-toggle span {
    background: var(--sh-navy);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.shop .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.shop .menu-toggle.active span:nth-child(2) { opacity: 0; }
.shop .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------------------------------------
   Piezas comunes
   --------------------------------------------------------- */
.shop-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sh-navy);
    background: #fff;
    border: 1px solid #D4E6FF;
    box-shadow: 0 1px 3px rgba(26, 47, 77, 0.06);
}

.shop-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sh-blue);
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.65rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--sh-ease), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shop-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

.shop-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--sh-blue-700), #1B5FB5);
    box-shadow: 0 8px 18px -10px rgba(31, 111, 209, 0.8);
}

.shop-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -10px rgba(31, 111, 209, 0.9);
}

.shop-btn--primary.is-added {
    background: linear-gradient(135deg, #16A34A, #15803D);
    box-shadow: 0 8px 18px -10px rgba(22, 163, 74, 0.8);
}

.shop-btn--dark {
    color: #fff;
    background: linear-gradient(135deg, var(--sh-dark), var(--sh-ink));
    box-shadow: 0 10px 20px -12px rgba(11, 27, 48, 0.8);
}

.shop-btn--dark:hover {
    color: #fff;
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--sh-navy), var(--sh-dark));
}

.shop-btn--soft {
    color: var(--sh-blue-700);
    background: var(--sh-ice);
}

.shop-btn--soft:hover {
    color: var(--sh-navy);
    background: #DCEBFF;
}

.shop-btn--outline {
    color: var(--sh-navy);
    background: #fff;
    border-color: #CFDBEA;
}

.shop-btn--outline:hover {
    border-color: var(--sh-blue);
    color: var(--sh-blue-700);
}

.shop-btn--whatsapp {
    color: #fff;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    box-shadow: 0 10px 20px -12px rgba(22, 163, 74, 0.8);
}

.shop-btn--whatsapp:hover {
    color: #fff;
    transform: translateY(-1px);
}

.shop-btn--glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.shop-btn--glass:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.shop-btn--lg {
    min-height: 52px;
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
    border-radius: 12px;
}

.shop-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sh-blue-700);
    text-decoration: none;
    cursor: pointer;
}

.shop-link:hover {
    color: var(--sh-navy);
    text-decoration: underline;
}

/* Stepper (compartido con cotización) */
.shop .shop-stepper {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #D4E2F3;
    border-radius: 12px;
    background: #fff;
}

.shop .shop-stepper button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 44px;
    border: 0;
    font-size: 0.8rem;
    color: var(--sh-navy);
    background: #F2F7FD;
    cursor: pointer;
    transition: background 0.15s ease;
}

.shop .shop-stepper button:hover {
    background: #DCEBFF;
}

.shop .shop-stepper input {
    width: 56px;
    height: 44px;
    border: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sh-ink);
    background: #fff;
    -moz-appearance: textfield;
}

.shop .shop-stepper input::-webkit-outer-spin-button,
.shop .shop-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Disponibilidad */
.shop-avail {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 600;
}

.shop-avail span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.shop-avail.is-ok { color: var(--sh-green); }
.shop-avail.is-ask { color: var(--sh-amber); }
.shop-avail.is-out { color: var(--sh-red); }

/* Imagen con respaldo (ícono de la categoría si no hay foto) */
.shop-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 60%),
        linear-gradient(145deg, #EAF3FF 0%, #D8E8FB 100%);
}

.shop-media__icon {
    font-size: 2.6rem;
    color: rgba(53, 122, 189, 0.45);
}

.shop-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8%;
    background: #fff;
}

/* Breadcrumbs */
.shop-crumbs {
    padding: 1rem 0;
    font-size: 0.85rem;
}

.shop-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--sh-muted);
}

.shop-crumbs li + li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: #A3B1C4;
}

.shop-crumbs a {
    color: #475569;
    text-decoration: none;
}

.shop-crumbs a:hover {
    color: var(--sh-blue-700);
    text-decoration: underline;
}

.shop-crumbs [aria-current] {
    font-weight: 600;
    color: var(--sh-blue-700);
}

/* Aviso flotante */
.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    color: #fff;
    background: var(--sh-ink);
    box-shadow: 0 18px 40px -14px rgba(11, 27, 48, 0.6);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity 0.3s ease, transform 0.35s var(--sh-ease);
}

.shop-toast.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.shop-toast i {
    color: #4ADE80;
    font-size: 1.1rem;
}

.shop-toast--error i {
    color: #F87171;
}

.shop-toast a {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--sh-light);
    white-space: nowrap;
}

/* Aparición (solo con JS) */
.shop-js .shop .shop-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--sh-ease), transform 0.6s var(--sh-ease);
}

.shop-js .shop .shop-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes sh-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ---------------------------------------------------------
   FOOTER (mismos datos del sitio, estilo de la referencia)
   --------------------------------------------------------- */
.shop .shop-footer {
    padding: 4rem 0 2rem;
    background: var(--sh-dark);
}

.shop .shop-footer::before {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 184, 255, 0.45), transparent);
}

.shop .shop-footer .container {
    max-width: 1320px;
    padding: 0 2rem;
}

.shop .shop-footer .footer-container {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.shop .shop-footer .footer-logo img {
    height: 58px;
}

.shop .shop-footer .footer-description {
    font-size: 0.88rem;
    color: #C7D6EA;
}

.shop .shop-footer .ruc-info {
    font-size: 0.85rem;
    color: #C7D6EA;
}

.shop .shop-footer .ruc-info strong {
    color: #fff;
}

.shop .shop-footer .social-links {
    gap: 0.6rem;
}

.shop .shop-footer .social-links a {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.07);
}

.shop .shop-footer .footer-section h3 {
    padding-bottom: 0;
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.shop .shop-footer .footer-section h3::after {
    display: none;
}

.shop .shop-footer .footer-section ul li {
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
}

.shop .shop-footer .footer-section ul li a {
    color: #C7D6EA;
}

.shop .shop-footer .footer-section ul li a::before {
    display: none;
}

.shop .shop-footer .footer-section ul li a:hover {
    color: var(--sh-light);
}

.shop .shop-footer .contact-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    color: var(--sh-light);
    background: transparent;
}

.shop .shop-footer .contact-details strong {
    font-size: 0.85rem;
}

.shop .shop-footer .contact-details p {
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.shop .shop-footer .footer-bottom {
    margin-top: 1rem;
    padding: 1.1rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: rgba(11, 27, 48, 0.5);
}

.shop .shop-footer .footer-bottom p,
.shop .shop-footer .footer-bottom-links a {
    font-size: 0.82rem;
    color: #C7D6EA;
}

.shop .shop-footer .footer-bottom-links a:hover {
    color: #fff;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1240px) {
    .shop nav ul li a {
        padding: 0.5rem 0.6rem;
        font-size: 0.84rem;
    }
}

/* Menú hamburguesa desde 1100px */
@media (max-width: 1100px) {
    .shop .menu-toggle {
        display: flex;
    }

    .shop-quote-mobile {
        display: inline-flex;
    }

    .shop nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.99);
        transition: max-height 0.35s ease;
    }

    .shop nav.active {
        max-height: 640px;
        border-bottom: 1px solid var(--sh-border);
        box-shadow: 0 16px 30px -16px rgba(26, 47, 77, 0.35);
    }

    .shop nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem 1.5rem 1.5rem;
    }

    .shop nav ul li {
        width: 100%;
    }

    .shop nav ul li a {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .shop .shop-nav-quote {
        margin: 0.4rem 0 0;
    }

    .shop nav ul li a.shop-quote-link,
    .shop nav ul li a.btn-certificados {
        display: flex;
        justify-content: center;
        margin: 0.3rem 0 0;
        border-radius: 10px;
    }

    .shop .shop-footer .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .shop-wrap,
    .shop .shop-footer .container {
        padding: 0 1rem;
    }

    .shop .header-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .shop .logo-container img {
        height: 40px;
    }

    .shop .shop-footer .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .shop .shop-footer .footer-bottom-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem 1.4rem;
    }

    .shop-toast {
        bottom: 5.5rem;
    }
}

@media (max-width: 380px) {
    .shop .logo-text .subtitle {
        letter-spacing: 0.16em;
    }
}

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

    .shop-js .shop .shop-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Aviso informativo (p. ej. productos que ya no están disponibles) */
.shop-toast--warn i {
    color: #FBBF24;
}

/* Disponibilidad en dos líneas: el punto queda alineado con la primera línea */
.shop-avail {
    align-items: flex-start;
}

.shop-avail span {
    flex: 0 0 7px;
    margin-top: 0.42em;
}

/* ---------- Selector de moneda (catálogo, ficha y cotización) ---------- */
.shop-currency {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--sh-muted);
}

.shop-currency select {
    min-height: 36px;
    padding: 0.3rem 0.6rem;
    border: 1px solid #CFDBEA;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-weight: 600;
    color: var(--sh-navy);
    cursor: pointer;
}

.shop-currency select:focus-visible {
    outline: 3px solid rgba(74, 158, 255, 0.45);
    outline-offset: 1px;
}

.qt-currency {
    margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
    .shop-currency > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
}

/* ---------- Campaña de temporada: precio anterior y descuento (2026-10-29) ---------- */
.shop-price-old {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.2;
    color: #64748B;
}
.shop-price-old s {
    text-decoration-thickness: 1.5px;
}
.shop-off {
    display: inline-block;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    background: #FEE2E2;
    color: #B91C1C;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.shop-off-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 4px 12px -4px rgba(220, 38, 38, 0.6);
}
.shop .cat-card__price.is-promo {
    color: #B91C1C;
}
.shop .pd-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin: 0.35rem 0 0.1rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #FEE2E2;
    color: #B91C1C;
    font-size: 0.8rem;
    font-weight: 700;
}
.shop .pd-price__old {
    font-size: 0.95rem;
}
.shop .qt-summary__rows .is-promo dd,
.shop .qf-summary .is-promo strong,
.shop .is-promo strong,
.shop .is-promo dd {
    color: #B91C1C;
}
