        :root {
            --bg: #E6F2E8;
            --bg-soft: #EAF5EC;
            --bg-strong: #D6ECD9;
            --text: #163327;
            --text-soft: #2C5642;
            --primary: #2F6E4E;
            --primary-dark: #23543B;
            --title-accent: #2B8A57;
            --border: #B7D7BC;
            --card-border: #9FCFA7;
            --shadow: 0 12px 24px rgba(22, 51, 39, 0.12);
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }

a {
    color: inherit;
    text-decoration: none;
}

.site-body {
    overflow-x: hidden;
}

.site-shell {
    width: min(1600px, 100%);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(230, 242, 232, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header-bar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.site-brand:hover .site-brand-logo {
    border-color: var(--primary);
}

.site-nav {
    display: none;
    align-items: center;
    gap: 24px;
    color: var(--text-soft);
    font-weight: 500;
    margin-left: auto;
}

.site-nav-link,
.mobile-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 1.05rem;
    color: var(--text-soft);
    transition: color 0.2s ease;
}

.site-nav-link:hover,
.mobile-menu-link:hover {
    color: var(--text);
}

.site-nav-icon,
.mobile-menu-icon,
.button-link-icon,
.carousel-arrow-icon,
.contact-icon-svg,
.about-benefit-icon-svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.mobile-menu-icon {
    width: 24px;
    height: 24px;
}

.mobile-menu-toggle {
    border: 0;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
    color: var(--text-soft);
    font-weight: 500;
}

.home-section {
    padding-top: 104px;
    padding-bottom: 32px;
    min-height: 100vh;
    background: linear-gradient(to bottom, #CFE6D4, #E6F2E8, #D6ECD9);
}

.home-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.home-copy {
    max-width: 100%;
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-soft);
}

.hero-description {
    color: var(--text-soft);
    line-height: 1.7;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(98, 255, 149, 0.35);
    border: 1px solid #39D669;
    color: #1D6A34;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 14px;
    animation: noticeBlink 1.1s ease-in-out infinite;
}

.hero-notice-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #20C55E;
    display: inline-block;
    animation: noticeDotPulse 1.1s ease-in-out infinite;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-actions--start {
    justify-content: flex-start;
    margin-top: 20px;
}

#productos .section-actions {
    justify-content: center;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-link--primary {
    background: var(--primary);
    color: #F2FAF3;
}

.button-link--primary:hover {
    background: var(--primary-dark);
}

.button-link--secondary {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
}

.button-link--secondary:hover {
    background: #DFF0E2;
    border-color: #8DBE97;
}

.home-media {
    position: relative;
    width: min(100%, 340px);
    margin: 0 auto;
}

.home-media-glow,
.about-media-glow {
    position: absolute;
    inset: -12px;
    background: linear-gradient(to top right, #B7D7BC, #8DBE97);
    border-radius: 24px;
    filter: blur(32px);
    opacity: 0.6;
}

.home-media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(145, 131, 77, 0.7);
    background: #EAF5EC;
}

.home-media-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.home-featured {
    margin-top: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.section-title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    color: var(--text-soft);
}

.section-title--left {
    text-align: left;
}

.featured-carousel {
    margin-top: 12px;
    background: var(--bg-soft);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 28px 32px;
    min-height: 500px;
}

.product-track,
.filamentos-track {
    display: flex;
    gap: 12px;
    align-items: stretch;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    touch-action: auto;
}

.product-track::-webkit-scrollbar,
.filamentos-track::-webkit-scrollbar {
    display: none;
}

.loading-copy {
    font-size: 0.95rem;
    color: var(--text-soft);
    padding: 24px 0;
}

.section-empty--spaced {
    margin-top: 12px;
}

.products-section {
    min-height: 100vh;
    padding: 96px 0 40px;
    border-top: 1px solid rgba(168, 151, 94, 0.7);
    border-bottom: 1px solid rgba(168, 151, 94, 0.7);
    background: linear-gradient(to bottom, #D6ECD9, #E6F2E8);
    display: flex;
    align-items: flex-start;
}

.about-section {
    min-height: 100vh;
    padding: 80px 0 40px;
    background: var(--bg);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}

.about-intro {
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.about-benefits {
    margin-top: 32px;
    display: grid;
    gap: 24px;
}

.about-benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(183, 215, 188, 0.6);
    color: var(--primary);
}

.about-benefit-icon-svg {
    width: 24px;
    height: 24px;
}

.about-benefit-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.about-benefit-text {
    margin: 4px 0 0;
    font-size: 1rem;
    color: var(--text-soft);
}

.about-media {
    position: relative;
    width: 100%;
}

.about-media-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 38px rgba(22, 51, 39, 0.18);
    border: 1px solid rgba(166, 204, 174, 0.7);
}

.about-media-image {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

.contact-icon-svg {
    width: 24px;
    height: 24px;
}

.product-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

.product-card-title {
    margin: 0;
    padding: 8px 10px;
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 3.6em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #2C5642;
}

.product-promo-eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--primary);
}

.product-promo-copy {
    margin: 4px 0 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

.cart-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0.58rem 0.8rem;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0;
}

.cart-add-wrap {
    margin-top: auto;
    padding-top: 6px;
}

.cart-add-btn:hover {
    background: var(--primary-dark);
}

.cart-toggle {
    position: fixed;
    top: 80px;
    right: 0;
    z-index: 90;
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 0.9rem;
    border-radius: 999px 0 0 999px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(22, 51, 39, 0.2);
    font-weight: 600;
}

.cart-toggle-label {
    margin-right: 0.3rem;
}

.cart-toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
}

.cart-panel {
    position: fixed;
    top: 80px;
    right: 0;
    z-index: 89;
    width: min(360px, 92vw);
    max-height: calc(100vh - 120px);
    background: #f7fbf8;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 18px 0 0 18px;
    box-shadow: 0 18px 32px rgba(22, 51, 39, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    background: #ecf6ef;
}

.cart-header h3 {
    margin: 0;
    font-size: 1rem;
}

.cart-close {
    border: none;
    background: none;
    color: var(--text-soft);
    font-weight: 600;
    cursor: pointer;
}

.cart-items {
    padding: 0.8rem 1rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-empty {
    padding: 0.8rem 1rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0.6rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0.6rem;
}

.cart-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-soft);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.15rem 0.4rem;
    font-size: 0.8rem;
}

.cart-qty button {
    border: none;
    background: none;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}

.cart-remove {
    border: none;
    background: none;
    color: #b42318;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-form {
    border-top: 1px solid var(--border);
    padding: 0.8rem 1rem 1rem;
    background: #ecf6ef;
}

.cart-form input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 0.45rem 0.6rem;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
}

.cart-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cart-send {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.55rem;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-send:disabled {
    background: #9fd3a8;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .nav-search {
        display: none;
    }
    .cart-toggle {
        top: 72px;
        padding: 0.6rem 0.7rem;
    }
    .cart-toggle .cart-toggle-label {
        display: none;
    }
    .cart-panel {
        top: 72px;
        max-height: calc(100vh - 90px);
    }

    #product-track .featured-brand,
    #filamentos-track-5 .featured-brand {
        margin-left: 10px;
        font-size: 0.88rem;
    }

    #product-track .featured-code,
    #filamentos-track-5 .featured-code {
        margin-left: 10px;
        font-size: 10px;
    }
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

        [data-lucide],
        svg.lucide {
            width: 20px;
            height: 20px;
            display: block;
        }

.hidden {
    display: none !important;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(22, 51, 39, 0.08);
    margin-top: 4px;
}

