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

:root {
    --primary-blue: #0066FF;
    --dark-bg: #0A0E27;
    --darker-bg: #060920;
    --light-bg: #F5F7FA;
    --tech-cyan: #00D9FF;
    --tech-green: #00FF88;
    --accent-purple: #7B61FF;
    --text-light: #FFFFFF;
    --text-gray: #8B92A8;
    --text-dark: #1E2139;
    --card-bg: #FFFFFF;
    --border-color: #E8EBF0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Mejorar experiencia táctil en móviles */
    -webkit-tap-highlight-color: rgba(0, 102, 255, 0.2);
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    background: var(--dark-bg);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--tech-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-light);
    background: rgba(0, 102, 255, 0.1);
}

.nav-link.active {
    background: var(--primary-blue);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 12px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
}

.cart-icon svg {
    stroke: var(--tech-cyan);
}

.cart-icon:hover {
    transform: translateY(-2px);
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    color: white;
    font-size: 11px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
}

/* PRODUCTOS */
.products {
    margin: 50px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-blue), var(--tech-cyan));
    border-radius: 3px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 217, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.15);
    border-color: var(--primary-blue);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.5s;
}

.product-card:hover .product-image::after {
    left: 100%;
}

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

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-footer {
    margin-top: auto;
}

.product-prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-cash {
    padding: 8px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 119, 0.1));
    border-radius: 8px;
    border: 1px dashed var(--tech-green);
}

.product-price-cash {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tech-green), #00CC77);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-stock {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-top: 5px;
}

