:root {
    --main-color: #ee7f02;
    --brighter-color: #f7f8fa;
    --bright-color: #ffffff;
    --dark-color: #eb4e15;
    --darkter-color: #00193c;
    --font-family: 'Poppins', sans-serif;
    --footer-backcolor: #013782;
    --logo-filter: opacity(1);
    --menu-bordercolor: rgba(1, 55, 130, 0.12);
    --menu-selbackcolor: rgba(238, 127, 2, 0.12);
    --preloader-color-1: var(--dark-color);
    --preloader-color-2: #fcb902;
    --links-color: #013780;
    --header-background-color: #ffffff;
    --top-background-color: #ffffff;
    --menu-backcolor: #ffffff;
    --menu-submenu-background: #ffffff;
    --text-glow-blink-color: #ffdc7c;
    --pc-ink: #0f2744;
    --pc-muted: #5b6b7c;
    --pc-line: #e6ebf1;
    --pc-soft: #f3f6fa;
    --pc-shadow: 0 18px 40px rgba(1, 55, 130, 0.12);
    --pc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

#common-home h1 {
    color: #01378f;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* PRELOADER */
.preloader img {
    display: none;
}
.preloader-custom {
    display: block;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    margin-top: -25px;
    animation: preloader-rotate 1s infinite;
}
.preloader-custom:before,
.preloader-custom:after {
    border-radius: 50%;
    content: "";
    display: block;
    height: 20px;
    width: 20px;
}
.preloader-custom:before {
    animation: preloader-ball1 1s infinite;
    background-color: var(--preloader-color-1);
    box-shadow: 30px 0 0 var(--preloader-color-2);
    margin-bottom: 10px;
}
.preloader-custom:after {
    animation: preloader-ball2 1s infinite;
    background-color: var(--preloader-color-2);
    box-shadow: 30px 0 0 var(--preloader-color-1);
}

@keyframes preloader-rotate {
    0% { transform: rotate(0deg) scale(0.8); }
    50% { transform: rotate(360deg) scale(1.2); }
    100% { transform: rotate(720deg) scale(0.8); }
}
@keyframes preloader-ball1 {
    0% { box-shadow: 30px 0 0 var(--preloader-color-2); }
    50% {
        box-shadow: 0 0 0 var(--preloader-color-2);
        margin-bottom: 0;
        transform: translate(15px, 15px);
    }
    100% {
        box-shadow: 30px 0 0 var(--preloader-color-2);
        margin-bottom: 10px;
    }
}
@keyframes preloader-ball2 {
    0% { box-shadow: 30px 0 0 var(--preloader-color-1); }
    50% {
        box-shadow: 0 0 0 var(--preloader-color-1);
        margin-top: -20px;
        transform: translate(15px, 15px);
    }
    100% {
        box-shadow: 30px 0 0 var(--preloader-color-1);
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .navbar-collapse {
        background-color: #ffffff;
    }
}

#product-selector-panel .panel-heading .panel-title img {
    filter: none !important;
    padding: 5px 0 !important;
}
#product-selector-panel .panel-heading {
    background-color: var(--brighter-color);
    border-color: #ddd;
}
#product-selector-panel .panel-heading .panel-title span {
    color: #09397b;
}
#product-selector-panel .panel-heading .btn-home svg {
    fill: #09397b !important;
}

/* ========== Storefront polish v2 ========== */

body {
    color: var(--pc-ink);
    background:
        radial-gradient(980px 360px at 6% -10%, rgba(238, 127, 2, 0.12), transparent 58%),
        radial-gradient(760px 320px at 100% 0%, rgba(1, 55, 130, 0.08), transparent 52%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fa 48%, #eef2f7 100%);
}

#top {
    background: #ffffff;
    border-bottom: 1px solid rgba(1, 55, 130, 0.06);
    /* Keep shadow short so it does not cover the home slider top edge */
    box-shadow: 0 2px 8px rgba(1, 55, 130, 0.05);
    transition: box-shadow 0.35s var(--pc-ease), border-color 0.35s ease;
}

#top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #013782 0%, #ee7f02 52%, #fcb902 100%);
    opacity: 0.95;
    pointer-events: none;
    z-index: 1;
}

#top .search-container.search-always-visible .search-input {
    transition: width 0.3s ease-in-out, background-color 0.3s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    border: 1px solid rgba(1, 55, 130, 0.10);
    background: #f8fafc;
    border-radius: 999px;
}

#top .search-container.search-always-visible .search-input:focus {
    border-color: rgba(238, 127, 2, 0.9);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(238, 127, 2, 0.18);
}

#menu a {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

#menu .nav > li > a:hover {
    color: #ee7f02;
}

/* Hero slider — clear fixed header/menu so top radius is not covered.
   Do not put transform/will-change on #fluxslider0: fluxslider clones
   slides with a different background-size and transform layers make that
   size jump look worse before each transition. */
