* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --site-font-body: system-ui, -apple-system, sans-serif;
    --site-font-heading: system-ui, -apple-system, sans-serif;
    --site-direction: ltr;
    --site-text-align: left;
    --site-bg: #FAFAF9;
    --site-surface: #FFFFFF;
    --site-surface-soft: #F5F0E8;
    --site-ink: #1C1917;
    --site-muted: #5F5A54;
    --site-accent: #A16207;
    --site-accent-soft: rgba(161, 98, 7, 0.12);
    --site-border: rgba(28, 25, 23, 0.12);
    --site-shadow-sm: 0 2px 10px rgba(28, 25, 23, 0.06);
    --site-shadow-md: 0 18px 45px rgba(28, 25, 23, 0.10);
    --site-radius: 8px;
    --site-radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: #D4C5B5 #FBF9F4;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    background: var(--site-bg);
    color: var(--site-ink);
    font-family: var(--site-font-body);
    overflow-x: hidden;
    line-height: 1.7;
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: var(--site-direction);
    text-align: var(--site-text-align);
}

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

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--site-ink);
    color: var(--site-bg);
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.font-display,
h1,
h2,
h3,
h4,
h5,
h6,
.brand-name-text,
.product-card-title {
    font-family: var(--site-font-heading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

::selection {
    background: var(--site-accent-soft);
    color: var(--site-ink);
}

::-moz-selection {
    background: var(--site-accent-soft);
    color: var(--site-ink);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FBF9F4;
}

::-webkit-scrollbar-thumb {
    background: #D4C5B5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8956E;
}

.floating-cotton-container {
    z-index: 1;
}

.cotton-icon {
    position: absolute;
    filter: blur(0.5px);
    will-change: transform, opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.cotton-icon-1 {
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
}

.cotton-icon-2 {
    top: 20%;
    right: 10%;
    width: 140px;
    height: 140px;
}

.cotton-icon-3 {
    bottom: 25%;
    left: 8%;
    width: 110px;
    height: 110px;
}

.cotton-icon-4 {
    top: 50%;
    right: 5%;
    width: 130px;
    height: 130px;
}

.cotton-icon-5 {
    bottom: 15%;
    right: 20%;
    width: 95px;
    height: 95px;
}

@media (max-width: 768px) {
    .cotton-icon {
        width: 60px !important;
        height: 60px !important;
        opacity: 0.5;
    }
}

.text-hero {
    font-size: clamp(2.75rem, 7vw, 6rem);
    line-height: 1.1;
    font-weight: 800;
}

.text-section {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.2;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--site-radius-sm);
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--site-ink);
    color: var(--site-bg);
}

.btn-primary:hover {
    background: var(--site-accent);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(161, 98, 7, 0.22);
}

.btn-outline {
    background: transparent;
    color: var(--site-ink);
    border: 1px solid var(--site-border);
}

.btn-outline:hover {
    background: rgba(28, 25, 23, 0.06);
    border-color: rgba(28, 25, 23, 0.22);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.btn:active {
    -webkit-transform: translateY(0) scale(0.98);
    transform: translateY(0) scale(0.98);
}

.btn__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.divider {
    height: 1px;
    background: -webkit-linear-gradient(left, transparent, #D4C5B5, transparent);
    background: linear-gradient(90deg, transparent, #D4C5B5, transparent);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 4vw, 1.25rem);
    width: 100%;
    max-width: 500px;
    justify-items: center;
}

@media (min-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 900px;
        gap: 2rem;
    }
}

.brand-card-item {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card-item:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.brand-card-inner {
    background: var(--site-bg);
    width: min(100%, 100px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--site-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: 1px solid var(--site-border);
}

@media (min-width: 768px) {
    .brand-card-inner {
        width: 120px;
    }
}

.brand-card-item:hover .brand-card-inner {
    background: var(--site-surface);
    border-color: rgba(161, 98, 7, 0.35);
    box-shadow: var(--site-shadow-sm);
}

.brand-logo {
    width: min(80px, 82%);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.2s ease;
}

@media (min-width: 768px) {
    .brand-logo {
        width: 100px;
    }
}

.brand-card-item:hover .brand-logo {
    filter: grayscale(0%) opacity(1);
}

.brand-name-display {
    width: 100%;
    text-align: center;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .brand-name-display {
        min-height: 3.5rem;
    }
}

.brand-name-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--site-ink);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-name-display.show .brand-name-text {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .brand-name-text {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .brand-card-inner {
        width: min(100%, 110px);
    }

    .brand-logo {
        width: min(90px, 82%);
    }

    .brands-grid {
        gap: clamp(0.75rem, 4vw, 1.5rem);
        max-width: 600px;
    }
}

#contact .absolute img {
    filter: grayscale(100%);
    mix-blend-mode: overlay;
}

@supports not (mix-blend-mode: overlay) {
    #contact .absolute img {
        mix-blend-mode: normal;
        opacity: 0.08;
    }
}

.products-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 4%, rgba(161, 98, 7, 0.08), transparent 24rem),
        linear-gradient(180deg, #FAFAF9 0%, #F5F0E8 100%);
}

.products-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(28, 25, 23, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 25, 23, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.products-section .container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
}

.products-header {
    max-width: 760px;
    margin-bottom: 2rem !important;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .products-header {
        margin-bottom: 4rem !important;
    }
}

.products-lead {
    max-width: 640px;
    margin: 1rem auto 0;
    color: var(--site-muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.85;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.82);
    border-radius: var(--site-radius);
    overflow: hidden;
    border: 1px solid var(--site-border);
    box-shadow: 0 18px 50px rgba(28, 25, 23, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(161, 98, 7, 0.34);
    box-shadow: 0 26px 70px rgba(28, 25, 23, 0.13);
}

.product-card-link {
    color: inherit;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 100%;
    text-decoration: none;
}

.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(28, 25, 23, 0.08), rgba(255, 255, 255, 0.35)),
        #EFE8DC;
}

@media (min-width: 768px) {
    .product-card-image {
        aspect-ratio: 4 / 5;
    }
}

.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(28, 25, 23, 0.18) 100%);
    pointer-events: none;
}

