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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

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

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
}

.highlight {
    color: #ff4444;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.subtitle h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #cccccc;
}

.subtitle p {
    color: #999999;
    font-size: 1rem;
}

/* Navigation */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu a:hover {
    background: #ff4444;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
}

/* Estilo especial para el botón de Página Códigos */
.nav-menu a[href*="codigos.emstre.com"] {
    background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
}

.nav-menu a[href*="codigos.emstre.com"]:hover {
    background: linear-gradient(135deg, #cc3333 0%, #aa2222 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

/* Productos Grid */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.producto-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.producto-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.producto-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 15px;
    overflow: hidden;
    background: #333;
}

.producto-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.descripcion {
    font-size: 0.8rem;
    color: #cccccc;
    margin-bottom: 10px;
    display: none;
}

.precio {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 15px;
}

.btn-agregar {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-agregar:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* Producto destacado */
.producto-destacado {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

.producto-destacado .producto-icon {
    width: 120px;
    height: 120px;
}

.producto-destacado .producto-info {
    flex: 1;
    text-align: left;
}

.producto-destacado .descripcion {
    display: block;
}

.producto-destacado h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.producto-destacado .precio {
    font-size: 2rem;
    color: #ffffff;
}

/* Secciones */
.cotizacion, .soporte {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.cotizacion h2, .soporte h2 {
    margin-bottom: 20px;
    color: #ff4444;
}

#formCotizacion {
    max-width: 500px;
    margin: 0 auto;
}

#formCotizacion input,
#formCotizacion textarea,
#formCotizacion button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

#formCotizacion input::placeholder,
#formCotizacion textarea::placeholder {
    color: #cccccc;
}

#formCotizacion button {
    background: #ff4444;
    cursor: pointer;
    transition: background 0.3s ease;
}

#formCotizacion button:hover {
    background: #cc3333;
}

/* Elementos flotantes */
.carrito-flotante,
.whatsapp-flotante,
.perfil-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.carrito-flotante {
    right: 20px;
    top: 50%;
    background: #4CAF50;
    transform: translateY(-50%);
}

.whatsapp-flotante {
    right: 20px;
    bottom: 140px;
    background: #25D366;
    text-decoration: none;
}

.perfil-flotante {
    right: 20px;
    bottom: 70px;
    background: #666;
}

.carrito-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Barra de búsqueda */
.search-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

.search-bar input::placeholder {
    color: #cccccc;
}

.search-bar i {
    color: #cccccc;
    margin-left: 10px;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    color: #ffffff;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #cccccc;
}

.close:hover {
    color: #ff4444;
}

#carritoItems {
    margin: 20px 0;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.carrito-total {
    text-align: center;
    font-size: 1.5rem;
    margin: 20px 0;
    color: #4CAF50;
}

.btn-finalizar {
    width: 100%;
    padding: 15px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-finalizar:hover {
    background: #cc3333;
}

#formCheckout input,
#formCheckout select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

#formCheckout input::placeholder {
    color: #cccccc;
}

#formCheckout button {
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#formCheckout button:hover {
    background: #1ea952;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 25px 20px;
        border-radius: 15px;
        gap: 15px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(15px);
        z-index: 1000;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-radius: 12px;
        text-align: center;
        font-size: 1.1rem;
        margin: 0;
        width: 100%;
        justify-content: center;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .productos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .producto-destacado {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .subtitle h2 {
        font-size: 1.2rem;
    }
    
    .search-bar {
        width: 95%;
        padding: 12px 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .producto-card {
        padding: 15px 10px;
    }
    
    .producto-icon {
        width: 60px;
        height: 60px;
    }
    
    .producto-info h3 {
        font-size: 0.9rem;
    }
    
    .precio {
        font-size: 1rem;
    }
    
    .btn-agregar {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .nav-menu a {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}