.nav-search-input {
    height: 38px;
    width: 340px;
    border: 0;
    background: #fff;
    padding: 0 16px;
    font-size: 0.9rem;
    color: var(--text);
    border-radius: 12px;
    outline: none;
}

.nav-search-input:focus {
    box-shadow: 0 0 0 2px rgba(47, 110, 78, 0.35);
}

.nav-search-button {
    height: 38px;
    width: 38px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-search-button:hover {
    background: var(--primary-dark);
}

.nav-search--mobile {
    width: 100%;
}

.nav-search-input--mobile {
    width: 100%;
    height: 36px;
}

.nav-search-button--mobile {
    height: 36px;
    width: 36px;
}

.contact-section {
    min-height: 100vh;
    padding-top: 48px;
    padding-bottom: 0;
    background: linear-gradient(to bottom, #D6ECD9, #E6F2E8);
    display: flex;
    flex-direction: column;
}

.contact-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.contact-subtitle {
    margin: 12px 0 0;
    font-size: 1.05rem;
    color: var(--text-soft);
}

.contact-grid {
    margin: 28px auto 0;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
    color: var(--text);
}

.contact-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(45, 56, 22, 0.16);
}

.contact-card--whatsapp:hover {
    border-color: #25D366;
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.18);
}

.contact-card--instagram:hover {
    border-color: #ec4899;
    box-shadow: 0 12px 20px rgba(236, 72, 153, 0.18);
}

.contact-card--facebook:hover {
    border-color: #1877F2;
    box-shadow: 0 12px 20px rgba(24, 119, 242, 0.18);
}

.contact-card--location:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #DFF0E2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: background 0.2s ease;
}

.contact-card--whatsapp:hover .contact-icon {
    background: rgba(37, 211, 102, 0.25);
}

.contact-card--instagram:hover .contact-icon {
    background: linear-gradient(to top right, #f59e0b, #ec4899, #a855f7);
}

.contact-card--facebook:hover .contact-icon {
    background: rgba(24, 119, 242, 0.18);
}

.contact-card--location:hover .contact-icon {
    background: rgba(37, 99, 235, 0.16);
}

.contact-card--phone:hover {
    border-color: #2F6E4E;
    box-shadow: 0 12px 20px rgba(47, 110, 78, 0.18);
}

.contact-card--phone:hover .contact-icon {
    background: rgba(47, 110, 78, 0.18);
}


.contact-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.contact-card-text {
    margin: 0;
    color: var(--text-soft);
}

.site-footer {
    background: #163327;
    border-top: 1px solid #2F6E4E;
    padding: 24px 0;
    margin-top: auto;
}

.cart-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.cart-btn-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.cart-add-btn {
    gap: 6px;
}

.site-footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #3D8560;
}

.footer-brand-text {
    font-size: 1rem;
    font-weight: 600;
    color: #EAF5EC;
}

.footer-nav-links a {
    color: #B7D7BC;
    transition: color 0.2s ease;
}

.footer-nav-links a:hover {
    color: #EAF5EC;
}

        .table-responsive {
            width: 100%;
            overflow-x: auto;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table-striped tbody tr:nth-child(odd) {
            background: rgba(231, 242, 234, 0.6);
        }

        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
            background: rgba(230, 242, 232, 0.92);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border);
        }

        header > div:first-child,
        main > section > div {
            width: min(1600px, 100%);
            margin: 0 auto;
            padding-left: 16px;
            padding-right: 16px;
        }

        header > div:first-child > div {
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .site-brand {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            flex-shrink: 0;
            margin-left: 8px;
        }

        .site-brand-text {
            display: inline-block;
            line-height: 1;
        }

        header > div:first-child > div > a:first-child img {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 12px;
            border: 1px solid var(--border);
        }

        header nav {
            display: none;
            align-items: center;
            gap: 24px;
            color: var(--text-soft);
            font-weight: 500;
        }

        header nav a:hover {
            color: var(--text);
        }

        header nav a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        header nav [data-lucide],
        #mobile-menu [data-lucide] {
            width: 16px;
            height: 16px;
        }

        header button[onclick="toggleMenu()"] {
            border: 0;
            background: transparent;
            color: var(--text-soft);
            cursor: pointer;
            padding: 8px;
        }

        #mobile-menu {
            background: var(--bg);
            border-bottom: 1px solid var(--border);
        }

        #mobile-menu > div {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 16px 24px;
            color: var(--text-soft);
            font-weight: 500;
        }

        #home {
            padding-top: 104px;
            padding-bottom: 32px;
            min-height: 100vh;
            background: linear-gradient(to bottom, #CFE6D4, #E6F2E8, #D6ECD9);
        }

        #home > div {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        #home > div > div:first-child {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
            align-items: start;
        }

        #home h1 {
            margin: 0;
            font-size: clamp(2rem, 3.8vw, 2.9rem);
            line-height: 1.15;
            letter-spacing: -0.02em;
            color: var(--text-soft);
        }

        .hero-title-accent {
            color: #2F5A1F !important;
            text-shadow: 0 1px 0 rgba(255, 249, 230, 0.3);
        }

        .hero-notice {
            background: rgba(98, 255, 149, 0.35);
            border: 1px solid #39D669;
            color: #1D6A34;
            border-radius: 999px;
            padding: 8px 16px;
            gap: 10px;
            font-size: 0.95rem;
            line-height: 1.2;
            margin-bottom: 14px;
            animation: noticeBlink 1.1s ease-in-out infinite;
        }

        .hero-notice > span {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: #20C55E;
            display: inline-block;
            animation: noticeDotPulse 1.1s ease-in-out infinite;
        }

        @keyframes noticeBlink {
            0%, 100% { box-shadow: 0 0 0 rgba(32, 197, 94, 0); opacity: 1; }
            50% { box-shadow: 0 0 14px rgba(32, 197, 94, 0.55); opacity: 0.82; }
        }

        @keyframes noticeDotPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        #home p {
            color: var(--text-soft);
            line-height: 1.7;
        }

        #home .inline-flex {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        #home .rounded-lg {
            border-radius: 10px;
        }

        #home a[href="productos.php"] {
            background: var(--primary);
            color: #F2FAF3;
            padding: 10px 18px;
            font-weight: 500;
        }

        #home a[href="productos.php"]:hover {
            background: var(--primary-dark);
        }

        #home a[href="#contacto"] {
            background: var(--bg-soft);
            border: 1px solid var(--border);
            padding: 10px 18px;
            font-weight: 500;
        }

        #home > div > div:first-child > div:last-child {
            position: relative;
            width: min(100%, 340px);
            margin: 0 auto;
        }

        #home > div > div:first-child > div:last-child > div:last-child {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid rgba(145, 131, 77, 0.7);
            background: #EAF5EC;
        }

        #home > div > div:first-child > div:last-child img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        #productos {
            margin-top: 20px;
            margin-bottom: 24px;
            position: relative;
            z-index: 1;
        }

        #productos > h2,
        #filamentos h2,
        #nosotros h2,
        #contacto h2 {
            margin: 0;
            font-size: clamp(1.7rem, 3vw, 2rem);
            letter-spacing: -0.02em;
            color: var(--text-soft);
        }

        #productos > div:first-of-type {
            margin-top: 12px;
            background: var(--bg-soft);
            border-radius: 12px;
            box-shadow: var(--shadow);
            padding: 28px 32px;
            min-height: 500px;
        }

        #productos > .carousel-shell,
        #productos .carousel-shell {
            width: min(100%, 1520px);
            max-width: 1520px;
            margin-left: auto;
            margin-right: auto;
        }

        .carousel-shell {
            width: min(100%, 1400px);
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
            position: relative;
        }

        .carousel-shell {
            overflow: visible;
        }

        #product-track,
        .filamentos-track {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-bottom: 4px;
            touch-action: auto;
        }

        #product-track::-webkit-scrollbar,
        .filamentos-track::-webkit-scrollbar {
            display: none;
        }

