:root {
    --ui-surface: #ffffff;
    --ui-bg: #eef4f7;
    --ui-line: rgba(15, 23, 42, 0.12);
    --ui-text: #0f172a;
    --ui-muted: #475569;
    --ui-accent: #0a83c0;
    --ui-accent-2: #086391;
    --ui-accent-soft: rgba(10, 131, 192, 0.1);
    --ui-radius-lg: 18px;
    --ui-radius-md: 12px;
    --ui-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --ui-shadow-md: 0 14px 36px rgba(15, 23, 42, 0.12);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: radial-gradient(circle at 85% -10%, rgba(10, 131, 192, 0.14) 0%, transparent 36%), var(--ui-bg);
    color: var(--ui-text);
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.navbar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-link {
    font-weight: 700;
}

.nav-link.active,
.nav-link:focus-visible {
    color: var(--ui-accent-2) !important;
    background: var(--ui-accent-soft);
}

section::before {
    opacity: 0.7;
}

.padded {
    padding: 5.6rem 0;
}

.card,
.shop-filters,
.shop-cart-panel,
.contact-card,
.quote-form {
    border: 1px solid var(--ui-line);
    box-shadow: var(--ui-shadow-sm);
}

.card:hover {
    box-shadow: var(--ui-shadow-md);
}

.shop-filters {
    border-radius: var(--ui-radius-lg);
    padding: 1.2rem;
}

.shop-product-card {
    border-radius: var(--ui-radius-lg);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.26);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.shop-product-card.is-selected {
    border-color: rgba(15, 118, 110, 0.42);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.15);
}

.shop-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ui-shadow-md);
}

.shop-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dcebf3;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.shop-main-image-link {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
    text-align: left;
    line-height: 0;
    cursor: zoom-in;
}

.shop-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-image-count {
    position: absolute;
    right: 10px;
    top: 10px;
    border-radius: 999px;
    background: rgba(8, 25, 34, 0.74);
    color: #ffffff;
    padding: 0.24rem 0.56rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.shop-image-zoom-hint {
    position: absolute;
    left: 10px;
    bottom: 10px;
    border-radius: 999px;
    background: rgba(8, 25, 34, 0.68);
    color: #ffffff;
    padding: 0.24rem 0.56rem;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.shop-product-card .card-body {
    padding: 1rem;
}

.shop-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shop-category-tag {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.24rem 0.56rem;
}

.shop-stock-pill {
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
}

.shop-stock-pill.is-in {
    color: var(--ui-accent-2);
    background: rgba(10, 131, 192, 0.14);
}

.shop-stock-pill.is-out {
    color: #7f1d1d;
    background: #fee2e2;
}

.shop-stock-pill.is-quote {
    color: #78350f;
    background: #fef3c7;
}

.shop-product-card .btn,
.shop-cart-panel .btn,
.quote-form .btn,
a.btn {
    min-height: 44px;
    font-weight: 700;
}

.shop-cart-panel {
    border-radius: var(--ui-radius-lg);
    top: 102px;
    position: sticky;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    padding: 1.2rem;
}

.shop-cart-panel h3 {
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.shop-clear-cart-btn {
    min-height: 36px !important;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.34);
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 0.2rem 0.82rem;
}

.shop-clear-cart-btn:hover {
    border-color: rgba(100, 116, 139, 0.55);
    color: #1e293b;
    background: #eef2f7;
}

.cart-items {
    display: grid;
    gap: 0.72rem;
}

.cart-empty {
    margin: 0;
    padding: 0.88rem 0.94rem;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
}

.cart-item {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 0.85rem;
    background: #ffffff;
    display: grid;
    gap: 0.7rem;
}

.cart-item-head {
    display: grid;
    gap: 0.3rem;
}

.cart-item h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    color: #0f172a;
}

.cart-item-subtotal {
    color: var(--ui-accent-2);
    font-weight: 700;
    font-size: 1.05rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cart-stepper {
    display: inline-grid;
    grid-template-columns: 34px minmax(34px, auto) 34px;
    align-items: center;
    gap: 0.45rem;
}

.cart-qty-value {
    text-align: center;
    font-weight: 800;
    color: #0f172a;
}

.cart-item .cart-qty-btn {
    min-height: 34px !important;
    min-width: 34px;
    border-radius: 10px;
    padding: 0;
}

.cart-item .remove-cart-item-btn {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    min-height: 36px !important;
    white-space: nowrap;
}

.cart-totals {
    border-top: 1px solid rgba(148, 163, 184, 0.36);
    border-bottom: 1px solid rgba(148, 163, 184, 0.36);
    padding: 0.78rem 0;
}

.cart-totals > div + div {
    margin-top: 0.38rem;
}

.cart-totals span {
    color: #475569;
}

.cart-totals strong {
    color: #0f172a;
    font-size: 1.15rem;
}

.cart-form-title {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--ui-accent-2);
}

#shopCheckoutForm .form-label {
    color: #334155;
    font-weight: 700;
}