#catalog-page > #fluxslider0,
#fluxslider0 {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--pc-shadow);
    margin: 40px 18px 10px;
    animation: pc-fade-in 0.75s var(--pc-ease) both;
    position: relative;
    z-index: 0;
}

#common-home .featured,
#common-home .featured-categories,
.pc-benefits,
#common-home .ci_slider {
    will-change: transform, opacity;
}

@keyframes pc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pc-rise {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pc-bar-in {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

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

#common-home .featured {
    animation: pc-rise 0.75s var(--pc-ease) 0.08s both;
}

#common-home .featured > h2,
#common-home .featured-categories > h2,
#common-home h2,
.featured-categories-title,
.pc-benefits__title {
    color: #013782;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Same title margins as #common-home .featured > h2 (Destacados) */
.pc-benefits__title {
    text-align: center;
    margin: 20px 0 30px;
    font-size: 28px;
    line-height: 1.1;
}

#common-home .featured > h2::after,
.pc-benefits__title::after {
    content: "";
    display: block;
    width: 68px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ee7f02, #fcb902, #013782);
    background-size: 200% 100%;
    animation: pc-bar-in 0.55s ease 0.2s both, pc-shine 4.5s ease-in-out 0.8s infinite alternate;
}

/* Match Destacados underline color (gradient) on Categorías title */
#common-home .featured-categories-title::after {
    width: 68px;
    height: 4px;
    margin-left: -34px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ee7f02, #fcb902, #013782);
    background-size: 200% 100%;
    opacity: 1;
    animation: pc-bar-in 0.55s ease 0.2s both, pc-shine 4.5s ease-in-out 0.8s infinite alternate;
}

/* Product cards */
.product-thumb {
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--pc-line);
    box-shadow: 0 2px 0 rgba(1, 55, 130, 0.02);
    transition: transform 0.28s var(--pc-ease), box-shadow 0.28s var(--pc-ease), border-color 0.28s ease;
}

.product-thumb.product-thumb--box-shadow:hover,
.product-thumb:hover {
    transform: translateY(-6px);
    border-color: rgba(238, 127, 2, 0.28);
    box-shadow: 0 22px 42px rgba(1, 55, 130, 0.14);
}

.product-thumb .image {
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.product-thumb .product-thumb-carousel__img,
.product-thumb .image > a > img {
    transition: transform 0.65s var(--pc-ease), filter 0.35s ease;
}

.product-thumb:hover .product-thumb-carousel__img,
.product-thumb:hover .image > a > img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.product-thumb .product_caption h4 a,
.product-thumb .pt-field--name a {
    transition: color 0.22s ease;
    font-weight: 600;
}

.product-thumb:hover .product_caption h4 a,
.product-thumb:hover .pt-field--name a {
    color: #ee7f02;
}

.product-thumb .btn_quickview_thumb,
.product-thumb .button-group button {
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.product-thumb:hover .btn_quickview_thumb {
    transform: translateY(-2px);
}

/* Featured categories — Papelera Colón brand blue */
.featured-categories-container {
    --fc-primary: #013782;
    --fc-accent: #013782;
    --fc-caption-bg: #013782;
    --fc-chip-fg: #013782;
}

#common-home .featured-category-item {
    border-radius: 18px !important;
    overflow: hidden;
    border: 1px solid rgba(1, 55, 130, 0.06) !important;
    transition: transform 0.35s var(--pc-ease), box-shadow 0.35s var(--pc-ease) !important;
}

#common-home .featured-category-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--pc-shadow) !important;
}

#common-home .featured-category-item img {
    transition: transform 0.6s var(--pc-ease), filter 0.35s ease;
}

#common-home .featured-category-item:hover img {
    transform: scale(1.07);
    filter: brightness(1.03);
}

#common-home .featured-category-name,
.featured-category-name {
    background: #013782 !important;
    color: #fff !important;
}

#common-home .featured-category-name:hover,
.featured-category-name:hover {
    background: #013782 !important;
    color: #fff !important;
}

#common-home .featured-product-name,
.featured-product-name,
#common-home .featured-product-name:hover,
.featured-product-name:hover {
    color: #013782 !important;
}

/* PDP */
#product-product #slider.flexslider {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(1, 55, 130, 0.12);
    background: #fff;
}
#product-product #slider.flexslider .slides > li img {
    transition: transform 0.55s ease;
}
#product-product #slider.flexslider:hover .slides > li img {
    transform: scale(1.03);
}
#product-product #carousel .slides > li {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#product-product #carousel .slides > li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(1, 55, 130, 0.16);
}

/* Benefits strip — vertical rhythm matches .featured (productos destacados) */
.pc-benefits {
    max-width: 1240px;
    margin: 60px auto;
    padding: 0 18px;
    animation: pc-rise 0.7s var(--pc-ease) 0.05s both;
}

.pc-benefits__panel {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.pc-benefits__visual {
    position: relative;
    min-height: 240px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--pc-shadow);
    background: #013782;
}