.product-card,
.filamentos-track a {
    min-width: 280px;
    max-width: 340px;
    min-height: 460px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: rgba(244, 234, 197, 0.85);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.product-card .product-card-image,
.filamentos-track a img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

/* Fuerza altura uniforme en todos los cards de carruseles */
#product-track .product-card,
.filamentos-track .product-card,
.filamentos-track a {
    min-height: 460px;
}

#product-track .product-card > .product-card-image,
.filamentos-track .product-card > .product-card-image,
.filamentos-track a > img {
    height: 250px;
    min-height: 250px;
}

.product-card:hover,
.filamentos-track a:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 30px rgba(22, 51, 39, 0.18);
    border-color: rgba(47, 110, 78, 0.45);
}

.product-card:hover .product-card-image,
.filamentos-track a:hover img {
    transform: scale(1.08);
}

.product-card h3,
.filamentos-track h3 {
    margin: 0;
    padding: 8px 10px;
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 3.6em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #2C5642;
}

.product-card .featured-body {
    padding: 6px 10px 6px;
    line-height: 1.15;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.product-card .featured-meta {
    margin: 4px 0 0 0;
}

        .product-card .featured-brand {
            margin-left: 12px;
            font-size: 1.05rem;
        }

.product-card .featured-code {
    margin-left: 12px;
    font-size: 12px;
}

.featured-price {
    margin: 4px 0 10px 12px;
    font-size: 1.74rem;
    font-weight: 900;
    color: #2C5642;
    letter-spacing: -0.02em;
}

.featured-price-slot {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 4.1rem;
}

.featured-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 4px 0 8px 12px;
}

.featured-price-wrap .featured-price {
    margin: 0;
}

.featured-price-old {
    margin: 0;
    font-size: calc(1.74rem - 13px);
    line-height: 1;
    font-weight: 900;
    color: #8b9390;
    text-decoration: line-through;
}

#product-track .featured-price-old {
    color: #8b9390;
    font-size: calc(1.74rem - 13px);
    margin-bottom: 0;
}

#product-track .featured-price-wrap {
    gap: 0;
    line-height: 1;
    margin-bottom: 0;
}

#product-track .featured-price-wrap .featured-price {
    margin: 0;
    line-height: 1;
}

.product-card--promo .featured-price-wrap {
    margin-bottom: 0;
}

.product-card--promo .featured-price {
    margin-bottom: 0;
    text-decoration: none !important;
    font-size: 1.74rem;
    line-height: 1;
}

.product-card--promo .featured-price-old {
    text-decoration: line-through;
    font-size: calc(1.74rem - 13px);
    line-height: 1;
}

.product-card--promo .featured-brand,
.product-card--promo .featured-code {
    margin-top: 4px;
}

.product-card .featured-brand,
.product-card .featured-code {
    line-height: 1.2;
}

#product-track .product-card--promo .featured-price-wrap {
    margin-bottom: 0;
}

#product-track .product-card--promo .featured-price {
    margin-bottom: 0;
    text-decoration: none !important;
    font-size: 1.74rem;
    line-height: 1;
}

#product-track .product-card--promo .featured-price-old {
    text-decoration: line-through;
    font-size: calc(1.74rem - 13px);
    line-height: 1;
}

#product-track .product-card--promo .featured-brand,
#product-track .product-card--promo .featured-code {
    margin-top: 4px;
}

#product-track .featured-brand,
#product-track .featured-code {
    margin-top: 4px;
}

#product-track .featured-meta {
    margin: 0;
    line-height: 1.05;
}

#product-track .cart-add-wrap {
    padding-top: 10px;
}

.product-card-offer-corner {
    position: absolute;
    top: 0.2rem;
    left: 0.15rem;
    width: 96px;
    max-width: 33%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 12px 18px rgba(255, 98, 0, 0.28));
    pointer-events: none;
}

.product-card .featured-code {
    margin-bottom: 6px;
}

        #productos > div:first-of-type > div:last-child {
            margin-top: 12px;
            display: flex;
            justify-content: flex-start;
        }

        #productos > div:first-of-type > div:last-child a,
        #filamentos > div > div:last-child a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            border-radius: 10px;
            background: var(--primary);
            color: #F2FAF3;
            font-weight: 500;
        }

        #productos > div:first-of-type > div:last-child a:hover,
        #filamentos > div > div:last-child a:hover {
            background: var(--primary-dark);
        }

        #filamentos {
            min-height: 100vh;
            padding: 96px 0 40px;
            border-top: 1px solid rgba(168, 151, 94, 0.7);
            border-bottom: 1px solid rgba(168, 151, 94, 0.7);
            background: linear-gradient(to bottom, #D6ECD9, #E6F2E8);
            display: flex;
            align-items: flex-start;
        }

        #filamentos > div {
            position: relative;
        }

        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 58px;
            height: 58px;
            border: 1px solid rgba(22, 51, 39, 0.15);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 14px 28px rgba(22, 51, 39, 0.2);
            color: #163327;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
        }

        .carousel-arrow:hover {
            background: #ffffff;
        }

        .carousel-arrow i {
            width: 30px;
            height: 30px;
            stroke-width: 2.3;
        }

        .carousel-prev { left: -18px; }
        .carousel-next { right: -18px; }

        .section-stack {
            margin-top: 20px;
            display: grid;
            gap: 28px;
        }

        .home-subsection {
            display: grid;
            gap: 16px;
        }

        .home-subsection-title {
            margin: 0;
            font-size: clamp(1.45rem, 2.3vw, 2rem);
            letter-spacing: -0.02em;
            color: var(--text-soft);
        }

        .home-grid-shell {
            background: var(--bg-soft);
            border-radius: 12px;
            position: relative;
            box-shadow: var(--shadow);
            padding: 22px 20px;
            width: min(100%, 1400px);
            max-width: 1400px;
            margin: 0 auto;
            overflow: hidden;
        }

        .home-static-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 10px;
            justify-items: stretch;
        }

        .home-static-grid .product-card {
            min-width: 0;
            max-width: 100%;
            width: 100%;
            justify-self: center;
        }

        .home-static-grid .product-card .product-card-image {
            height: 210px;
        }

        .section-empty {
            margin: 0;
            color: var(--text-soft);
            font-size: 0.95rem;
        }

