html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f5f5;
    color: #111;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: white;
    border-bottom: 1px solid #eaeaea;
}

header h1 {
    font-size: 24px;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

nav a:hover {
    color: #000;
}

button,
.btn,
.btn-transfer {
    background: black;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

button:hover,
.btn:hover,
.btn-transfer:hover {
    opacity: 0.85;
}

.hero,
.featured-products,
.testimonials {
    padding: 60px 10%;
}

.hero {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero p,
.product-card p {
    color: #555;
}

.hero p {
    margin-bottom: 20px;
}

.featured-products h2,
.benefits h2,
.testimonials h2,
.contact h2 {
    text-align: center;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card,
.testimonial-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.product-card h3 {
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
}

.price {
    display: block;
    font-weight: bold;
    margin: 10px 0;
}

.benefits,
.contact {
    padding: 60px 10%;
    background: white;
}

.benefits ul {
    max-width: 800px;
    margin: auto;
}

details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

summary {
    font-weight: bold;
}

.testimonial-card {
    margin-bottom: 15px;
}

cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* CONTACTO */
.contact-form,
form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
}

.contact-form label,
form label {
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #fafafa;
    color: #111;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

input:focus,
textarea:focus {
    background: #fff;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

textarea {
    resize: none;
    height: 120px;
}

.contact-form .btn,
form .btn {
    margin-top: 8px;
    min-width: 220px;
}

.whatsapp-contact {
    text-align: center;
    margin-top: 30px;
}

.whatsapp-contact p,
.transferencia p {
    margin-bottom: 10px;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    max-width: 100%;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    padding: 25px;
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.cart-panel.open {
    right: 0;
}

.cart-panel h2 {
    margin-bottom: 20px;
}

.cart-panel ul {
    list-style: none;
    margin-bottom: 20px;
}

.cart-panel li {
    margin-bottom: 8px;
    font-size: 14px;
}

.cart-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.transferencia {
    margin-top: 20px;
    text-align: center;
}

footer {
    text-align: center;
    padding: 25px;
    background: #111;
    color: white;
}

.social-media {
    margin-top: 10px;
}

.social-media a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 8px;
    }

    nav button {
        align-self: flex-start;
    }

    .hero,
    .featured-products,
    .benefits,
    .testimonials,
    .contact {
        padding: 40px 20px;
    }

    .hero h3 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= CARRITO MEJORADO ================= */

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
}

.cart-item {
    position: relative;
    list-style: none;
    overflow: hidden;
    border-radius: 14px;
    background: #f7f7f7;
    min-height: 92px;
}

.swipe-delete {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 100%;
    background: #d11a2a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 1;
    pointer-events: auto;
}

.cart-item-content {
    position: relative;
    z-index: 2;
    background: white;
    padding: 14px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 13px;
    color: #666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
}

.cart-item-total {
    font-weight: bold;
    color: #111;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .cart-item-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-total {
        font-size: 14px;
    }
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-card .price {
    margin-top: auto;
}

.product-card button {
    margin-top: 10px;
    align-self: center;
}