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

:root {
    --primary: #111111;
    --accent: #2563eb;
    --whatsapp: #25D366;
    --whatsapp-hover: #1ebe5d;
    --bg-light: #f8f9fa;
    --text-dark: #222222;
    --text-muted: #666666;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
}

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

.top-banner {
    background-color: var(--primary);
    color: #ffffff;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.btn-primary-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

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

.hero-section {
    background: radial-gradient(circle at 15% 20%, rgba(220, 20, 40, 0.35), transparent 45%),
                radial-gradient(circle at 85% 80%, rgba(180, 0, 30, 0.25), transparent 50%),
                linear-gradient(135deg, #0a0a0a 0%, #1a0508 55%, #2b0509 100%);
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.badge {
    background: rgba(220, 38, 38, 0.15);
    color: #ff4d5e;
    border: 1px solid rgba(255, 77, 94, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #c9c2c3;
    margin-bottom: 30px;
    max-width: 500px;
}

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

.btn-solid {
    background-color: #dc2626;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-solid:hover {
    background-color: #b91c1c;
}

.btn-border {
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.2s;
}

.btn-border:hover {
    border-color: #ffffff;
}

.hero-image {
    flex: 1;
}

.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    background: #050505;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.6);
}

.hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    padding: 30px;
    filter: brightness(0.95) saturate(1.1);
    transition: opacity 0.6s ease;
}

.hero-banner-img.visible {
    opacity: 1;
}

.hero-banner-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    opacity: 0;
    background: #0d0d0d;
    transition: opacity 0.6s ease;
}

.hero-banner-fallback.visible {
    opacity: 1;
}

.hero-image-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    transition: background 0.8s ease;
}

.hero-banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #ffffff;
}

.hero-banner-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.hero-banner-price {
    font-weight: 800;
    font-size: 1.15rem;
    color: #ff4d5e;
}

.benefits-section {
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
    background: #ffffff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-item i {
    font-size: 1.8rem;
    color: var(--accent);
}

.benefit-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.benefit-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.catalog-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-img {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f0f0f0;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
    padding: 10px;
}

.img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--bg-light);
}

.tag-sale, .tag-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.tag-new {
    background: var(--accent);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    height: 40px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-buy {
    background-color: var(--whatsapp);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-buy:hover {
    background-color: var(--whatsapp-hover);
}

.site-footer {
    background-color: var(--primary);
    color: #fff;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ddd;
}

.footer-col p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    color: #777;
    font-size: 0.85rem;
}

.footer-bottom strong {
    color: #fff;
}

@media(max-width: 768px) {
    .nav-links, .header-action {
        display: none;
    }
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-text h1 {
        font-size: 2.4rem;
    }
    .footer-content {
        flex-direction: column;
    }
    .cart-panel {
        width: 100%;
        max-width: 100%;
    }
    .toast {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: 100px;
    }
}

/* ===== NOTIFICACIÓN "AGREGADO AL CARRITO" ===== */

.toast {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: #111111;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border-left: 4px solid var(--whatsapp);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1500;
    max-width: 280px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CARRITO ===== */

.cart-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 1200;
    transition: background 0.2s, transform 0.2s;
}

.cart-fab:hover {
    background: var(--whatsapp-hover);
    transform: scale(1.05);
}

@keyframes cartBump {
    0% { transform: scale(1); }
    30% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-fab.bump {
    animation: cartBump 0.35s ease;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 11px;
    background: #dc2626;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1300;
}

.cart-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 420px;
    max-width: 92vw;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 1400;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-panel-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.cart-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 30px 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary);
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-qty button {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.cart-item-subtotal {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.btn-cart-clear {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-cart-clear:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    padding: 14px 0;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
}

.cart-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-form input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
}

.cart-form input:focus {
    outline: none;
    border-color: var(--whatsapp);
}

.btn-cart-send {
    background-color: var(--whatsapp);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-cart-send:hover {
    background-color: var(--whatsapp-hover);
}