.product-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.95) contrast(1.04);
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--site-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--site-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.product-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .product-card-content {
        padding: 1.5rem;
    }
}

.product-card-kicker {
    color: var(--site-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.product-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--site-ink);
    line-height: 1.3;
    margin: 0;
}

@media (min-width: 768px) {
    .product-card-title {
        font-size: 1.75rem;
    }
}

.product-card-desc {
    font-size: 1rem;
    color: var(--site-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

@media (min-width: 768px) {
    .product-card-desc {
        font-size: 1.0625rem;
    }
}

.product-card .card-image {
    overflow: hidden;
    border-radius: 16px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(28, 25, 23, 0.1);
    color: var(--site-muted);
    font-size: 0.88rem;
}

.product-card-action {
    color: var(--site-ink);
    font-weight: 800;
    white-space: nowrap;
}

.product-card-action::after {
    content: ' ←';
}

[dir='ltr'] .product-card-action::after {
    content: ' →';
}

.feature-card {
    background: var(--site-surface);
    border-radius: var(--site-radius);
    padding: 2.5rem;
    -webkit-transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid var(--site-border);
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    transform: none !important;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--site-accent), #D4B896);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    border-color: rgba(161, 98, 7, 0.22);
    box-shadow: var(--site-shadow-md);
}

.stat-item {
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.stat-item:hover {
    -webkit-transform: translateY(-5px) scale(1.02);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(184, 149, 110, 0.15);
}

.stat-number {
    display: inline-block;
    min-width: 2ch;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--site-accent), #8B7355);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 1024px) {
    .floating-product {
        display: none !important;
    }

    .hero-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .text-hero {
        font-size: 2.5rem;
    }

    .text-section {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        padding: 14px 22px;
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--site-bg);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu:not(.hidden) {
    display: flex;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--site-ink);
    padding: 1rem;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
    text-decoration: none;
}

.mobile-link:hover,
.mobile-menu a:hover {
    color: #B8956E;
}

.nav-link,
header a,
.footer a,
footer a,
.mobile-menu a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-link {
    min-width: 44px;
    justify-content: center;
    padding-inline: 0.5rem;
    padding-block: 0.5rem;
}

footer a {
    min-width: 44px;
    justify-content: center;
}

.mobile-menu a:not(.mobile-link) {
    padding-inline: 0.5rem;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    z-index: 150;
    position: relative;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

.menu-line {
    width: 24px;
    height: 2px;
    background: #2C2C2C;
    border-radius: 2px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: block;
}

header {
    background: rgba(250, 250, 249, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgba(250, 250, 249, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    header,
    header.scrolled {
        background: #FBF9F4;
    }
}

.empty-state {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: var(--site-shadow-sm);
    text-align: center;
}

.empty-state__title {
    margin-bottom: 0.5rem;
    color: var(--site-ink);
    font-size: 1.25rem;
    font-weight: 700;
}

.empty-state__text {
    max-width: 38rem;
    margin: 0 auto 1.25rem;
    color: var(--site-muted);
    line-height: 1.7;
}

.whatsapp-float {
    position: fixed;
    z-index: 60;
    inset-inline-end: max(18px, env(safe-area-inset-right));
    inset-block-end: max(18px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #24d366, #128c7e);
    color: #fff;
    padding: 11px 15px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(18, 140, 126, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(18, 140, 126, 0.3);
}

.whatsapp-float svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:focus-visible {
    outline: 3px solid var(--site-accent);
    outline-offset: 3px;
}

.btn:focus-visible,
.nav-link:focus-visible,
header a:focus-visible,
footer a:focus-visible,
.mobile-menu-btn:focus-visible,
.mobile-link:focus-visible,
    .brand-card-item:focus-visible {
    outline: 3px solid var(--site-accent);
    outline-offset: 4px;
}

@media (hover: none), (pointer: coarse) {
    .product-card:hover,
    .feature-card:hover,
    .stat-item:hover,
    .brand-card-item:hover,
    .btn:hover {
        -webkit-transform: none;
        transform: none;
    }

    .product-card:hover .product-card-img {
        transform: none;
    }
}
