/* Base Styles */
body {
    background: #1A2332;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Navbar */
.navbar-dark {
    background: #1e2a3a;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-brand i {
    color: #f39c12;
}

.nav-link {
    color: #8b95a5 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link-catalogo.active {
    background: linear-gradient(90deg, #e67e22 0%, #f39c12 100%);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
}

.btn-idioma {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #8b95a5;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-idioma:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.dropdown-idiomas {
    background: #1e2a3a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-idiomas .dropdown-item {
    color: #bdc3c7;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.dropdown-idiomas .dropdown-item:hover {
    background: rgba(230, 126, 34, 0.2);
    color: #f39c12;
}

.btn-notificaciones {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #8b95a5;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-notificaciones:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-status {
    color: #8b95a5;
    font-size: 0.75rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: rgba(26, 35, 50, 0.5);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f39c12;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #bdc3c7;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn-hero {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Filter Section */
.filter-section {
    padding: 2rem 0;
    /*background: rgba(30, 42, 58, 0.3);*/
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: rgba(30, 42, 58, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8b95a5;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(40, 52, 68, 0.8);
    color: #fff;
    border-color: rgba(230, 126, 34, 0.3);
}

.filter-btn.active {
    background: linear-gradient(90deg, #e67e22 0%, #f39c12 100%);
    color: #fff;
    border: none;
    box-shadow: 0 3px 15px rgba(230, 126, 34, 0.4);
}

/* Products Section */
.products-section {
    padding: 2rem 0;
}

.product-card {
    background: rgba(30, 42, 58, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: rgba(230, 126, 34, 0.3);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, #e67e22 0%, #f39c12 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.4);
}

.product-badge-disponible {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.4);
}

.product-body {
    padding: 1rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-location {
    color: #8b95a5;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.product-location i {
    margin-right: 0.4rem;
}

.product-info {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.info-item {
    background: rgba(30, 42, 58, 0.8);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    color: #8b95a5;
    display: block;
    font-size: 0.65rem;
    margin-bottom: 2px;
}

.info-value {
    color: #fff;
    font-weight: 600;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f39c12;
    margin-bottom: 0.4rem;
}

.product-roi {
    display: inline-block;
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.product-tags {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-tag {
    background: rgba(230, 126, 34, 0.2);
    color: #f39c12;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-comprar {
    flex: 1;
    background: linear-gradient(90deg, #e67e22 0%, #f39c12 100%);
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(230, 126, 34, 0.3);
}

.btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(230, 126, 34, 0.5);
}

.btn-favorito {
    background: rgba(30, 42, 58, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-favorito:hover {
    background: rgba(40, 52, 68, 0.9);
    border-color: #f39c12;
    color: #f39c12;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* tamaño de botones */
.btn, button, input[type="button"], input[type="submit"], .filter-btn, .btn-hero, .btn-comprar, .btn-favorito, .btn-idioma, .btn-notificaciones {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px; /* altura fija para uniformidad */
    /*min-width: 140px;  asegura un ancho visual similar */
    padding: 0 16px; /* relleno horizontal; mantiene centrado verticalmente */
    box-sizing: border-box;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .btn, button, input[type="button"], input[type="submit"], .filter-btn, .btn-hero, .btn-comprar, .btn-favorito, .btn-idioma, .btn-notificaciones {
        height: 40px;
        min-width: 110px;
        padding: 0 12px;
    }
}
/* Pantalla de Login*/
.login-container {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: linear-gradient(135deg, #2a2d3a 0%, #3a3d4a 100%);
    border: 2px solid #4a4d5a;
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
        border-color: #e67e22;
    }

.login-title {
    color: #f39c12;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.login-subtitle {
    color: #bdc3c7;
    text-align: center;
    margin-bottom: 35px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.btn-login {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    border: none;
    border-radius: 12px;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
    margin-top: 10px;
}
.btn-login:hover {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5);
    color: #fff;
}
.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}
.alert-danger {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    border: 2px solid #e74c3c;
    color: #fff;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}