#filamentos .home-grid-shell:not(.home-grid-shell--carousel) .carousel-arrow {
    display: none !important;
}

        #filamentos > div > div:last-child {
            margin-top: 20px;
            display: flex;
            justify-content: flex-start;
        }

        #nosotros {
            min-height: 100vh;
            padding: 80px 0 40px;
            background: var(--bg);
        }

        #nosotros > div > div {
            display: grid;
            grid-template-columns: 1fr;
            gap: 36px;
            align-items: start;
        }

        .about-secondary {
            margin-top: 38px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 28px;
            align-items: center;
            background: linear-gradient(135deg, rgba(234, 245, 236, 0.95), rgba(214, 236, 217, 0.9));
            border: 1px solid rgba(183, 215, 188, 0.9);
            border-radius: 28px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .about-secondary-media img {
            width: 100%;
            height: 260px;
            object-fit: cover;
            object-position: center;
        }

        .about-secondary-copy {
            padding: 28px 24px;
        }

        .about-secondary-copy h3 {
            margin: 0;
            font-size: clamp(1.4rem, 2.2vw, 1.9rem);
            color: var(--text);
            letter-spacing: -0.02em;
        }

        .about-secondary-copy p {
            margin: 14px 0 0;
            font-size: 1rem;
            line-height: 1.75;
            color: var(--text-soft);
        }

        #nosotros p { color: var(--text-soft); }

        #nosotros > div > div > div:first-child > div:last-child {
            margin-top: 28px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 20px;
        }

        #nosotros > div > div > div:first-child > div:last-child > div {
            display: flex;
            gap: 14px;
            align-items: flex-start;
        }

        #nosotros > div > div > div:first-child > div:last-child > div > div:first-child {
            width: 48px;
            height: 48px;
            flex-shrink: 0;
            border-radius: 12px;
            background: rgba(183, 215, 188, 0.6);
            color: var(--primary);
            display: grid;
            place-items: center;
        }

        #nosotros > div > div > div:first-child > div:last-child > div h4 {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--text);
        }

        #nosotros > div > div > div:first-child > div:last-child > div p {
            margin: 4px 0 0;
            font-size: 1rem;
            color: var(--text-soft);
        }

        #nosotros > div > div > div:last-child > div:last-child {
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 20px 34px rgba(45, 56, 22, 0.2);
            border: 1px solid rgba(145, 131, 77, 0.7);
        }

        #nosotros > div > div > div:last-child > div:last-child img {
            width: 100%;
            height: 260px;
            object-fit: cover;
            object-position: center;
        }

