* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none !important;
}

:root {
    --cor-padrao: #729fcf;
    --cor-padrao-escura: #4a7ab0;
    --cor-logo-celeste: #009fe3;
    --cor-marinho: #1b3a57;
    --cor-vermelho: #dc3545;
    --cor-fundo: #f4f7fa;
    --cor-branco: #ffffff;
    --cor-texto: #2c3e50;
    --cor-texto-suave: #5a6f82;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.titulo {
    font-weight: bold;
    border-bottom: 2px solid var(--cor-padrao);
    margin-bottom: 15px;
    color: var(--cor-marinho);
    padding-bottom: 5px;
}

/* =========================================
   Config do Login (Mantido para o Admin)
   ========================================= */
.login-fundo {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #34495e;
}

.login-box {
    width: 300px;
    padding: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #191919;
    text-align: center;
}

.login-box h1 {
    color: white;
    text-transform: uppercase;
    font-weight: 500;
}

.login-box input[type = "text"],
.login-box input[type = "password"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #3498db;
    padding: 14px 10px;
    width: 200px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
}

.login-box input[type = "text"]:focus,
.login-box input[type = "password"]:focus {
    width: 280px;
    border-color: #2ecc71;
}

.login-box input[type = "submit"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #2ecc71;
    padding: 14px 40px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
    cursor: pointer;
}

.login-box .erro {
    background: red;
    border: 1px solid whitesmoke;
    padding: 15px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    color: white;
    border-radius: 8px;
}

.login-box input[type = "submit"]:hover {
    background: #2ecc71;
}

.login-box .rodape {
    bottom: 30px;
    color: thistle;
    font-size: .7em;
    text-align: center;
    width: 100%;
}

/* =========================================
   Cabeçalho e Navegação Hospitalar
   ========================================= */
.hospital-topbar {
    background-color: var(--cor-marinho);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hospital-topbar a {
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.hospital-topbar a:hover {
    opacity: 0.85;
    color: #ffffff;
}

.hospital-brand-bar {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.logo-intacto-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 4px;
}

.logo-intacto-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

.hospital-title-group h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--cor-marinho);
    margin-bottom: 2px;
    line-height: 1.2;
}

.hospital-title-group p {
    font-size: 0.9rem;
    color: var(--cor-texto-suave);
    margin-bottom: 0;
}

.corSite {
    background-color: #729fcf !important;
    color: #000;
    box-shadow: 0 3px 10px rgba(27, 58, 87, 0.12);
}

.navbar.corSite .navbar-brand {
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.3px;
}

.navbar.corSite .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    margin: 0 2px;
}

.navbar.corSite .navbar-nav .nav-link:hover,
.navbar.corSite .navbar-nav .nav-item.active .nav-link {
    background-color: rgba(27, 58, 87, 0.22);
    color: #ffffff !important;
}

.navbar.corSite .dropdown-menu {
    border: none;
    border-top: 3px solid var(--cor-marinho);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 8px 8px;
}

.navbar.corSite .dropdown-item {
    color: var(--cor-marinho);
    font-weight: 500;
    padding: 8px 20px;
}

.navbar.corSite .dropdown-item:hover {
    background-color: var(--cor-fundo);
    color: var(--cor-padrao-escura);
}

/* =========================================
   Banner e Fachada
   ========================================= */
.hero-hospital {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(27, 58, 87, 0.12);
    border: 3px solid #729fcf;
    background-color: #ffffff;
}

.hero-hospital img.fachada-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.hero-caption-bar {
    background: linear-gradient(90deg, var(--cor-marinho) 0%, #2c5882 100%);
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* =========================================
   Seções e Cards Hospitalares (.opcHome)
   ========================================= */
.opcHome {
    background-color: #ffffff;
    border: 2px solid #729fcf;
    border-top: 5px solid #729fcf;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(27, 58, 87, 0.08);
    margin-bottom: 24px;
}

.opcHome h2,
.section-header-hospital h2 {
    color: var(--cor-marinho);
    font-weight: 700;
    font-size: 1.45rem;
    width: 100%;
    border-bottom: 2px solid #729fcf;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.opcHome h2 i,
.section-header-hospital h2 i {
    color: #729fcf;
}

/* Cards de Exames */
.exame-card {
    background-color: var(--cor-fundo);
    border: 1px solid #d8e4f0;
    border-left: 5px solid var(--cor-vermelho);
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exame-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.12);
}

.exame-card .btn-danger {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.25);
}

/* Cards de Informativos */
.info-card {
    background: #ffffff;
    border: 1px solid #e1ebf5;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(27, 58, 87, 0.06);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(27, 58, 87, 0.14);
    border-color: #729fcf;
}

.info-card-img-wrap {
    width: 100%;
    height: 190px;
    background-color: #eef3f8;
    overflow: hidden;
    border-bottom: 3px solid #729fcf;
}

.info-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-card:hover .info-card-img-wrap img {
    transform: scale(1.04);
}

.info-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.info-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--cor-texto-suave);
}

.badge-hospital {
    background-color: #729fcf;
    color: #ffffff;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cor-marinho);
    margin-bottom: 8px;
    line-height: 1.35;
}

.info-card-excerpt {
    font-size: 0.92rem;
    color: var(--cor-texto-suave);
    margin-bottom: 15px;
    flex-grow: 1;
}

.info-card-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--cor-padrao-escura);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =========================================
   Contatos / Setores (.main_products)
   ========================================= */
.main_products {
    max-width: 1300px;
    padding: 10px 0;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.main_products .p_header {
    flex-basis: 100%;
    margin: 20px 0;
}

.main_products article {
    flex: 1 1 calc(25% - 24px);
    min-width: 230px;
    max-width: 300px;
    background: #ffffff;
    border: 2px solid #729fcf;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(27, 58, 87, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main_products article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27, 58, 87, 0.15);
}

.main_products article img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 12px auto;
    display: block;
}

/* =========================================
   Transparência e Tabelas
   ========================================= */
.filter-box-hospital {
    background-color: #ffffff;
    border: 1px solid #d8e4f0;
    border-left: 5px solid #729fcf;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(27, 58, 87, 0.05);
}

.table-hospital {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(27, 58, 87, 0.06);
}

.table-hospital thead th {
    background-color: #729fcf;
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.table-hospital tbody tr:hover {
    background-color: #eef5fc;
}

/* =========================================
   Formulários e Rodapé
   ========================================= */
label {
    padding-top: 10px;
    font-weight: bold;
    color: darkblue;
}

#corpo {
    flex: 1 0 auto;
    padding-bottom: 30px;
}

a[href="#top"] {
    padding: 8px 12px;
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    font-size: 26px;
    background-color: var(--cor-marinho);
    color: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

a[href="#top"]:hover {
    background-color: #729fcf;
    text-decoration: none;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: var(--cor-marinho);
    color: whitesmoke;
    font-size: 0.88rem;
    text-align: center;
    margin-top: auto;
    border-top: 4px solid var(--cor-vermelho);
}

.footer a.priv {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background-color: rgba(114, 159, 207, 0.25);
    transition: background-color 0.2s ease;
}

.footer a.priv:hover {
    background-color: #729fcf;
    color: #ffffff;
}

.social a {
    color: white;
}

@media (max-width: 991.98px) {
    .hospital-title-group h1 {
        font-size: 1.3rem;
    }
    .main_products article {
        flex: 1 1 calc(50% - 16px);
    }
}

@media (max-width: 575.98px) {
    .main_products article {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
