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

body {
    font-family: 'Inter', sans-serif;
    background: #eef5f2;
    color: #1a3a35;
    padding: 2rem 1.5rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0f5c5f, #2a9d8f);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.header p {
    color: #4b6a65;
    margin-top: 0.5rem;
}

.stats-badge {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    background: #d0eae4;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
}

/* Barra de busca */
.search-section {
    background: white;
    border-radius: 60px;
    padding: 0.3rem 0.3rem 0.3rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border: 1px solid #cde0db;
    flex-wrap: wrap;
}

.search-section i {
    color: #2a9d8f;
    font-size: 1.2rem;
}

#searchInput {
    flex: 2;
    min-width: 180px;
    border: none;
    padding: 0.9rem 0;
    font-size: 1rem;
    background: transparent;
    outline: none;
    font-weight: 500;
}

.filter-select {
    padding: 0.5rem 1rem;
    border-radius: 40px;
    border: 1px solid #cde0db;
    background: white;
    font-family: inherit;
    cursor: pointer;
}

.search-clear {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #8fbcb3;
    padding: 0 0.5rem;
}

.result-count {
    font-size: 0.8rem;
    background: #e0f0ec;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    color: #1f6e5c;
    white-space: nowrap;
}

/* Grid de cards */
.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.bio-card {
    background: white;
    border-radius: 28px;
    padding: 1.2rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #ddebe7;
    box-shadow: 0 5px 12px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.05);
    border-color: #9bc7bd;
}

.bio-icon {
    font-size: 2.5rem;
    background: #e0f2ef;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
}

.bio-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.bio-info .scientific {
    font-size: 0.7rem;
    color: #5f8b83;
    font-style: italic;
}

.category-tag {
    font-size: 0.65rem;
    background: #e9f3f0;
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-top: 5px;
}

/* Simulador */
.simulator-panel {
    background: white;
    border-radius: 32px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
    border: 1px solid #cde0db;
}

.simulator-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.params-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1.5rem 0;
    justify-content: space-between;
}

.param-control {
    flex: 1;
    min-width: 180px;
}

.param-control label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.param-control select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 40px;
    border: 1px solid #cde0db;
}

input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

.param-value {
    font-weight: 800;
    color: #2a9d8f;
}

.compatible-list {
    background: #eaf9f4;
    border-radius: 24px;
    padding: 1rem;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.badge-compat {
    display: inline-block;
    background: #1e6b5e;
    color: white;
    border-radius: 60px;
    padding: 0.2rem 0.8rem;
    font-size: 0.7rem;
    margin: 0.2rem 0.3rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    max-width: 600px;
    width: 90%;
    border-radius: 40px;
    padding: 2rem;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #154e48;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: #8fbcb3;
}

.detail-item {
    margin: 0.8rem 0;
    border-bottom: 1px solid #e2efeb;
    padding-bottom: 0.5rem;
}

.detail-label {
    font-weight: 700;
    width: 140px;
    display: inline-block;
}

.compatibility-note {
    background: #fff3e0;
    padding: 0.8rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #6c9b93;
}

@media (max-width: 680px) {
    body {
        padding: 1rem;
    }
    .params-row {
        flex-direction: column;
        gap: 1rem;
    }
    .search-section {
        flex-wrap: wrap;
        border-radius: 28px;
        padding: 0.8rem;
    }
    .detail-label {
        width: 100%;
        margin-bottom: 0.3rem;
    }
}