.legacy-contact {
            min-height: 100vh;
            padding-top: 64px;
            padding-bottom: 24px;
            background: linear-gradient(to bottom, #D6ECD9, #E6F2E8);
            display: flex;
            flex-direction: column;
        }

.legacy-contact > div:first-child {
            flex: 1;
            text-align: center;
        }

.legacy-contact footer {
            margin-top: auto;
        }

        .legacy-contact > div:first-child > div {
            margin: 28px auto 0;
            max-width: 1100px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }

        .legacy-contact > div:first-child > div > a {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 24px;
            background: var(--bg-soft);
            border: 1px solid var(--border);
            border-radius: 16px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
            width: 100%;
        }

        .legacy-contact > div:first-child > div > a:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 20px rgba(45, 56, 22, 0.16);
        }

        .legacy-contact > div:first-child > div > a:first-child:hover {
            border-color: #25D366;
            box-shadow: 0 12px 20px rgba(37, 211, 102, 0.18);
        }

        .legacy-contact > div:first-child > div > a:last-child:hover {
            border-color: #ec4899;
            box-shadow: 0 12px 20px rgba(236, 72, 153, 0.18);
        }

        .legacy-contact > div:first-child > div > a > div:first-child {
            width: 60px;
            height: 60px;
            border-radius: 999px;
            background: #FFFFFF;
            display: grid;
            place-items: center;
            margin-bottom: 10px;
            color: var(--text-soft);
        }

        .brand-social-icon {
            width: 34px;
            height: 34px;
            object-fit: contain;
        }

        .legacy-contact > div:first-child > div > a h3 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text);
        }

        .legacy-contact > div:first-child > div > a p {
            margin: 2px 0 0;
            color: var(--text-soft);
            font-size: 1rem;
        }

        footer {
            margin-top: 32px;
            border-top: 1px solid var(--primary);
            background: #2A3E1B;
            color: #DDF5E2;
            padding: 24px 0;
        }

        footer img {
            width: 28px;
            height: 28px;
            object-fit: cover;
            border-radius: 6px;
            border: 1px solid #879337;
        }

        .footer-social-icon {
            width: 34px;
            height: 34px;
            object-fit: contain;
            background: #FFFFFF;
            border-radius: 999px;
            padding: 5px;
            border: 0;
        }

        footer > div > div {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }

        .footer-shell {
            display: grid !important;
            grid-template-columns: 1fr;
            align-items: center;
            gap: 14px;
            width: 100%;
            text-align: center;
        }

        .footer-brand-wrap {
            display: flex;
            justify-content: flex-start;
        }

        .footer-brand {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .footer-nav-links {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            font-size: 0.95rem;
        }

        footer > div > div > div:first-child {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        footer > div > div > div:nth-child(2) {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        footer > div > div > div:last-child {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 12px;
        }

        footer a { color: #DDF5E2; }
        footer a:hover { color: #F2FFF4; }

        .floating-whatsapp-wrap {
            position: fixed;
            right: 18px;
            bottom: 18px;
            z-index: 80;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
        }

        .floating-whatsapp {
            width: 62px;
            height: 62px;
            border-radius: 999px;
            background: #25D366;
            display: grid;
            place-items: center;
            box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
            border: none;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .floating-whatsapp:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
        }

        .floating-whatsapp img {
            width: 34px;
            height: 34px;
            object-fit: contain;
        }

        .floating-whatsapp-menu {
            display: none;
            flex-direction: column;
            gap: 6px;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 8px;
            box-shadow: 0 12px 22px rgba(22, 51, 39, 0.18);
            min-width: 240px;
        }

        .floating-whatsapp-menu.open {
            display: flex;
        }

        .floating-whatsapp-menu a {
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding: 8px 10px;
            border-radius: 10px;
            background: #f2faf3;
            border: 1px solid #e0efe4;
            color: var(--text);
            font-size: 0.9rem;
            font-weight: 600;
        }

        .floating-whatsapp-menu a span {
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-soft);
        }

        body.home-product-modal-open {
            overflow: hidden;
        }

        .home-product-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            z-index: 120;
        }

        .home-product-modal.is-open {
            display: flex;
        }

        .home-product-modal__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(15, 33, 24, 0.66);
            backdrop-filter: blur(4px);
        }

        .home-product-modal__dialog {
            position: relative;
            display: grid;
            grid-template-columns: minmax(280px, 420px) minmax(260px, 420px);
            gap: 0;
            width: min(920px, 100%);
            max-height: min(88vh, 760px);
            background: #F3FAF4;
            border: 1px solid rgba(183, 215, 188, 0.95);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 24px 48px rgba(22, 51, 39, 0.28);
            z-index: 1;
        }

        .home-product-modal__media {
            background: linear-gradient(135deg, #E6F2E8, #D6ECD9);
            min-height: 320px;
        }

        .home-product-modal__media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .home-product-modal__content {
            padding: 36px 32px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 16px;
        }

        .home-product-modal__eyebrow {
            margin: 0;
            font-size: 0.9rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #2F6E4E;
        }

        .home-product-modal__content h3 {
            margin: 0;
            font-size: clamp(1.8rem, 2.6vw, 2.4rem);
            line-height: 1.08;
            color: #163327;
        }

        .home-product-modal__meta {
            display: grid;
            gap: 10px;
        }

        .home-product-modal__meta p {
            margin: 0;
            font-size: 1rem;
            color: #2C5642;
        }

        .home-product-modal__close {
            position: absolute;
            top: 14px;
            right: 14px;
            width: 42px;
            height: 42px;
            border: 0;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.92);
            color: #163327;
            font-size: 1.9rem;
            line-height: 1;
            cursor: pointer;
            z-index: 2;
            box-shadow: 0 10px 18px rgba(22, 51, 39, 0.18);
        }

        .home-product-modal__close:hover {
            background: #ffffff;
        }

        @media (max-width: 639px) {
            html,
            body {
                width: 100%;
                overflow-x: hidden;
            }

            header > div:first-child,
            #home > div,
            #filamentos > div,
            #nosotros > div,
            #contacto .contact-container,
            .site-footer-inner {
                padding-left: 12px !important;
                padding-right: 12px !important;
            }

            header > div:first-child > div {
                height: 72px;
                gap: 8px;
            }

            .site-brand {
                margin-left: 0;
                gap: 6px;
            }

            .site-brand-text {
                font-size: 0.96rem;
                font-weight: 700;
            }

            .site-header-bar {
                gap: 8px;
            }

            .nav-search {
                flex: 1;
                max-width: 168px;
                min-width: 0;
                margin-left: auto;
                padding: 6px;
                gap: 6px;
            }

            .nav-search-input {
                width: 100%;
                min-width: 0;
                padding: 0 10px;
                font-size: 0.82rem;
            }

            .nav-search-button {
                width: 34px;
                height: 34px;
                flex-shrink: 0;
            }

            #mobile-menu > div {
                font-size: 1rem;
                gap: 10px;
                padding: 14px 18px;
            }

            .mobile-menu-inner {
                align-items: stretch;
            }

            #home {
                padding-top: 88px;
                padding-bottom: 22px;
            }

            #home > div > div:first-child {
                gap: 14px;
            }

            #home > div {
                gap: 12px;
            }

            #home h1 {
                font-size: clamp(2.05rem, 8.2vw, 2.7rem);
                line-height: 1.08;
            }

            #home p {
                font-size: 1.03rem;
                line-height: 1.62;
            }

            .hero-notice {
                font-size: 0.95rem;
                margin-bottom: 10px;
            }

            #home > div > div:first-child > div:first-child {
                max-width: none;
                text-align: left;
            }

            #home > div > div:first-child > div:last-child {
                width: 100%;
                max-width: 100%;
                min-height: 0 !important;
            }

            #home > div > div:first-child > div:last-child > div:last-child {
                height: 280px !important;
                min-height: 0 !important;
                border-radius: 18px;
            }

            #home > div > div:first-child > div:last-child img {
                object-fit: cover;
            }

            #filamentos {
                min-height: auto;
                padding: 72px 0 28px;
            }

            .section-stack {
                gap: 20px;
            }

            .home-subsection {
                gap: 12px;
            }

            .home-subsection-title {
                font-size: 2rem;
                line-height: 1.1;
            }

            #productos > div:first-of-type,
            .home-grid-shell {
                min-height: auto;
                padding: 16px 10px 14px;
                width: 100%;
                max-width: 100%;
                margin-left: 0;
                margin-right: 0;
                overflow: hidden;
            }


            #productos > .carousel-shell,
            #productos .carousel-shell,
            .carousel-shell {
                width: 100%;
                max-width: 100%;
                padding-left: 6px;
                padding-right: 6px;
                margin-left: 0;
                margin-right: 0;
                overflow: hidden;
            }

            #productos > .carousel-shell {
                width: 100%;
                max-width: 100%;
                margin-left: 0;
                margin-right: 0;
                padding-left: 4px;
                padding-right: 4px;
            }

            #product-track,
            .filamentos-track {
                gap: 8px;
                overflow-x: auto;
                scroll-padding-left: 2px;
                padding-bottom: 2px;
            }

            .product-card,
            .filamentos-track a {
                width: clamp(180px, 62vw, 230px);
                min-width: clamp(180px, 62vw, 230px);
                max-width: clamp(180px, 62vw, 230px);
                scroll-snap-align: center;
            }

            #product-track .product-card {
                width: clamp(180px, 62vw, 230px);
                min-width: clamp(180px, 62vw, 230px);
                max-width: clamp(180px, 62vw, 230px);
            }

            #filamentos-track-5 .product-card {
                width: clamp(180px, 62vw, 230px);
                min-width: clamp(180px, 62vw, 230px);
                max-width: clamp(180px, 62vw, 230px);
            }

            .product-card h3,
            .filamentos-track h3 {
                font-size: 0.95rem;
                min-height: 3.2em;
            }

            .featured-price {
                font-size: 1.2rem;
                margin-bottom: 8px;
            }

            .product-card--promo .featured-price,
            #product-track .product-card--promo .featured-price,
            #filamentos-track-5 .product-card--promo .featured-price {
                font-size: 1.1rem;
            }

            .product-card .featured-brand {
                margin-left: 10px;
                font-size: 0.88rem;
            }

            .product-card .featured-code {
                margin-left: 10px;
                font-size: 10px;
            }

            .home-static-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
                justify-items: stretch;
                width: 100%;
            }

            .home-static-grid .product-card .featured-body {
                padding: 6px 8px 8px;
            }

            .home-static-grid .product-card h3 {
                font-size: 1.02rem;
                line-height: 1.25;
            }

            .home-static-grid .product-card .featured-price {
                font-size: 1.28rem;
            }

            .home-static-grid .product-card--promo .featured-price {
                font-size: 1.16rem;
            }

            .home-static-grid .product-card .featured-brand {
                font-size: 0.96rem;
            }

            .home-static-grid .product-card .featured-code {
                font-size: 0.8rem;
            }

            #nosotros > div > div > div:first-child > div:last-child {
                grid-template-columns: 1fr;
                gap: 14px;
            }

            #nosotros > div > div > div:first-child > div:last-child > div h4 {
                font-size: 1.1rem;
            }

            #nosotros > div > div > div:first-child > div:last-child > div p {
                font-size: 1.01rem;
            }

            .about-secondary-copy h3 {
                font-size: 1.45rem;
            }

            .about-secondary-copy p {
                font-size: 1.02rem;
                line-height: 1.68;
            }

            #nosotros {
                min-height: auto;
                padding: 72px 0 28px;
            }

            #nosotros > div > div {
                gap: 24px;
            }

            .about-secondary {
                margin-top: 24px;
                gap: 18px;
            }

            .about-secondary-media img,
            #nosotros img {
                width: 100%;
            }

            #contacto {
                padding-top: 56px;
                padding-bottom: 0;
            }

            #contacto .contact-container {
                max-width: 100%;
                padding-bottom: 16px;
            }

            #contacto .contact-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }

            #contacto .contact-card {
                padding: 15px 10px;
                gap: 3px;
            }

            #contacto .contact-card-title {
                font-size: 1.06rem;
            }

            #contacto .contact-card-text {
                font-size: 0.92rem;
                line-height: 1.3;
            }

            #contacto .contact-icon {
                width: 46px;
                height: 46px;
                margin-bottom: 8px;
            }

            #contacto .contact-title {
                font-size: 2.2rem;
            }

            #contacto .contact-subtitle {
                font-size: 1.05rem;
            }

            #home > div > div:first-child > div:first-child {
                text-align: left;
            }

            #home .mt-4 {
                justify-content: flex-start;
            }

            .site-footer {
                padding: 22px 0 26px;
            }

            .footer-shell {
                gap: 16px;
                display: grid !important;
                grid-template-columns: 1fr;
                justify-items: center;
                text-align: center;
            }

            .footer-brand-wrap {
                width: 100%;
                justify-content: center !important;
            }

            .footer-brand {
                justify-content: center;
            }

            .footer-brand-text {
                font-size: 1.08rem;
            }

            .footer-nav-links {
                font-size: 1.02rem;
                gap: 16px;
                width: 100%;
                justify-content: center;
                flex-wrap: wrap;
            }

            .footer-nav-links a:last-child {
                flex-basis: 100%;
                text-align: center;
            }

            footer > div > div > div:last-child {
                gap: 14px;
            }

            .footer-social-icon {
                width: 38px;
                height: 38px;
                padding: 6px;
            }

            .home-static-grid .product-card {
                min-width: 0 !important;
                max-width: 100% !important;
                justify-self: stretch;
                width: 100%;
            }

            /* En filas con cantidad impar (ej. 5), centra la ultima card para un layout 2+2+1 */
            .home-static-grid > .product-card:nth-child(odd):last-child {
                grid-column: 1 / -1;
                width: min(100%, 340px);
                justify-self: center;
            }

            .product-card .product-card-image,
            .filamentos-track a img,
            .home-static-grid .product-card .product-card-image {
                height: 150px;
                object-fit: cover;
            }

            .home-static-grid .product-card {
                min-height: 390px;
            }

            #product-track .product-card,
            .filamentos-track .product-card,
            .filamentos-track a {
                min-height: 390px;
            }

            #product-track .product-card > .product-card-image,
            .filamentos-track .product-card > .product-card-image,
            .filamentos-track a > img {
                height: 150px;
                min-height: 150px;
            }

            .carousel-arrow {
                width: 42px;
                height: 42px;
                top: auto;
                bottom: 18px;
                transform: none;
                background: rgba(255, 255, 255, 0.98);
                box-shadow: 0 8px 18px rgba(22, 51, 39, 0.18);
            }

            .carousel-arrow i {
                width: 22px;
                height: 22px;
            }

            .carousel-prev { left: 10px; }
            .carousel-next { right: 10px; }

            .home-product-modal {
                padding: 16px;
            }

            .home-product-modal__dialog {
                grid-template-columns: 1fr;
                max-height: 90vh;
                overflow-y: auto;
            }

            .home-product-modal__media {
                min-height: 240px;
            }

            .home-product-modal__content {
                padding: 24px 20px 22px;
            }

            #productos > div:first-of-type > div:last-child {
                margin-top: 16px;
            }

            #filamentos > div > div:last-child {
                margin-top: 16px;
            }

            .featured-carousel {
                padding-bottom: 70px;
            }

            #productos .section-actions {
                width: 100%;
                justify-content: center;
                margin-top: 22px;
                padding-left: 0;
                padding-right: 0;
            }

            #productos .section-actions .button-link {
                min-width: 140px;
            }

            #filamentos .section-actions {
                width: 100%;
                justify-content: center;
                margin-top: 22px;
                padding-left: 0;
                padding-right: 0;
            }

            #productos .carousel-arrow {
                bottom: 96px;
            }
        }

        @media (min-width: 640px) {
            header > div:first-child,
            main > section > div {
                padding-left: 24px;
                padding-right: 24px;
            }

            .nav-search {
                max-width: 280px;
                margin-left: auto;
            }

            .nav-search-input {
                width: 100%;
            }

            .product-card,
            .filamentos-track a {
                min-width: 260px;
            }

            .carousel-shell {
                width: min(100%, 1400px);
                max-width: 1400px;
            }

            #contacto > div:first-child > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }

            #nosotros > div > div > div:last-child > div:last-child img {
                height: 320px;
            }

            .about-secondary-media img {
                height: 320px;
            }

            .floating-whatsapp-wrap {
                right: 22px;
                bottom: 22px;
            }
        }

        @media (min-width: 640px) and (max-width: 940px) {
            .nav-search {
                max-width: 220px;
            }

            .nav-search-input {
                font-size: 0.86rem;
                padding: 0 12px;
            }

            #home {
                padding-top: 96px;
                padding-bottom: 28px;
            }

            #home > div {
                gap: 18px;
            }

            #home > div > div:first-child {
                grid-template-columns: 1fr;
                gap: 24px;
                justify-items: center;
            }

            #home > div > div:first-child > div:first-child {
                max-width: 760px;
                margin: 0 auto;
                text-align: center;
            }

            #home h1 {
                font-size: clamp(2.6rem, 5.2vw, 3.35rem);
                line-height: 1.08;
                max-width: 16ch;
                margin-left: auto;
                margin-right: auto;
            }

            #home p {
                max-width: 700px;
                margin-left: auto;
                margin-right: auto;
                font-size: 1.16rem;
                line-height: 1.72;
            }

            #home p > span.inline-flex {
                justify-content: center;
                font-size: 1.75rem !important;
                line-height: 1.2;
                margin-bottom: 10px;
            }

            .hero-notice {
                margin-left: auto;
                margin-right: auto;
            }

            #home .mt-4 {
                justify-content: center;
            }

            #home > div > div:first-child > div:last-child {
                width: min(100%, 520px);
                max-width: 520px;
                min-height: 0 !important;
                margin: 0 auto;
            }

            #home > div > div:first-child > div:last-child > div:last-child {
                height: 420px !important;
                min-height: 0 !important;
            }
        }

        @media (min-width: 640px) and (max-width: 899px) {
            .home-static-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
            }

            .home-static-grid .product-card {
                min-width: 0 !important;
                max-width: 100% !important;
                width: 100%;
            }

            .home-static-grid > .product-card:nth-child(odd):last-child {
                grid-column: 1 / -1;
                width: min(100%, 340px);
                justify-self: center;
            }
        }

        @media (min-width: 940px) and (max-width: 1279px) {
            .home-static-grid {
                grid-template-columns: repeat(5, minmax(0, 1fr));
                gap: 8px;
            }

            .home-static-grid .product-card {
                min-width: 0 !important;
                max-width: 100% !important;
                width: 100%;
            }

            .home-grid-shell {
                padding: 16px 12px;
            }

            .home-static-grid .product-card .featured-body {
                padding: 5px 7px 7px;
            }
        }

        /* Reglas reemplazadas por el bloque consolidado al final del archivo:
           - 940-1279 con max-height
           - 1280-1599 (ahora igual que >=1291) */

        @media (min-width: 768px) {
            header nav { display: flex !important; }
            header button[onclick="toggleMenu()"] { display: none; }
            #mobile-menu { display: none !important; }
            footer > div > div {
                flex-direction: row;
                justify-content: space-between;
                gap: 16px;
            }
            .footer-shell {
                grid-template-columns: auto 1fr auto !important;
            }
        }

        @media (min-width: 1024px) {
            header > div:first-child,
            main > section > div {
                padding-left: 40px;
                padding-right: 40px;
            }

            #contacto > div:first-child > div {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            #home > div > div:first-child {
                grid-template-columns: 1.05fr 1fr;
                gap: 32px;
            }

            #home > div > div:first-child > div:last-child > div:last-child {
                aspect-ratio: 1 / 1;
            }

            .product-card,
            .filamentos-track a {
                min-width: 260px;
            }

            .carousel-shell {
                width: min(100%, 1400px);
                max-width: 1400px;
            }

            #nosotros > div > div {
                grid-template-columns: 1fr 1fr;
                gap: 56px;
            }

            #nosotros > div > div > div:last-child > div:last-child img {
                height: 380px;
            }

            .about-secondary {
                grid-template-columns: 1.1fr 1fr;
            }

            .about-secondary-media img {
                height: 380px;
                min-height: 0;
            }

            .about-secondary-copy {
                padding: 38px 36px;
            }
        }

        @media (min-width: 1600px) {
            html {
                font-size: 17px;
            }

            .carousel-shell,
            .home-grid-shell,
            #productos > .carousel-shell,
            #productos .carousel-shell {
                width: min(100%, 1600px);
                max-width: 1600px;
            }

        }

        @media (min-width: 1900px) {
            html {
                font-size: 18px;
            }
        }