#shopCheckoutForm .form-control {
    background: #ffffff;
}

#checkoutWhatsappBtn {
    border: 0;
    border-radius: 12px;
    min-height: 50px;
    background: linear-gradient(135deg, var(--ui-accent) 0%, var(--ui-accent-2) 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(10, 131, 192, 0.28);
}

#checkoutWhatsappBtn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(10, 131, 192, 0.3);
}

.shop-thumbs {
    gap: 0.55rem;
    display: flex;
    flex-wrap: wrap;
}

.shop-thumb-item {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: #ffffff;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.shop-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-thumb-item.is-active {
    border-color: rgba(14, 165, 164, 0.66);
    box-shadow: 0 0 0 2px rgba(14, 165, 164, 0.16);
}

.shop-thumb-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.shop-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.shop-product-card--quote .shop-price-row,
.shop-product-card--quote .shop-select-row {
    display: none;
}

.shop-selected-pill {
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ui-accent-2);
    background: rgba(10, 131, 192, 0.12);
    padding: 0.24rem 0.52rem;
}

.shop-select-row {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: 42px 44px 42px minmax(0, 1fr);
    gap: 0.46rem;
    align-items: center;
}

.shop-card-qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 10px;
    min-height: 40px;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
}

.shop-card-qty-btn {
    min-height: 40px !important;
    padding: 0 !important;
}

.form-control,
.form-select {
    border-radius: var(--ui-radius-md);
    border-color: rgba(100, 116, 139, 0.35);
    min-height: 46px;
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.btn:focus-visible,
a:focus-visible {
    box-shadow: 0 0 0 0.24rem rgba(14, 165, 164, 0.2) !important;
    outline: none;
}

.quote-feedback,
#shopFeedback {
    min-height: 1.6rem;
    font-weight: 600;
}

.shop-image-modal {
    border-radius: 16px;
}

#shopImageModal .modal-header,
#shopImageModal .modal-footer {
    border-color: rgba(148, 163, 184, 0.28);
    background: #f8fafc;
}

#shopImageModal .modal-body {
    padding: 0;
}

.shop-image-stage {
    position: relative;
    min-height: min(72vh, 680px);
    background: #0b1320;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

#shopImageModalImg {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border: 0;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform 0.18s ease;
    cursor: zoom-in;
}

.shop-image-stage.is-zoomed #shopImageModalImg {
    cursor: grab;
}

.shop-image-stage.is-panning #shopImageModalImg {
    cursor: grabbing;
    transition: none;
}

@media (max-width: 991.98px) {
    .shop-cart-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .padded {
        padding: 3.4rem 0;
    }

    .shop-filters,
    .shop-cart-panel,
    .shop-product-card,
    .card,
    .contact-card {
        border-radius: 14px;
    }

    .shop-product-card .card-img-top {
        height: 210px;
    }

    .shop-media {
        aspect-ratio: 4 / 3;
    }

    #tienda .container,
    #contactanos .container,
    #productos .container,
    #servicios .container,
    #nosotros .container {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 52px;
    }

    .shop-product-card .card-body {
        padding: 1.05rem;
    }

    .shop-thumb-item {
        width: 42px;
        height: 42px;
    }

    .shop-select-row {
        grid-template-columns: 36px 40px 36px minmax(132px, 1fr);
    }

    .shop-card-qty-value,
    .shop-card-qty-btn {
        min-height: 36px !important;
    }

    .shop-go-cart-btn {
        font-size: 0.92rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .shop-main-image {
        height: 100%;
    }

    .shop-cart-panel {
        padding: 1rem;
    }

    .shop-cart-panel h3 {
        font-size: 1.18rem;
    }

    .cart-item {
        padding: 0.78rem;
    }

    .cart-item-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-stepper {
        width: 100%;
        justify-content: center;
    }

    .cart-item .remove-cart-item-btn {
        width: 100%;
    }
}

/* Quote form redesign */
.contact-card-quote {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-left: none;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    padding: 2rem;
}

.contact-card-quote h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 1.55rem;
}

.contact-card-quote .quote-form {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.contact-card-quote .form-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.38rem;
}

.contact-card-quote .form-control,
.contact-card-quote .form-select {
    min-height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.35);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.contact-card-quote textarea.form-control {
    min-height: 128px;
    resize: vertical;
}

.contact-card-quote .form-control:hover,
.contact-card-quote .form-select:hover {
    border-color: rgba(10, 131, 192, 0.48);
}

