/* ============================================
   RESET Y VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-red: #dc2626;
    --color-red-hover: #b91c1c;
    --color-gray-light: #f5f5f5;
    --color-gray-dark: #1a1a1a;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--color-red);
    color: var(--color-white);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.2);
}

.btn:hover {
    background-color: var(--color-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-add {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-consultar-stock {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: #f59e0b;
    color: var(--color-white);
}

.btn-consultar-stock:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background-color: var(--color-black);
    z-index: 1000;
    box-shadow: var(--shadow);
    overflow-x: hidden;
}

.navbar {
    padding: 1.2rem 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    height: 85px;
}

.logo-img {
    height: 80px;
    max-height: 85px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* .nav-menu se define más abajo para móvil */

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--color-red);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-red);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menú móvil activo */
.nav-menu {
    display: none;
    list-style: none;
    gap: 0;
    align-items: stretch;
}

.nav-menu.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-black);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    animation: slideDown 0.3s ease;
    visibility: visible;
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
                url('img/banner.jpg') center/cover;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(0, 0, 0, 0.35));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-white);
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CATÁLOGO
   ============================================ */
.catalogo {
    padding: 4rem 0;
    background-color: var(--color-black);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-white);
}

.categoria {
    margin-bottom: 4rem;
}

.categoria-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-red);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-red);
}

.productos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.producto-card {
    background-color: var(--color-gray-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-red);
}

.producto-img {
    width: 100%;
    max-width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--color-gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-sizing: border-box;
}

.producto-img img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    border-radius: 8px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.producto-card:hover .producto-img img {
    transform: scale(1.05);
}

.producto-info {
    padding: 1.5rem;
}

.producto-nombre {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.producto-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.8;
    white-space: pre-line;
}

.producto-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.producto-precio {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-red);
}

/* ============================================
   CARRITO DRAWER
   ============================================ */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: var(--color-black);
    color: var(--color-white);
}

.cart-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.cart-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--color-red);
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    color: var(--color-black);
}

.cart-empty {
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-black);
}

.cart-item-price {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--color-black);
    padding: 0 0.5rem;
    transition: var(--transition);
}

.qty-btn:hover {
    color: var(--color-red);
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-red);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    text-decoration: underline;
}

.cart-item-subtotal {
    font-weight: 600;
    color: var(--color-black);
    margin-top: 0.5rem;
}

.cart-footer {
    padding: 1.5rem;
    background-color: var(--color-gray-light);
    border-top: 2px solid var(--color-red);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
}

/* ============================================
   MODAL DE CHECKOUT
   ============================================ */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkout-modal.active {
    display: flex;
    opacity: 1;
}

.checkout-content {
    background-color: var(--color-white);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--color-black);
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 12px 12px 0 0;
}

.checkout-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.checkout-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkout-close:hover {
    color: var(--color-red);
    transform: rotate(90deg);
}

#checkoutForm {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-gray-dark);
    padding: 3rem 0 1.5rem;
    border-top: 2px solid var(--color-red);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-red);
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    color: var(--color-white);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-link span {
    font-size: 0.9rem;
}

