:root {
    --primary-bg: #F8FAFC;
    --surface-card: #FFFFFF;
    --dark-navy: #0F172A;
    --navy-secondary: #1E293B;
    --graphite-text: #334155;
    --graphite-muted: #64748B;
    --border-color: #E2E8F0;
    --accent-interactive: #2563EB;
    --accent-hover: #1D4ED8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--graphite-text);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: inherit;
}

h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
}

h2 {
    font-size: clamp(1.625rem, 2.5vw + 1rem, 2.375rem);
}

h3 {
    font-size: clamp(1.25rem, 1.8vw + 0.8rem, 1.75rem);
}

h4 {
    font-size: clamp(1.125rem, 1.2vw + 0.75rem, 1.375rem);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.25s ease-in-out;
}

button:active {
    transform: scale(0.98);
}

ul,
ol {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--accent-interactive);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 5vw + 0.5rem, 2.25rem);
    }

    h2 {
        font-size: clamp(1.375rem, 4vw + 0.5rem, 1.75rem);
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    a,
    p,
    span,
    address {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    #cookieConsentBanner {
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        border-radius: 12px 12px 0 0 !important;
    }
}

/* ===== site_header ===== */
#header {
    overflow: hidden;
    background-color: var(--surface-card);
    border-color: var(--border-color) !important;
}

.brand-logo {
    max-width: 46px;
    width: 46px;
    height: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--dark-navy) !important;
}

.nav-link-item {
    color: var(--graphite-text) !important;
    transition: color 0.2s ease-in-out;
    font-size: 0.95rem;
}

.nav-link-item:hover {
    color: var(--accent-interactive) !important;
}

.nav-divider {
    width: 1px;
    height: 28px;
    background-color: var(--border-color);
}

.nav-cta-btn {
    background-color: var(--accent-interactive) !important;
    border-color: var(--accent-interactive) !important;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    font-size: 0.95rem;
}

.nav-cta-btn:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

.hamburger-btn {
    cursor: pointer;
    border-radius: 6px;
}

.hamburger-btn:focus-visible {
    outline: 2px solid var(--accent-interactive);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background-color: var(--surface-card);
    transition: max-height 0.3s ease-in-out;
    border-bottom: 1px solid var(--border-color);
}

.mobile-dropdown-menu.is-open {
    max-height: 420px;
}

.mobile-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--dark-navy) !important;
    font-size: 1rem;
    border-radius: 6px;
    padding-left: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: var(--primary-bg);
    color: var(--accent-interactive) !important;
}

@media (max-width: 767.98px) {
    .brand-name {
        font-size: 0.8rem;
    }
}

/* ===== hero_section ===== */
#hero {
    background-color: var(--primary-bg);
    color: var(--navy-secondary);
    hyphens: auto
}

#hero .hero-title {
    color: var(--dark-navy);
    font-size: 1.125rem;
    line-height: 1.2;
    letter-spacing: -0.02em
}

#hero .hero-subtitle {
    color: var(--graphite-text);
    font-size: 0.95rem;
    line-height: 1.5
}

#hero .hero-media-wrapper {
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
    width: 100%
}

#hero .hero-banner-img {
    height: 280px;
    object-fit: cover;
    display: block
}

#hero .hero-btn {
    background-color: var(--accent-interactive);
    color: #ffffff;
    border: 1px solid var(--accent-interactive);
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease, border-color 0.2s ease
}

#hero .hero-btn i {
    color: #ffffff
}

#hero .hero-btn:hover,
#hero .hero-btn:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff
}

#hero .hero-btn:hover i,
#hero .hero-btn:focus i {
    color: #ffffff
}

@media(min-width:768px) {
    #hero .hero-title {
        font-size: 2rem;
        line-height: 1.25
    }

    #hero .hero-subtitle {
        font-size: 1.05rem
    }

    #hero .hero-banner-img {
        height: 380px
    }
}

@media(min-width:992px) {
    #hero .hero-title {
        font-size: 2.75rem;
        line-height: 1.2
    }

    #hero .hero-subtitle {
        font-size: 1.125rem
    }

    #hero .hero-banner-img {
        height: 440px
    }
}

/* ===== catalog_section ===== */
#catalogo {
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 767.98px) {
    #catalogo h2 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

    #catalogo h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }
}

.js-modal-trigger:hover {
    background-color: var(--accent-hover) !important;
}

.js-catalog-filter {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ===== featured_products ===== */
#destacados {
    width: 100%;
}

#destacados .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#destacados .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

#destacados .btn:hover {
    background-color: var(--accent-hover) !important;
    color: #ffffff !important;
}

#destacados .js-modal-close:hover {
    background-color: var(--dark-navy) !important;
}

@media (max-width: 767.98px) {
    #destacados h2 {
        font-size: 1rem !important;
        hyphens: auto;
        line-height: 1.2;
    }

    #destacados h3 {
        font-size: 0.875rem !important;
        hyphens: auto;
        line-height: 1.2;
    }

    #destacados h4 {
        font-size: 0.8125rem !important;
        hyphens: auto;
        line-height: 1.2;
    }
}

/* ===== buyer_guide ===== */
#guia-de-compra {
    overflow: hidden;
}

#guia-de-compra .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-color);
}

#guia-de-compra .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

#guia-de-compra .card-img-wrapper {
    height: 220px;
    overflow: hidden;
    background-color: var(--border-color);
}

