/* Variables para un tema oscuro y vibrante (ideal para NFT) */
:root {
    --bg-dark: #1a1a2e;
    --card-bg: #2c2c44;
    --primary-color: #ffffff5; /* Azul cian brillante para acentos */
    --secondary-color: ; /* Naranja para precios */
    --text-light: #ffffff;
    --text-muted: #;
    --font-heading:  'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Estilos Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    padding-bottom: 50px;
}

/* --- Encabezado --- */
header {
    background: var(--card-bg);
    padding: 60px 5%;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.header-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

header input[type="text"] {
    padding: 12px 20px;
    border: 2px solid #555;
    border-radius: 8px;
    background-color: #3a3a50;
    color: var(--text-light);
    width: 300px;
    transition: border-color 0.3s;
}

header input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-filter {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    font-weight: bold;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-filter:hover {
    background-color: #00e5ff;
}

/* --- Grid de NFTs --- */
.nft-grid {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 5%;
    display: grid;
    /* Diseño responsivo con columnas que se ajustan */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* --- Tarjeta NFT --- */
.nft-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.nft-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.4);
}

.nft-image-container {
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #444;
}

.nft-placeholder-img {
    font-family: var(--font-heading);
    font-size: 1.5em;
    color: var(--text-muted);
    padding: 20px;
    border: 2px dashed var(--text-muted);
}

.nft-details {
    padding: 20px;
}

.nft-title {
    font-family: var(--font-heading);
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.nft-description {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 40px; /* Para que todas las tarjetas tengan una altura similar */
}

.nft-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #3c3c5c;
    border-bottom: 1px solid #3c3c5c;
    margin-bottom: 20px;
}

.nft-price .label {
    font-size: 0.9em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nft-price .value {
    font-family: var(--font-heading);
    font-size: 1.5em;
    color: yellow;
    font-weight: 700;
}

.btn-buy {
    width: 100%;
    background-color: #ff9800;
    color: var(--bg-dark);
    font-weight: bold;
    border: none;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-buy:hover {
    background-color: #ffc107;
}

.btn-buy .fas {
    margin-right: 8px;
}

/* --- Media Queries (Responsividad) --- */
@media (max-width: 650px) {
    header h1 {
        font-size: 2em;
    }

    .header-controls {
        flex-direction: column;
        gap: 10px;
    }

    header input[type="text"], .btn-filter {
        width: 100%;
    }
}