.pc-benefits__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 1.1s var(--pc-ease), filter 0.4s ease;
}

.pc-benefits__visual:hover img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.pc-benefits__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(1, 55, 130, 0.55) 0%, rgba(238, 127, 2, 0.18) 100%);
    pointer-events: none;
}

.pc-benefits__visual-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    color: #fff;
    max-width: none;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.pc-benefits__visual-caption strong {
    display: block;
    font-size: clamp(1.55rem, 2.2vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 6px;
}

.pc-benefits__visual-caption span {
    display: block;
    opacity: 0.96;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.pc-benefits__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pc-benefit {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--pc-line);
    border-radius: 16px;
    padding: 18px 18px 16px;
    transition: transform 0.28s var(--pc-ease), box-shadow 0.28s var(--pc-ease), border-color 0.28s ease;
}

.pc-benefit:hover {
    transform: translateY(-4px);
    border-color: rgba(238, 127, 2, 0.35);
    box-shadow: 0 14px 28px rgba(1, 55, 130, 0.10);
}

.pc-benefit__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: linear-gradient(145deg, rgba(238, 127, 2, 0.16), rgba(1, 55, 130, 0.08));
    color: #013782;
}

.pc-benefit__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.pc-benefit strong {
    display: block;
    color: var(--pc-ink);
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.pc-benefit p {
    margin: 0;
    color: var(--pc-muted);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.45;
}

.pc-spotlight {
    max-width: 1240px;
    margin: 10px auto 6px;
    padding: 0 18px 6px;
}

.pc-spotlight__card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    min-height: 210px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: linear-gradient(115deg, #013782 0%, #0a4ea3 48%, #ee7f02 130%);
    box-shadow: var(--pc-shadow);
    color: #fff;
}

.pc-spotlight__copy {
    padding: 34px 28px 30px;
    z-index: 2;
}

.pc-spotlight__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    /* Root html is 10px; 1.5rem ≈ 15px (was 0.78rem / 7.8px) */
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.pc-spotlight__copy h2 {
    margin: 0 0 10px;
    color: #fff !important;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    letter-spacing: -0.03em;
    font-weight: 700;
}

.pc-spotlight__copy h2::after {
    display: none !important;
}

.pc-spotlight__copy p {
    margin: 0 0 18px;
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.45;
}

.pc-spotlight__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #ee7f02;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s var(--pc-ease), background-color 0.25s ease, box-shadow 0.25s ease;
}

.pc-spotlight__cta:hover {
    transform: translateY(-2px) scale(1.02);
    background: #f08a14;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.pc-spotlight__media {
    position: relative;
    min-height: 210px;
}

.pc-spotlight__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
    opacity: 0.92;
    transition: transform 1.1s var(--pc-ease), opacity 0.35s ease;
}

.pc-spotlight__card:hover .pc-spotlight__media img {
    transform: scale(1.06);
    opacity: 1;
}

.pc-spotlight__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #013782 0%, rgba(1, 55, 130, 0.15) 55%, transparent 100%);
}

/* Scroll reveal */
.pc-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--pc-ease), transform 0.7s var(--pc-ease);
}

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

.pc-reveal--delay-1 { transition-delay: 0.08s; }
.pc-reveal--delay-2 { transition-delay: 0.16s; }
.pc-reveal--delay-3 { transition-delay: 0.24s; }

footer {
    position: relative;
}

footer a {
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

footer a:hover {
    opacity: 0.9;
    color: #fcb902;
}

@media (max-width: 991px) {
    .pc-benefits__panel,
    .pc-spotlight__card {
        grid-template-columns: 1fr;
    }

    .pc-spotlight__media {
        min-height: 180px;
        order: -1;
    }

    .pc-spotlight__media::before {
        background: linear-gradient(180deg, transparent 10%, rgba(1, 55, 130, 0.55) 100%);
    }
}

@media (max-width: 767px) {
    #catalog-page > #fluxslider0,
    #fluxslider0 {
        border-radius: 0;
        margin: 20px 0 0;
        box-shadow: none;
    }

    .pc-benefits,
    .pc-spotlight {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pc-benefits__grid {
        grid-template-columns: 1fr;
    }

    .product-thumb:hover,
    .product-thumb.product-thumb--box-shadow:hover {
        transform: none;
    }

    .product-thumb:hover .product-thumb-carousel__img,
    .product-thumb:hover .image > a > img,
    #product-product #slider.flexslider:hover .slides > li img {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #fluxslider0,
    #common-home .featured,
    #common-home .featured > h2::after,
    #common-home .featured-categories-title::after,
    .pc-benefits,
    .pc-benefits__title::after,
    .product-thumb,
    .product-thumb .product-thumb-carousel__img,
    .product-thumb .image > a > img,
    .product-thumb .btn_quickview_thumb,
    #product-product #slider.flexslider .slides > li img,
    #product-product #carousel .slides > li,
    .pc-reveal,
    .pc-spotlight__media img,
    .pc-benefits__visual img {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}