:root {
    --category-accent: #2f6e4e;
    --category-soft: #edf7ef;
    --category-border: #cfe0d2;
    --category-strong: #163327;
}

.product-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 70;
}

.product-modal-backdrop.is-open {
    display: block;
}

.product-detail-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 80;
}

.product-detail-modal.is-open {
    display: flex;
}

.product-detail-modal.is-out-of-stock .product-meta-grid,
.product-detail-modal.is-out-of-stock #product-modal-description-panel,
.product-detail-modal.is-out-of-stock #product-modal-ficha-panel {
    filter: grayscale(0.85);
}

.product-detail-panel {
    width: min(1400px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 30px;
    background: linear-gradient(180deg, #f6fbf7 0%, #eef7f0 100%);
    border: 1px solid var(--category-border);
    box-shadow: 0 28px 80px rgba(22, 51, 39, 0.22);
}

.product-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--category-border);
}

.product-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #163327;
}

.product-detail-close {
    border-radius: 999px;
    border: 1px solid #f2b4b4;
    padding: 0.35rem 0.85rem;
    font-size: 0.9rem;
    color: #b42318;
    background: #fff5f5;
    font-weight: 600;
}

.product-detail-close:hover {
    background: #ffe1e1;
}

.product-detail-body {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
        "gallery info"
        "description info";
    gap: 1.5rem;
    padding: 1.5rem;
}

