body.portal {
    background: #f1f4f3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-cabecera {
    background: linear-gradient(135deg, #1F3A37 0%, #2C6E63 100%);
    color: #fff;
    padding: 56px 0 90px;
}

.portal-cabecera h1 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.portal-cabecera p {
    opacity: 0.85;
    margin: 0;
    font-size: 17px;
}

.portal-contenido {
    margin-top: -50px;
    flex: 1;
}

.estado {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 28px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 15px;
}

.estado-abierto { border-left: 5px solid #2C6E63; }
.estado-abierto .material-icons { color: #2C6E63; }

.estado-cerrado { border-left: 5px solid #B8892B; }
.estado-cerrado .material-icons { color: #B8892B; }

.tarjeta-portal {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    height: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.tarjeta-portal .icono {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e4eeec;
    color: #2C6E63;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.tarjeta-portal .icono .material-icons {
    font-size: 32px;
}

.tarjeta-portal p {
    color: #5b6b67;
    flex: 1;
}

.tarjeta-portal .nota {
    font-size: 12.5px;
    color: #8a9692;
}

.portal-pie {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #6b7a76;
}

.portal-pie a {
    color: #6b7a76;
}

/* ---------- Logo, nombre y dirección ---------- */
.portal-logo {
    background: #fff;
    display: inline-block;
    padding: 12px 22px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    margin-bottom: 18px;
}

.portal-logo img {
    display: block;
    max-height: 100px;
    max-width: 280px;
    width: auto;
}

.portal-cabecera h1 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.portal-pie .direccion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}

.portal-pie .direccion a {
    color: #4d5b57;
}

.portal-pie .direccion .material-icons {
    font-size: 18px;
    color: #B8892B;
}

@media (max-width: 576px) {
    .portal-cabecera h1 {
        font-size: 1.3rem;
    }
}

/* ---------- Fondo con imagen ---------- */
body.portal {
    background-color: #1F3A37;
}

/* La imagen va en una capa fija detrás de todo, con un velo oscuro encima para que se lea el texto */
body.portal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(31, 58, 55, 0.65), rgba(31, 58, 55, 0.65)),
        url('../img/fondo.avif');
    background-size: cover;
    background-position: center;
}

.portal-cabecera {
    background: transparent;
}

.portal-cabecera h1,
.portal-cabecera p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.portal-pie {
    background: rgba(31, 58, 55, 0.85);
    color: #fff;
}

.portal-pie a,
.portal-pie .direccion a {
    color: #fff;
}

/* ---------- Íconos SVG ---------- */
.estado svg {
    flex-shrink: 0;
}

.estado-abierto svg {
    color: #2C6E63;
}

.estado-cerrado svg {
    color: #B8892B;
}

.portal-pie .direccion svg {
    color: #B8892B;
    flex-shrink: 0;
}