.contact-card-quote .form-control:focus,
.contact-card-quote .form-select:focus {
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 0.22rem rgba(10, 131, 192, 0.2);
    transform: translateY(-1px);
}

.contact-card-quote .btn.btn-primary {
    border-radius: 12px;
    min-height: 52px;
    min-width: 250px;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.contact-card-quote .quote-note {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    font-size: 0.98rem;
}

.contact-card-quote .quote-feedback {
    margin-top: 0.25rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-card-quote {
        border-radius: 14px;
        padding: 1rem;
    }

    .contact-card-quote h3 {
        font-size: 1.28rem;
        margin-bottom: 0.85rem;
        padding-bottom: 0.65rem;
    }

    .contact-card-quote .btn.btn-primary {
        min-width: 0;
        width: 100%;
    }

    .contact-card-quote .quote-note {
        min-height: 0;
        display: block;
        width: 100%;
        margin-top: -0.15rem;
    }
}

.shop-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.shop-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    color: #334155;
    font-weight: 600;
    font-size: 0.92rem;
}

.shop-benefit-item i {
    color: var(--ui-accent);
}

.shop-filter-meta {
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
    padding-top: 0.65rem;
}

.shop-results-count {
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
}

.shop-cart-note {
    font-size: 0.86rem;
    color: #64748b;
}

.mobile-cart-jump-btn {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1030;
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    background: linear-gradient(90deg, var(--ui-accent), var(--ui-accent-2));
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(10, 131, 192, 0.35);
}

.shop-product-skeleton {
    pointer-events: none;
}

.shop-skeleton-media,
.shop-skeleton-line {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 40%, #e2e8f0 70%);
    background-size: 300% 100%;
    animation: shopSkeleton 1.2s ease-in-out infinite;
}

.shop-skeleton-media {
    height: 180px;
}

.shop-skeleton-line {
    height: 14px;
    border-radius: 7px;
    margin-bottom: 0.6rem;
}

.shop-skeleton-line.lg {
    width: 78%;
}

.shop-skeleton-line.md {
    width: 56%;
}

.shop-skeleton-line.sm {
    width: 42%;
    margin-bottom: 0;
}

@keyframes shopSkeleton {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

@media (max-width: 991.98px) {
    .shop-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .mobile-cart-jump-btn {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .shop-benefits {
        grid-template-columns: 1fr;
    }

    .shop-filter-meta {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .mobile-cart-jump-btn {
        bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

.shop-quote-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ui-accent) 0%, var(--ui-accent-2) 100%);
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 22px rgba(10, 131, 192, 0.26);
}

.shop-quote-btn:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 24px rgba(10, 131, 192, 0.3);
}

.shop-datasheet-btn {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

.shop-datasheet-btn i {
    color: var(--ui-accent-2);
}

.shop-datasheet-btn:hover {
    color: #0f172a;
    background: #edf4f7;
    border-color: rgba(100, 116, 139, 0.5);
}

.shop-go-cart-btn {
    white-space: nowrap;
    letter-spacing: 0.01em;
    font-size: 0.96rem;
}

/* Store flow refinement */
.store-page .store-intro {
    max-width: 1100px;
}

.store-page .store-kicker {
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ui-accent-2);
}

.store-page .store-intro h1 {
    line-height: 1.06;
    text-wrap: balance;
}

.store-page .store-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1rem;
    align-items: start;
}

.store-page .store-intro-copy {
    min-width: 0;
}

.store-page .store-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.store-page .store-intro-actions .btn {
    min-width: 210px;
}

.cart-page .store-intro {
    max-width: 760px;
}

.cart-page .store-intro h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.cart-back-btn {
    border-radius: 12px;
    font-weight: 700;
    border-color: rgba(148, 163, 184, 0.55);
    background: #f8fbfd;
    color: #334155 !important;
}

.cart-back-btn:hover {
    color: #0f172a !important;
    border-color: rgba(100, 116, 139, 0.6);
    background: #eef4f8;
}

.store-page .store-flow-panel {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.store-page .store-flow-panel h2 {
    font-size: 0.96rem;
    margin: 0 0 0.55rem;
    letter-spacing: 0.02em;
    color: #0f172a;
}

.store-page .store-flow-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.store-page .store-flow-list li {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.52rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #f8fbfd;
}

.store-page .store-flow-list span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
    color: #ffffff;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.store-page .store-flow-list p {
    margin: 0;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 600;
}

#catalogo,
#carrito {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .store-page .store-intro-grid {
        grid-template-columns: 1fr;
    }

    .store-page .store-intro-actions .btn {
        min-width: 0;
        width: 100%;
    }
}