.product-detail-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    grid-area: gallery;
}

.product-detail-right {
    display: flex;
    flex-direction: column;
    grid-area: info;
}

.product-gallery-title {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #163327;
}

.product-modal-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #163327;
}

.product-description-grid {
    display: grid;
    gap: 1rem;
    grid-area: description;
    margin-top: 0.5rem;
}

.product-description-grid.has-ficha {
    grid-template-columns: 1fr;
}

.product-description-panel {
    border: 1px solid var(--category-border);
    border-radius: 24px;
    background: #fff;
    padding: 1.25rem;
}

#product-modal-ficha-panel {
    margin-top: 1rem;
}

.product-modal-description {
    margin-top: 0.75rem;
    color: #244536;
    line-height: 1.75;
}

.product-category-label {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2f6e4e;
}

.product-name {
    margin-top: 0.5rem;
    font-size: 1.875rem;
    font-weight: 600;
    color: #163327;
}

.product-price-label {
    font-size: 0.8rem;
    margin: 0;
    max-width: none;
    line-height: 1.15;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #688776;
}

.product-price-block {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-price-highlight {
    display: block;
}

.product-offer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.product-offer-badge-image {
    width: 88px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 16px rgba(255, 98, 0, 0.22));
}

.product-cash-note {
    font-size: 1.4rem;
    font-weight: 700;
    color: #16a34a;
    letter-spacing: 0.01em;
}

.product-installments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.product-installment-feature {
    border: 1px solid #4fb37d;
    border-radius: 22px;
    background: linear-gradient(180deg, #e6fdf0 0%, #c9f0dd 100%);
    padding: 1.1rem 1.25rem;
    text-align: center;
    grid-column: 1 / -1;
    box-shadow: 0 16px 30px rgba(22, 163, 74, 0.2);
}

.product-installment-card {
    border: 1px solid #6cc293;
    border-radius: 20px;
    background: linear-gradient(180deg, #e9fbef 0%, #d9f4e4 100%);
    padding: 1rem 1.05rem;
    text-align: center;
    box-shadow: 0 12px 24px rgba(34, 139, 84, 0.18);
}

.product-installment-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #145c3b;
}

.product-installment-sub {
    margin-top: 0.5rem;
    font-size: 1.18rem;
    font-weight: 800;
    color: #00c853;
}

.product-installment-amount {
    margin-top: 0.45rem;
    font-size: 1.6rem;
    font-weight: 900;
    color: #00d65a;
}

.product-installment-total {
    margin-top: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #00b84f;
}

.product-installment-card .product-installment-sub {
    font-size: 1rem;
}

.product-installment-card .product-installment-amount {
    font-size: 1.3rem;
}

.product-installment-card .product-installment-total {
    font-size: 0.9rem;
}

.product-special-promo,
.product-price-box {
    border: 1px solid var(--category-border);
    border-radius: 24px;
    background: linear-gradient(90deg, #e9f8ed 0%, #f5fcf6 100%);
    padding: 0.6rem 0.85rem;
    box-shadow: 0 6px 12px rgba(22, 51, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.product-price-copy {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.product-price-box p,
.product-price-copy p {
    margin: 0;
    max-width: none;
}

.product-special-promo p:first-child {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #2f6e4e;
}

.product-special-promo p:last-child {
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #163327;
}

.hidden {
    display: none;
}

.product-detail-gallery {
    border: 1px solid var(--category-border);
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f5faf5 100%);
    padding: 1.25rem;
}

.product-detail-image {
    width: 100%;
    height: min(45vh, 460px);
    object-fit: contain;
    background: #fff;
    border-radius: 24px;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.product-gallery-thumb {
    border: 1px solid var(--category-border);
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery-thumb.is-active,
.product-gallery-thumb:hover {
    border-color: var(--category-accent);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--category-accent) 18%, transparent);
    transform: translateY(-2px);
}

.product-gallery-thumb img {
    width: 100%;
    height: 56px;
    object-fit: contain;
    border-radius: 999px;
    background: #fff;
}

.product-gallery-thumb.is-unavailable {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14);
}

.product-gallery-thumb.is-unavailable:not(.is-active):hover {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14);
}

.product-info-panel {
    border: 1px solid var(--category-border);
    border-radius: 28px;
    background: #fff;
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.product-info-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.product-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-pill-brand {
    background: var(--category-soft);
    color: var(--category-accent);
}

.product-price {
    font-size: clamp(1.35rem, 2.1vw, 1.95rem);
    line-height: 1;
    font-weight: 700;
    color: #16a34a;
    letter-spacing: -0.04em;
}

.product-price-old {
    font-size: clamp(1.2rem, 1.95vw, 1.7rem);
    line-height: 1;
    font-weight: 700;
    color: #7c8b83;
    text-decoration: line-through;
}

#product-detail-modal .product-price-box,
#product-detail-modal .product-price-copy,
#product-detail-modal .product-price-label,
#product-detail-modal .product-price,
#product-detail-modal .product-price-old,
#product-detail-modal .product-offer-badge-image {
    max-width: none;
}

#product-detail-modal .product-price-box {
    padding: 0.45rem 0.7rem;
    gap: 0.55rem;
    align-items: flex-start;
}

#product-detail-modal .product-price-copy {
    display: grid;
    gap: 0.65rem;
    align-content: start;
}

#product-detail-modal .product-price-copy > p {
    margin: 0 !important;
}

#product-detail-modal .product-price-label {
    font-size: 0.88rem;
    line-height: 1.1;
    letter-spacing: 0.16em;
}

#product-detail-modal .product-price {
    font-size: clamp(1.35rem, 2.1vw, 1.95rem);
    line-height: 0.96;
}

#product-detail-modal .product-price-old {
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    line-height: 0.96;
}

#product-detail-modal .product-offer-badge-image {
    width: 92px;
    margin-top: 0.55rem;
}

.product-promo-panel {
    margin-top: 1rem;
    border: 1px solid var(--category-border);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.product-promo-header {
    background: var(--category-strong);
    color: #f8fbf8;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-promo-table {
    width: 100%;
    border-collapse: collapse;
}

.product-promo-table th,
.product-promo-table td {
    padding: 0.9rem 1rem;
    border-top: 1px solid #e4ebe5;
    text-align: left;
}

.product-promo-table th {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7f73;
    background: #f9fcf9;
}

.product-promo-table td {
    font-size: 0.98rem;
    color: var(--category-strong);
}

.product-promo-savings {
    font-weight: 700;
    color: #15803d;
}

.product-meta-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.product-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--category-border);
    border-radius: 18px;
    background: #f8fcf8;
}

.product-meta-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f7f69;
}

.product-meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--category-strong);
    text-align: right;
}

.product-buy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.product-primary-action,
.product-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.9rem 1.35rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.product-primary-action {
    background: #25d366;
    color: #f3faf4;
    box-shadow: 0 16px 30px rgba(37, 211, 102, 0.28);
}

.product-primary-action:hover {
    background: #1ebe5b;
    transform: translateY(-1px);
}