.social-link:hover {
    background-color: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ============================================
   OPTIMIZACIÓN MÓVIL (Mobile First)
   ============================================ */
@media (max-width: 767px) {
    /* Container más compacto en móviles */
    .container {
        padding: 0 0.75rem;
    }

    /* Header optimizado para móviles */
    .header {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        height: 60px;
    }

    .logo-img {
        height: 55px;
        max-width: 200px;
    }
    
    /* Menú hamburguesa visible en móviles */
    .menu-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    /* Asegurar que el menú móvil sea visible */
    .nav-menu.active {
        top: 70px !important;
        z-index: 1001 !important;
        background-color: #000000 !important;
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Botones más grandes y táctiles */
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        min-width: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(220, 38, 38, 0.2);
    }

    .btn-add {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
        font-weight: 600;
    }

    .btn-consultar-stock {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
        font-weight: 600;
    }

    /* Hero section optimizado */
    .hero {
        min-height: 70vh;
        margin-top: 60px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-content {
        padding: 1.5rem 0.75rem;
    }

    /* Catálogo optimizado */
    .catalogo {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .categoria {
        margin-bottom: 3rem;
    }

    .categoria-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .productos-grid {
        gap: 1.25rem;
    }

    .producto-card {
        border-radius: 10px;
    }

    .producto-img {
        height: 200px;
        padding: 0.5rem;
    }

    .producto-info {
        padding: 1.25rem;
    }

    .producto-nombre {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .producto-desc {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .producto-precio {
        font-size: 1.15rem;
    }

    .producto-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .producto-footer .btn-add {
        width: 100%;
    }

    /* Carrito drawer - pantalla completa en móviles */
    .cart-drawer {
        max-width: 100%;
        width: 100%;
        right: auto;
        left: 0;
        bottom: -100%;
        top: auto;
        height: 90vh;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        transition: bottom 0.3s ease, transform 0.3s ease;
    }

    .cart-drawer.active {
        right: auto;
        bottom: 0;
    }

    .cart-header {
        padding: 1.25rem 1rem;
    }

    .cart-header h2 {
        font-size: 1.25rem;
    }

    .cart-close {
        width: 40px;
        height: 40px;
        font-size: 2.5rem;
        min-width: 44px;
        min-height: 44px;
    }

    .cart-content {
        padding: 1rem;
    }

    .cart-item {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item-qty {
        padding: 0.5rem;
    }

    .qty-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.5rem;
        padding: 0.5rem;
        touch-action: manipulation;
    }

    .cart-item-remove {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        touch-action: manipulation;
    }

    .cart-footer {
        padding: 1.25rem 1rem;
    }

    .cart-total {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Modal de checkout optimizado */
    .checkout-modal {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .checkout-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
    }

    .checkout-header {
        padding: 1.25rem 1rem;
    }

    .checkout-header h2 {
        font-size: 1.25rem;
    }

    .checkout-close {
        width: 40px;
        height: 40px;
        font-size: 2.5rem;
        min-width: 44px;
        min-height: 44px;
    }

    #checkoutForm {
        padding: 1.25rem 1rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 10px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .form-group textarea {
        min-height: 100px;
    }

    /* Footer optimizado */
    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.25rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .social-link {
        padding: 1rem;
        min-height: 48px;
        font-size: 1rem;
        touch-action: manipulation;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }

    /* Menú móvil mejorado */
    .nav-menu.active {
        padding: 1.5rem 2rem;
        gap: 0;
    }

    .nav-menu.active .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
        display: block;
        min-height: 48px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active .nav-link:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
        touch-action: manipulation;
        display: flex;
    }

    .cart-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
        touch-action: manipulation;
    }

    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
        top: -3px;
        right: -3px;
    }

    /* Botón WhatsApp flotante */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 15px;
        right: 15px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(37, 211, 102, 0.3);
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Mejoras de rendimiento y UX móvil */
    .producto-card {
        -webkit-tap-highlight-color: transparent;
    }

    .producto-card:active {
        transform: scale(0.98);
    }

    /* Prevenir zoom en inputs en iOS */
    @supports (-webkit-touch-callout: none) {
        .form-group input,
        .form-group textarea,
        .form-group select {
            font-size: 16px !important;
        }
    }

    /* Mejorar scroll en móviles */
    .cart-content,
    .checkout-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (min-width: 768px) {
    .menu-toggle {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        padding: 0;
        box-shadow: none;
        gap: 2rem;
        align-items: center;
        max-height: none;
        overflow: visible;
    }
    
    .nav-menu.active {
        position: static;
        animation: none;
    }

    .social-links {
        flex-direction: row;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para navegación por teclado */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 2px;
}

/* ============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* WhatsApp float ya está optimizado en el media query móvil anterior */