#guia-de-compra .guide-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

#guia-de-compra .card:hover .guide-img {
    transform: scale(1.04);
}

#guia-de-compra .btn:hover {
    background-color: var(--accent-hover) !important;
}

.guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.guide-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
}

.guide-modal-content {
    position: relative;
    z-index: 1051;
    background-color: var(--surface-card);
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.guide-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 50%;
}

.guide-modal-close:hover {
    background-color: var(--primary-bg);
}

.modal-body-scroll {
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1 1 auto;
}

.guide-modal-content > :not(.modal-body-scroll) {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    #guia-de-compra h2 {
        font-size: 1rem;
        line-height: 1.2;
        hyphens: auto;
    }

    #guia-de-compra h3 {
        font-size: 0.875rem;
        line-height: 1.25;
        hyphens: auto;
    }

    #guia-de-compra .card-img-wrapper {
        height: 190px;
    }
}

/* ===== about_store ===== */
#nosotros {
    background-color: var(--primary-bg, #F8FAFC);
    color: var(--graphite-text, #334155);
    overflow: hidden
}

.nosotros-badge {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--accent-interactive, #2563EB);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em
}

.nosotros-title {
    color: var(--dark-navy, #0F172A);
    font-weight: 700;
    line-height: 1.2;
    hyphens: auto
}

.nosotros-lead {
    color: var(--graphite-muted, #64748B);
    font-size: 1.05rem;
    line-height: 1.6
}

.nosotros-card {
    background-color: var(--surface-card, #FFFFFF);
    border-color: var(--border-color, #E2E8F0) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease
}

.nosotros-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06)
}

.nosotros-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.08)
}

.nosotros-icon {
    font-size: 24px;
    color: var(--accent-interactive, #2563EB);
    line-height: 1
}

.nosotros-card-title {
    color: var(--navy-secondary, #1E293B);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    hyphens: auto
}

.nosotros-card-text {
    color: var(--graphite-text, #334155);
    font-size: 0.9375rem;
    line-height: 1.55
}

.nosotros-notice {
    background-color: var(--surface-card, #FFFFFF);
    border: 1px dashed var(--border-color, #E2E8F0)
}

.nosotros-notice-text {
    color: var(--graphite-muted, #64748B);
    font-size: 0.875rem;
    line-height: 1.5
}

@media (max-width:767.98px) {
    .nosotros-title {
        font-size: 1rem;
        line-height: 1.25
    }

    .nosotros-lead {
        font-size: 0.875rem;
        line-height: 1.45
    }

    .nosotros-card-title {
        font-size: 0.875rem;
        line-height: 1.2
    }

    .nosotros-card-text {
        font-size: 0.8125rem;
        line-height: 1.4
    }

    .nosotros-notice-text {
        font-size: 0.75rem
    }
}

/* ===== shipping_returns_policy ===== */
#envios-y-devoluciones {
    overflow: hidden;
}

#envios-y-devoluciones h2,
#envios-y-devoluciones h3 {
    hyphens: auto;
}

@media(max-width:767.98px) {
    #envios-y-devoluciones h2 {
        font-size: 1.125rem;
        line-height: 1.25;
    }

    #envios-y-devoluciones h3 {
        font-size: 0.875rem;
        line-height: 1.25;
    }
}

#envios-y-devoluciones .js-accordion-trigger:focus-visible {
    outline: 2px solid var(--accent-interactive);
    outline-offset: 2px;
}

/* ===== contact_section ===== */
#contacto {
    overflow: hidden;
    width: 100%;
}

#contacto .form-control:focus,
#contacto .form-check-input:focus {
    border-color: var(--accent-interactive) !important;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15) !important;
}

#contacto .form-control::placeholder {
    color: var(--graphite-muted);
    opacity: 0.8;
}

#contacto .btn:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

#contacto .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

#contacto .contact-info-card,
#contacto .contact-form-card {
    width: 100%;
}

@media (max-width: 767.98px) {
    #contacto h2 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        hyphens: auto;
    }

    #contacto h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
        hyphens: auto;
    }
}

/* ===== site_footer ===== */
#footer.site-footer {
    background-color: var(--dark-navy);
    color: #FFFFFF;
    font-family: inherit;
}

#footer .footer-brand-icon {
    font-size: 1.75rem;
    line-height: 1;
}

#footer .footer-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
}

#footer .footer-heading {
    font-size: 1rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#footer .footer-contact-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
    line-height: 1.4;
}

#footer .footer-contact-text {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.9;
}

#footer .footer-link {
    font-size: 0.875rem;
    line-height: 1.4;
    text-decoration: none;
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease;
    display: inline-block;
}

#footer .footer-link:hover,
#footer .footer-link:focus {
    color: var(--accent-interactive) !important;
    opacity: 1;
    text-decoration: underline;
}

#footer .footer-divider {
    height: 1px;
    background-color: var(--navy-secondary);
    border: none;
}

#footer .footer-copy,
#footer .footer-note {
    font-size: 0.8125rem;
    opacity: 0.75;
}

@media (max-width: 767.98px) {
    #footer .footer-heading {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    #footer .footer-description {
        font-size: 0.875rem;
    }

    #footer .site-footer {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}
/* Compact spacing below the header on legal pages. */
.legal-page-wrapper > .container > section,
.legal-page-wrapper > .container > section > .container {
    padding-top: 0 !important;
}