.btn-add-cart {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-add-cart:hover::before {
    left: 100%;
}

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

.btn-add-cart:disabled {
    background: linear-gradient(135deg, #C4C4C4, #A0A0A0);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-add-cart:disabled:hover {
    transform: none;
}

/* CARRITO LATERAL */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

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

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf5 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #667eea;
    font-weight: 500;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

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

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

.btn-remove {
    margin-left: auto;
    color: #e74c3c;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-clear-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FF0044 0%, #CC0033 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.btn-clear-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 68, 0.4);
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--tech-green) 0%, #00CC77 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.btn-checkout:disabled {
    background: linear-gradient(135deg, #C4C4C4, #A0A0A0);
    cursor: not-allowed;
    box-shadow: none;
    color: #666;
}

.btn-checkout:disabled:hover {
    transform: none;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FC 100%);
    margin: 3% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 650px;
    position: relative;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 102, 255, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-content h2 {
    margin: 0;
    padding: 30px 30px 20px 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 24px 24px 0 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.modal-content form {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.modal-content form::-webkit-scrollbar {
    width: 8px;
}

.modal-content form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content form::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    border-radius: 10px;
}

.close {
    position: absolute;
    right: 20px;
    top: 25px;
    font-size: 32px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2C3E50;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E8EBF0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: white;
    color: #2C3E50;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.modal-content select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230066FF' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
    appearance: none;
}

.checkout-summary {
    background: linear-gradient(135deg, #F0F4FF 0%, #E8F0FF 100%);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    border: 2px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.08);
}

.checkout-summary h3 {
    margin: 0 0 20px 0;
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-summary h3::before {
    content: '🛒';
    font-size: 1.5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.checkout-item span:first-child {
    color: #2C3E50;
    font-weight: 500;
}

.checkout-item span:last-child {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.05rem;
}

.checkout-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 3px solid var(--primary-blue);
    text-align: right;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-total strong {
    color: #2C3E50;
}

.checkout-total span {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.6rem;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

/* MODAL ÉXITO */
.success-content {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FFF4 100%);
}

.success-content h2 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    color: white !important;
    font-size: 1.8rem !important;
    padding: 30px !important;
    margin: 0 !important;
    margin-bottom: 30px !important;
    border-radius: 24px 24px 0 0 !important;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(39, 174, 96, 0);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 25px;
    animation: successPulse 2s infinite;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.success-content p {
    margin-bottom: 15px;
    color: #2C3E50;
    font-size: 1.05rem;
    line-height: 1.6;
}

.success-content p strong {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* HEADER MÓVIL */
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .cart-icon {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
        padding: 15px;
        border-radius: 50%;
        box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
        z-index: 999;
    }

    .cart-icon svg {
        stroke: white;
    }

    .cart-count {
        top: -8px;
        right: -8px;
    }

    /* PRODUCTOS MÓVIL */
    .products {
        margin: 30px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
        padding-left: 15px;
    }

    .section-title::before {
        height: 30px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 160px;
        font-size: 2rem;
    }

    .product-info {
        padding: 15px;
    }

    .product-category {
        font-size: 0.7rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .product-stock {
        font-size: 0.75rem;
    }

    .btn-add-cart {
        padding: 12px;
        font-size: 0.9rem;
        margin-top: 10px;
    }

    /* CARRITO MÓVIL */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

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

    .cart-header {
        padding: 18px;
    }

    .cart-header h3 {
        font-size: 1.2rem;
    }

    .cart-items {
        padding: 15px;
    }

    .cart-item {
        gap: 12px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    .cart-item-name {
        font-size: 0.95rem;
    }

    .cart-item-price {
        font-size: 0.9rem;
    }

    .cart-footer {
        padding: 18px;
    }

    .cart-total {
        font-size: 1.2rem;
    }

    .btn-checkout {
        padding: 14px;
        font-size: 0.95rem;
    }

    /* MODAL MÓVIL */
    .modal {
        padding: 0;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
        animation: slideUpMobile 0.3s ease;
    }

    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .modal-content h2 {
        font-size: 1.5rem;
        padding: 25px 20px 18px 20px;
        border-radius: 0;
    }

    .modal-content form {
        padding: 20px;
        max-height: calc(100vh - 90px);
    }

    .close {
        right: 15px;
        top: 20px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }

    .modal-content label {
        font-size: 0.9rem;
        margin-top: 14px;
        margin-bottom: 6px;
    }

    .modal-content input,
    .modal-content textarea,
    .modal-content select {
        font-size: 16px; /* Evita zoom en iOS */
        padding: 12px 14px;
    }

    .checkout-summary {
        padding: 18px;
        margin: 20px 0;
        border-radius: 12px;
    }

    .checkout-summary h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .checkout-item {
        padding: 10px;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }

    .checkout-item span:last-child {
        font-size: 0.95rem;
    }

    .checkout-total {
        font-size: 1.1rem;
        margin-top: 15px;
        padding-top: 15px;
    }

    .checkout-total span {
        font-size: 1.3rem;
    }

    .btn-primary {
        padding: 14px;
        font-size: 1rem;
        margin-top: 15px;
    }

    .success-content {
        padding: 30px 20px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .success-content h2 {
        font-size: 1.5rem !important;
        padding: 25px 20px !important;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .success-content p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .success-content p strong {
        font-size: 1.1rem;
    }

    .checkout-item {
        font-size: 0.9rem;
    }

    .checkout-total {
        font-size: 1.1rem;
    }

    .btn-primary {
        padding: 14px;
        font-size: 0.95rem;
    }

    /* SUCCESS MODAL MÓVIL */
    .success-content {
        padding: 30px 20px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .success-content h2 {
        font-size: 1.5rem;
    }

    .success-content p {
        font-size: 0.95rem;
    }

    /* AJUSTE PARA PANTALLAS MUY PEQUEÑAS */
    @media (max-width: 400px) {
        .products-grid {
            grid-template-columns: 1fr;
        }

        .product-image {
            height: 200px;
        }
    }

    /* Ajustar posición del carrito en móvil */
    .cart-icon {
        bottom: 80px !important; /* Subir el carrito para que no tape WhatsApp */
    }
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    height: 56px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    padding-right: 0;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    color: white;
    overflow: hidden;
    width: 56px;
}

.whatsapp-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.whatsapp-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    color: white;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    padding-right: 0;
}

.whatsapp-text strong {
    font-size: 15px;
    font-weight: 700;
}

.whatsapp-float:hover {
    width: 220px;
    padding-right: 18px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float:hover .whatsapp-icon {
    transform: rotate(15deg);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Animación sutil de pulso */
@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
}

@keyframes pulse-subtle-expanded {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    }
    50% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-float {
    animation: pulse-subtle 3s ease-in-out infinite;
    will-change: width, box-shadow;
}

.whatsapp-float:hover {
    animation: pulse-subtle-expanded 3s ease-in-out infinite;
}

/* Responsive para WhatsApp y Carrito en móvil */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

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

    .whatsapp-text {
        font-size: 11px;
    }

    .whatsapp-text strong {
        font-size: 13px;
    }

    .whatsapp-float:hover {
        width: 180px;
        padding-right: 15px;
    }

    /* Mover el carrito más arriba para que no se solape con WhatsApp */
    .cart-icon {
        bottom: 85px !important;
        right: 15px;
    }
}