.product-secondary-action {
    background: #2F6E4E;
    color: #F2FAF3;
    border: 1px solid #2F6E4E;
    gap: 0.5rem;
}

.product-secondary-action svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.product-secondary-action:hover {
    background: #23543B;
}

.product-stock-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.product-stock-badge.in-stock {
    background: #25d366;
    color: #f3faf4;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.18);
}

.product-stock-badge.out-stock {
    background: #fde8e8;
    color: #b42318;
}

.product-modal-description h1,
.product-modal-description h2,
.product-modal-description h3,
.product-modal-description h4 {
    color: #163327;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.75em 0 0.35em;
}

.product-modal-description p,
.product-modal-description ul,
.product-modal-description ol,
.product-modal-description blockquote {
    margin: 0.65em 0;
}

.product-modal-description ul,
.product-modal-description ol {
    padding-left: 1.35rem;
}

.product-modal-description blockquote {
    border-left: 4px solid #b7d7bc;
    padding-left: 1rem;
    color: #406450;
}

@media (max-width: 1024px) {
    .product-detail-modal {
        padding: 12px;
    }

    .product-detail-panel {
        border-radius: 24px;
    }

    .product-detail-image {
        height: min(42vh, 420px);
    }

    .product-gallery-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-detail-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "gallery"
            "info"
            "meta"
            "description"
            "ficha";
    }

    .product-detail-left,
    .product-detail-right {
        display: contents;
    }

    .product-detail-gallery {
        grid-area: gallery;
    }

    .product-info-panel {
        grid-area: info;
    }

    .product-meta-grid {
        grid-area: meta;
    }

    .product-description-grid {
        grid-area: description;
        margin-top: 0;
    }

    #product-modal-ficha-panel {
        grid-area: ficha;
        margin-top: 0;
    }

    .product-detail-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .product-description-grid.has-ficha {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .product-gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-installments {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   HOME INDEX - Responsive consolidado (5 rangos claros)
   Chica (celular): <= 639
   Mediana-chica: 640 - 939
   Mediana: 940 - 1290
   Mediana-grande + Grande: >= 1291 (mismo estilo que 1600+)
   ========================================================================== */

/* Base común para tarjetas del index */
#product-track .product-card,
#filamentos .filamentos-track .product-card,
#filamentos .filamentos-track > a,
#filamentos .home-static-grid .product-card {
    display: flex;
    flex-direction: column;
}

#product-track .product-card .featured-body,
#filamentos .product-card .featured-body,
#filamentos .home-static-grid .product-card .featured-body {
    padding: 4px 9px 5px;
}

#product-track .featured-price-slot,
#filamentos .featured-price-slot {
    min-height: 3.75rem;
}

#product-track .product-card .product-card-image,
#filamentos .filamentos-track .product-card .product-card-image,
#filamentos .filamentos-track > a > img,
#filamentos .home-static-grid .product-card .product-card-image {
    object-fit: cover;
}

/* 1) Chicas / celular */
@media (max-width: 639px) {
    .home-subsection-title {
        font-size: 1.95rem;
    }

    #product-track .product-card,
    #filamentos .filamentos-track .product-card,
    #filamentos .filamentos-track > a,
    #filamentos .home-static-grid .product-card {
        min-height: 390px;
    }

    #product-track .product-card .product-card-image,
    #filamentos .filamentos-track .product-card .product-card-image,
    #filamentos .filamentos-track > a > img,
    #filamentos .home-static-grid .product-card .product-card-image {
        height: 170px;
        min-height: 170px;
    }

    #product-track .product-card h3,
    #filamentos .product-card h3,
    #filamentos .filamentos-track h3,
    #filamentos .home-static-grid .product-card h3 {
        font-size: 0.95rem;
        min-height: 3em;
    }

    #product-track .featured-price,
    #filamentos .featured-price {
        font-size: 1.2rem;
    }

    #product-track .product-card--promo .featured-price,
    #filamentos .product-card--promo .featured-price {
        font-size: 1.1rem;
    }

    #product-track .featured-brand,
    #filamentos .featured-brand {
        font-size: 0.9rem;
    }

    #product-track .featured-code,
    #filamentos .featured-code {
        font-size: 0.78rem;
    }
}

/* 2) Medianas-chicas */
@media (min-width: 640px) and (max-width: 939px) {
    .home-subsection-title {
        font-size: 2rem;
    }

    #product-track .product-card,
    #filamentos .filamentos-track .product-card,
    #filamentos .filamentos-track > a,
    #filamentos .home-static-grid .product-card {
        min-height: 405px;
    }

    #product-track .product-card .product-card-image,
    #filamentos .filamentos-track .product-card .product-card-image,
    #filamentos .filamentos-track > a > img,
    #filamentos .home-static-grid .product-card .product-card-image {
        height: 185px;
        min-height: 185px;
    }

    #product-track .product-card h3,
    #filamentos .product-card h3,
    #filamentos .filamentos-track h3,
    #filamentos .home-static-grid .product-card h3 {
        font-size: 0.98rem;
        min-height: 2.95em;
    }

    #product-track .featured-price,
    #filamentos .featured-price {
        font-size: 1.16rem;
    }

    #product-track .featured-brand,
    #filamentos .featured-brand {
        font-size: 0.92rem;
    }

    #product-track .featured-code,
    #filamentos .featured-code {
        font-size: 0.8rem;
    }
}

/* 3) Medianas */
@media (min-width: 940px) and (max-width: 1290px) {
    .home-subsection-title {
        font-size: 2.05rem;
    }

    #product-track .product-card,
    #filamentos .filamentos-track .product-card,
    #filamentos .filamentos-track > a,
    #filamentos .home-static-grid .product-card {
        min-height: 390px;
    }

    #product-track .product-card .product-card-image,
    #filamentos .filamentos-track .product-card .product-card-image,
    #filamentos .filamentos-track > a > img,
    #filamentos .home-static-grid .product-card .product-card-image {
        height: 175px;
        min-height: 175px;
    }

    #product-track .product-card h3,
    #filamentos .product-card h3,
    #filamentos .filamentos-track h3,
    #filamentos .home-static-grid .product-card h3 {
        font-size: 1rem;
        min-height: 2.85em;
    }

    #product-track .featured-price,
    #filamentos .featured-price {
        font-size: 1.18rem;
    }

    #product-track .featured-brand,
    #filamentos .featured-brand {
        font-size: 0.95rem;
    }

    #product-track .featured-code,
    #filamentos .featured-code {
        font-size: 0.8rem;
    }
}

/* 4 y 5) Medianas-grandes + Grandes: mismo estilo desde 1291 en adelante */
@media (min-width: 1291px) {
    .home-subsection-title {
        font-size: 2.15rem;
    }

    #product-track .product-card,
    #filamentos .filamentos-track .product-card,
    #filamentos .filamentos-track > a,
    #filamentos .home-static-grid .product-card {
        min-height: 430px;
    }

    #product-track .product-card .product-card-image,
    #filamentos .filamentos-track .product-card .product-card-image,
    #filamentos .filamentos-track > a > img,
    #filamentos .home-static-grid .product-card .product-card-image {
        height: 205px;
        min-height: 205px;
    }

    #product-track .product-card h3,
    #filamentos .product-card h3,
    #filamentos .filamentos-track h3,
    #filamentos .home-static-grid .product-card h3 {
        font-size: 1.08rem;
        min-height: 2.85em;
    }

    #product-track .featured-price,
    #filamentos .featured-price {
        font-size: 1.28rem;
    }

    #product-track .featured-brand,
    #filamentos .featured-brand {
        font-size: 1rem;
    }

    #product-track .featured-code,
    #filamentos .featured-code {
        font-size: 0.86rem;
    }
}
