body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
    background: #0b0d10;
    color: #ffffff;
}

.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .5px;
}

.navbar-brand img { height:32px; margin-right:8px; vertical-align:middle; }

/* Forzar que la marca en la navbar sea siempre blanca y visible */
.navbar .navbar-brand, .navbar .navbar-brand:hover, .navbar .navbar-brand:focus {
    color: #ffffff !important;
    text-decoration: none;
}

/* Asegurar que los enlaces dentro de la navbar no cambien a color oscuro al hacer hover */
.navbar a, .navbar a:hover, .navbar a:focus {
    color: #ffffff !important;
}

.btn-primary {
    background: linear-gradient(135deg, #ff2b45, #c91b32);
    border: none;
    border-radius: 999px;
    padding: .6rem 1.4rem;
    font-weight: 500;
}

.btn-primary:hover {
    opacity: .9;
}

.btn-outline-light {
    border-radius: 999px;
}

.card {
    background: #000000;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.05);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.form-control,
.form-control:focus {
    background: #0f1218;
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    border-radius: 12px;
}

/* Placeholders más visibles (gris claro tirando a blanco) */
.form-control::placeholder { color: rgba(255,255,255,0.75); opacity: 1; }
.form-control:-ms-input-placeholder { color: rgba(255,255,255,0.75); }
.form-control::-ms-input-placeholder { color: rgba(255,255,255,0.75); }
.form-control.form-control-lg::placeholder { color: rgba(255,255,255,0.78); }

.form-label {
    color: #bfc3c9;
    font-weight: 500;
}

.img-thumbnail {
    border-radius: 12px;
    border: none;
    background: transparent;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.small-muted {
    color: #8b8f97;
}

.badge-date {
    background: rgb(255, 255, 255);
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .8rem;
}

.pagination .page-link {
    background: transparent;
    border: none;
    color: #aaa;
}

.pagination .active .page-link {
    background: #ff2b45;
    color: white;
    border-radius: 999px;
}

/* Mejorar contraste: asegurar títulos y textos legibles sobre fondo oscuro */
h1, h2, h3, h4, h5, h6, .card-title, .section-title {
    color: #ffffff;
}

/* Etiquetas y textos secundarios con mayor contraste pero aún suaves */
.form-label, label, .text-muted, .small-muted {
    color: #c6c9cf !important;
}

/* Párrafos dentro de cards */
.card p, .card .mt-2, .card .mb-1 {
    color: #e8e8e8;
}

/* Botones outline y elementos interactivos */
.btn-outline-light, .btn-outline-secondary {
    color: #e6eef3;
    border-color: rgba(255,255,255,.08);
}

.pagination .page-link {
    color: #e6eef3;
}
.pagination .page-link:hover {
    color: #ffffff;
}

/* Ajustes para accesibilidad en imágenes con texto alterno pequeño */
.img-thumbnail {
    border-radius: 12px;
    border: none;
    background: transparent;
}

.placeholder-light::placeholder {
    color: #cfd3da;
    opacity: 1;
}

.container h2 {
    color: #ffffff;
}

.container a {
    color: white;
}

/* Modales en tema oscuro: fondo negro y texto en blanco */
.modal-content {
    background: #0b0d10;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.06);
}
.modal-header .modal-title, .modal-body, .modal-footer {
    color: #ffffff;
}

/* Formularios dentro del modal */
.modal .form-control,
.modal .form-control:focus {
    background: #0f1218;
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
}
.modal .form-label {
    color: #c6c9cf;
}
.modal .img-thumbnail { background: transparent; }

/* Botones dentro de modales */
.modal .btn-secondary {
    background: transparent;
    color: #e6eef3;
    border: 1px solid rgba(255,255,255,0.06);
}
.modal .btn-primary {
    background: linear-gradient(135deg, #ff2b45, #c91b32);
    color: #ffffff;
}

.titulor h2 {
    padding-bottom: 20px;
}