* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    color: #1e293b;
}

/* Navbar */
.navbar {
    background: #0f172a;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo estilos - Corregido */
.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
    border-radius: 8px;
    /* Borde blanco */
    border: 2px solid #ffffff;
    padding: 3px;
    background-color: transparent;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    border-color: #60a5fa;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #fff, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Versi¨®n m¨®vil */
@media (max-width: 768px) {
    .logo-img {
        height: 30px;
        padding: 2px;
        border-width: 1.5px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo a {
        gap: 5px;
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #60a5fa;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Banner Principal */
.banner-principal {
    position: relative;
    max-width: 1400px;
    margin: 1rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.banner-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    font-size: 1.2rem;
}

.banner-placeholder {
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    color: white;
    text-align: center;
    padding: 5rem;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* Search */
.search-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.search-box input:focus {
    border-color: #3b82f6;
}

.search-box button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #2563eb;
}

.search-info {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 10px;
    text-align: center;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    border-left: 5px solid #3b82f6;
    padding-left: 1rem;
}

.ver-mas {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

/* Productos Grid */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.producto-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 1rem;
}

.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.producto-imagen {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f1f5f9;
}

.oferta-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.producto-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.precio {
    font-size: 1.5rem;
    font-weight: bold;
    color: #16a34a;
    margin: 0.5rem 0;
}

.vendedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin: 0.8rem 0;
}

.reputacion.verde { color: #15803d; background: #dcfce7; padding: 2px 10px; border-radius: 20px; }
.reputacion.amarillo { color: #a16207; background: #fef9c3; padding: 2px 10px; border-radius: 20px; }
.reputacion.rojo { color: #b91c1c; background: #fee2e2; padding: 2px 10px; border-radius: 20px; }
.reputacion.gris { color: #4b5563; background: #e5e7eb; padding: 2px 10px; border-radius: 20px; }

.btn-comprar {
    display: block;
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 40px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-comprar:hover {
    background: #334155;
}

/* CategorÃ­as */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.categoria-card {
    background: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 16px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.categoria-card:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.02);
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin: 0.5rem 0;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .banner-slide img {
        height: 200px;
    }
    
    .banner-caption {
        font-size: 0.8rem;
        bottom: 15px;
        left: 15px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Formularios generales */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }