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

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0c14;
    color: #e6edf3;
    min-height: 100vh;
    padding: 20px;
}

.page-container {
    max-width: 800px;
    margin: 100px auto;
    text-align: center;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    text-decoration: none;
    color: #e6edf3;
    display: inline-block;
}

.neon-text {
    color: #ef4444;
    animation: neonPulse 1.5s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 2px #ef4444; }
    50% { text-shadow: 0 0 10px #ef4444, 0 0 15px #ef4444; }
}

.sub {
    color: #8899bb;
    margin: 20px 0 40px;
    font-size: 1rem;
}

.search-box {
    display: flex;
    background: #131823;
    border-radius: 60px;
    border: 1px solid #1e2a3a;
    overflow: hidden;
    padding-left: 20px;
}

.search-box input {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    color: #e6edf3;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: #ef4444;
    border: none;
    padding: 0 28px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #0a0c14;
    height: 52px;
    border-radius: 0 60px 60px 0;
}

header {
    background: #131823;
    padding: 12px 20px;
    border-bottom: 1px solid #ef4444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 16px;
}

header .logo { font-size: 1.5rem; }

.search-bar {
    display: flex;
    gap: 8px;
    flex: 2;
    max-width: 500px;
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    background: #1a2538;
    border: 1px solid #1e2a3a;
    border-radius: 40px;
    color: #e6edf3;
    outline: none;
}

.search-bar button {
    background: #ef4444;
    border: none;
    padding: 0 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    color: #0a0c14;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #131823;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #1e2a3a;
    cursor: pointer;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #ef4444;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
}

.card .title {
    font-size: 0.9rem;
    height: 40px;
    overflow: hidden;
    margin: 8px 0;
    color: #8899bb;
    line-height: 1.4;
}

.card .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ef4444;
    margin: 8px 0;
}

.btn-detalle {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    text-align: center;
    padding: 8px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 8px;
    transition: 0.2s;
}

.card:hover .btn-detalle {
    background: #ef4444;
    color: #000;
}

#status {
    text-align: center;
    padding: 40px 20px;
    font-size: 1rem;
    color: #ef4444;
}

.back-btn {
    background: #1a2538;
    border: 1px solid #1e2a3a;
    padding: 10px 20px;
    border-radius: 30px;
    color: #8899bb;
    text-decoration: none;
    font-weight: 600;
}

.back-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.detalle-card {
    background: #131823;
    border: 1px solid #1e2a3a;
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.detalle-card img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.detalle-card h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.detalle-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: #ef4444;
    margin: 20px 0;
}

.link-btn {
    display: inline-block;
    background: #ef4444;
    color: #0a0c14;
    padding: 12px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.link-btn:hover {
    background: #dc2626;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; }
    header { flex-direction: column; gap: 12px; }
    .search-bar { width: 100%; }
}
