/* CSS Variables */
:root {
    --primary-color: #792821; /* Dark red/brown */
    --primary-hover: #802B23;
    --accent-color: #8E3532; /* Brand accent red */
    --text-dark: #222222;
    --text-light: #555555;
    --bg-main: #ffffff;
    --bg-section: #fdfaf5; /* Creamy light background */
    --bg-form: #fbf5ee;
    --bg-footer: #1a1210;
    --border-color: #eaeaea;
    
    --font-main: 'Corben', serif;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--text-dark);
}

.btn-light {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f0f0f0;
}

.btn-link {
    background-color: transparent;
    color: var(--text-dark);
    text-decoration: underline;
}

.btn-block {
    display: block;
    width: 100%;
}

.unete-btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 12px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-main);
    font-size: 56px;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Header */
header {
    background-color: #ffffff;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    background-color: rgba(255,255,255,0.97);
    backdrop-filter: blur(6px);
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
}

.left-nav {
    justify-self: start;
}

.center-logo {
    justify-self: center;
}

.right-actions {
    justify-self: end;
}

.glow-text {
    transition: var(--transition);
}

.glow-text:hover,
.glow-text.active {
    color: var(--accent-color) !important;
    text-shadow: 0 0 8px rgba(142, 53, 50, 0.7), 0 0 20px rgba(142, 53, 50, 0.4);
}

.logo img {
    height: 40px;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    font-family: var(--font-body); /* Lato */
    font-size: 14px;
    font-weight: 700; /* Bold */
    letter-spacing: 1.5px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--primary-color);
}

/* ── Nav Dropdown ─────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 9px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: #ffffff;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    padding: 14px 0 8px; /* padding-top crea el espacio visual sin gap de hover */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 950;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 22px;
    font-family: var(--font-body); /* Lato */
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    text-transform: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #fdf4ef;
    color: var(--primary-color);
    padding-left: 28px;
}

/* Tiny divider between items */
.dropdown-menu li + li a {
    border-top: 1px solid #f3ece8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-nav {
    display: none;
    background-color: #ffffff;
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    z-index: 950;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav.active {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    will-change: transform;
    contain: layout style;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
    margin: 0 auto;
    overflow: hidden; /* necesario para SplitText con clip */
}

.hero .highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Specialities Section */
.specialities {
    padding: 80px 0;
    background-color: var(--bg-main);
    container-type: inline-size;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    will-change: transform, opacity;
    contain: layout style;
}

.specialities > .container {
    width: 100%;
}

#specialities-title {
    font-family: var(--font-main);
    font-weight: 700;
    color: #802B23;
}

.specialities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.speciality-item {
    text-align: center;
}

.speciality-item .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.speciality-item:hover .icon-circle {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.speciality-item .icon-circle img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    transition: var(--transition);
}

.speciality-item:hover .icon-circle img {
    filter: brightness(0) invert(1);
}

.speciality-item p {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: #f5ede6;
    container-type: inline-size;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    will-change: transform, opacity;
    contain: layout style;
}

.products-section > .container {
    width: 100%;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
    margin-bottom: 40px;
}

.products-header .section-title {
    margin-bottom: 0;
}

.view-all {
    font-family: var(--font-body);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.view-all:hover {
    text-decoration: underline;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* hover lift handled by GSAP in script.js */
.product-card:hover {
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}

.product-card .tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-heading);
    z-index: 2;
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0ec;
    margin-bottom: 0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px 18px 14px;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 5px;
}

.product-info .desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-info .price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.qty-add {
    margin-bottom: 15px;
}

.quantity-control {
    display: flex;
    align-items: stretch;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    height: 36px;
}

