:root {
    --azul: #1f77b4;
    --verde: #38b2ac;
    --azul-escuro: #113b5c;
    --cinza: #f5f9fc;
    --texto: #24404f;
    --borda: rgba(17, 59, 92, 0.12);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--texto);
    background: linear-gradient(135deg, #f7fbff 0%, #f4fff9 100%);
    line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
    padding: 4rem 0 3rem;
    background: radial-gradient(circle at top right, rgba(56, 178, 172, 0.16), transparent 28%), linear-gradient(135deg, #eff8ff 0%, #f8fefc 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(56, 178, 172, 0.16);
    color: var(--verde);
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1rem;
    color: var(--azul-escuro);
}
.hero p { font-size: 1.05rem; margin-bottom: 1.5rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.btn-primary { background: var(--azul); color: white; }
.btn-secondary { background: white; color: var(--azul-escuro); box-shadow: 0 10px 30px rgba(17, 59, 92, 0.08); }
.card {
    background: white;
    border: 1px solid var(--borda);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(31, 119, 180, 0.08);
    padding: 1.25rem;
}
.hero-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1rem;
}
.info-grid, .specialties-grid, .dashboard-grid { display: grid; gap: 1rem; }
.section { padding: 2.5rem 0; }
.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.5rem; }
.info-item, .specialty-card, .panel { padding: 1.2rem; border-radius: 18px; background: white; border: 1px solid var(--borda); }
.info-item h3, .specialty-card h3 { margin-top: 0; color: var(--azul-escuro); }
.specialties-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list { padding-left: 1rem; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.muted { color: #678; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.8rem; text-align: left; border-bottom: 1px solid var(--borda); }
form { display: grid; gap: 0.8rem; }
input, select, textarea { width: 100%; padding: 0.8rem; border-radius: 12px; border: 1px solid rgba(17, 59, 92, 0.18); background: #fcfeff; }
textarea { min-height: 90px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.notice { padding: 0.9rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.notice.success { background: rgba(56, 178, 172, 0.12); color: #0f5c57; }
.notice.error { background: rgba(235, 87, 87, 0.12); color: #a33; }
.modal { position: fixed; inset: 0; background: rgba(2, 16, 29, 0.6); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 1000; }
.modal.active { display: flex; }
.modal-card { width: min(560px, 100%); background: white; border-radius: 24px; padding: 1.5rem; }
.footer { padding: 2rem 0 3rem; color: #567; }
@media (max-width: 860px) {
    .hero-grid, .grid-2, .grid-3, .info-grid, .specialties-grid { grid-template-columns: 1fr; }
}