.qty-btn {
    background: var(--bg-section);
    border: none;
    width: 36px;
    height: 100%;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.qty-input {
    width: 44px;
    height: 100%;
    border: none;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.view-details {
    font-size: 11px;
    text-align: center;
    display: block;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
}

.view-details:hover {
    color: var(--primary-color);
}

/* B2B Section */
.b2b-section {
    background-color: var(--primary-color);
    color: #ffffff;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    will-change: transform, opacity;
    contain: layout style;
}

.b2b-container {
    display: flex;
    align-items: stretch;
    padding: 0;
    max-width: 100%;
}

.b2b-image {
    flex: 1;
    min-height: 400px;
}

.b2b-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(10%);
}

.b2b-content {
    flex: 1;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.b2b-content h2 {
    color: #ffffff;
    font-size: 40px;
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 20px;
}

.b2b-content .brand-font {
    font-family: var(--font-main);
    letter-spacing: 2px;
}

.b2b-content p {
    font-weight: 300;
    margin-bottom: 30px;
    font-size: 16px;
}

.b2b-features {
    margin-bottom: 40px;
}

.b2b-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.b2b-features i {
    color: var(--primary-color);
    background-color: #ffffff;
    font-size: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.b2b-btn {
    align-self: flex-start;
}



/* Contact Form Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-main);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    will-change: transform, opacity;
    contain: layout style;
}

.contact-section > .container {
    width: 100%;
}

.contact-box {
    background-color: var(--bg-form);
    border-radius: 20px;
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-sub {
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input, .form-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    background-color: #ffffff;
    width: 100%;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-icon input {
    padding-left: 40px;
}

.submit-btn {
    margin-top: 10px;
    padding: 15px;
    font-size: 16px;
}

/* Footer */
footer {
    background-color: var(--bg-footer);
    color: #ffffff;
    padding: 60px 0 20px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    will-change: transform, opacity;
    contain: layout style;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 60px;
    width: 100%;
}



.footer-logo {
    height: 56px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #e0e0e0;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 90%;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-links {
    display: contents; /* Para que sus hijos (footer-col) sean elementos del grid principal */
}

.footer-col h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a, .footer-col li {
    color: #bbbbbb;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.contact-col li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contact-col i {
    margin-top: 4px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    padding-bottom: 10px;
    font-size: 13px;
    color: #999999;
    text-align: center;
    width: 100%;
}

/* Sidebar Cart */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background-color: var(--bg-footer);
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 16px;
    letter-spacing: 1px;
}

.close-cart {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--bg-section);
    border-radius: 4px;
    padding: 5px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-qty-price {
    display: flex;
    background: var(--bg-section);
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    font-size: 12px;
}

.cart-item-qty-price button {
    background: none;
    border: none;
    padding: 2px 8px;
    cursor: pointer;
}

.cart-item-qty-price span {
    padding: 0 5px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: block;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: var(--primary-color);
}

.cart-footer {
    padding: 20px;
    background-color: var(--bg-section);
    border-top: 1px solid var(--border-color);
}

.subtotal {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.subtotal span:last-child {
    color: var(--primary-color);
}

.tax-note {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 15px;
}

.cart-footer .btn {
    margin-bottom: 10px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 990;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-overlay.show {
    display: block;
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .specialities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .b2b-container {
        flex-direction: column;
    }
    .b2b-image {
        min-height: 300px;
    }
    .b2b-image img {
        transform: translateX(0);
    }
    .footer-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    .header-container {
        padding: 0 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .right-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .desktop-nav, .unete-btn, .desktop-only {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* Reducir especialidades para que quepan en la pantalla bloqueada */
    .specialities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .speciality-item .icon-circle {
        width: 60px;
        height: 60px;
        margin: 0 auto 10px;
    }
    .speciality-item .icon-circle img {
        max-width: 30px;
        max-height: 30px;
    }
    .speciality-item p {
        font-size: 12px;
    }

    /* Otras rejillas y compactación extrema para fitting vertical */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .products-section {
        padding: 60px 0;
    }
    .products-header {
        margin-bottom: 20px;
        padding-bottom: 8px;
    }
    .products-header .section-title {
        font-size: 20px;
    }
    
    .product-image {
        height: 110px;
    }
    .product-info {
        padding: 8px 10px 10px;
    }
    .product-info h3 {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .product-info .desc {
        font-size: 10px;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    .product-info .price {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .qty-add {
        margin-bottom: 8px;
    }
    .quantity-control {
        height: 28px;
        margin-bottom: 6px;
    }
    .qty-btn {
        width: 28px;
        font-size: 14px;
    }
    .qty-input {
        width: 34px;
        font-size: 12px;
    }
    .add-to-cart-btn {
        font-size: 10px;
        padding: 6px 10px;
    }
    .view-details {
        font-size: 9px;
        margin-top: 5px;
    }

    .b2b-container {
        flex-direction: column;
        padding-bottom: 40px;
    }
    .b2b-image {
        width: 100%;
        min-height: 250px;
        max-height: 250px;
        flex: none;
    }
    .b2b-image img {
        transform: translateX(0);
        height: 100%;
        object-fit: cover;
    }
    .b2b-content {
        flex: none;
        padding: 30px 24px;
        text-align: center;
    }
    .b2b-content h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .b2b-content p {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    .b2b-features {
        margin-bottom: 25px;
        display: inline-block;
        text-align: left;
    }
    .b2b-features li {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .b2b-features i {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    .b2b-btn {
        align-self: center;
    }
    
    /* Contact Box compact */
    .contact-box {
        padding: 30px 20px;
    }
    .contact-sub {
        font-size: 12px;
        margin-bottom: 20px;
    }
    .form-group label {
        font-size: 11px;
    }
    .form-group input {
        height: 38px;
        font-size: 12px;
        padding: 8px 12px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* FORZAMOS 2 COLUMNAS PARA QUE NO CORTE */
    }
    .hero {
        padding: 80px 0;
    }
    .b2b-content {
        padding: 20px 16px;
    }
}

/* ============================================
   GSAP ANIMATIONS — compatibilidad y estados
   ============================================ */

/*
  Los elementos animados por GSAP comienzan visibles en HTML
  para evitar FOUC (flash of unstyled content). GSAP los
  oculta justo antes de la animación mediante gsap.set().
*/

/* Líneas generadas por SplitText (hero) */
.hero-line {
    overflow: hidden;
    display: block;
}

/* Cards de producto: estado de reposo normal (GSAP maneja opacity/transform) */
.product-card.gsap-card {
    will-change: opacity, transform;
}

/* Speciality items animados por GSAP */
.speciality-item.gsap-reveal {
    will-change: opacity, transform;
}

/* Respeta la preferencia de movimiento reducido del sistema */
@media (prefers-reduced-motion: reduce) {
    .hero-line,
    .product-card.gsap-card,
    .speciality-item.gsap-reveal,
    .gsap-arrow {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ── Flechas animadas (PC) ─────────────────────────────────────────────────── */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    z-index: 10;
    pointer-events: none; /* Que no bloqueen clics */
    animation: bounceArrow 2s infinite ease-in-out;
}

.scroll-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Poner flecha en blanco. El héroe es oscuro */
}

/* La sección de especialidades es beige, por lo que la flecha ahí será roja (primary color) */
.specialities .scroll-arrow img {
    filter: invert(18%) sepia(35%) saturate(3015%) hue-rotate(345deg) brightness(97%) contrast(90%); /* Esto simula el color #802B23/primary-hover o podemos usar hue rotation o simplemente filter: none / brightness(0)... */
}
/* Mejor aproximación: quitar el filtro si la flecha original es negra, pero para asegurar, color rojizo: */
.specialities .scroll-arrow img {
    filter: invert(16%) sepia(50%) saturate(7005%) hue-rotate(349deg) brightness(88%) contrast(95%);
}

@keyframes bounceArrow {
    0%, 100% {
        margin-bottom: 0;
    }
    50% {
        margin-bottom: -10px;
    }
}

/* ============================================
   Checkout Modal API 
   ============================================ */
.checkout-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkout-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.checkout-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkout-modal.show .checkout-modal-content {
    transform: translateY(0) scale(1);
}

.close-checkout {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s, transform 0.2s;
}

.close-checkout:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}
