:root {
    --bs-body-bg: var(--bs-gray-100);
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lead {
    font-size: 1.25rem;
    color: #666;
}

.navbar-brand img {
    max-height: 60px; /* Adjust as needed */
}

.banner-image img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
}

.input-group-text {
    background-color: #eee;
    border: 1px solid #ccc;
}

.form-control {
    border: 1px solid #ccc;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

footer {
    padding: 20px 0;
    background-color: #005792; /* Un azul oscuro profesional */
    border-top: 1px solid #003d5c; /* Un toque más oscuro para definir el límite */
    color: #ffffff; /* Texto claro para un alto contraste */
}

.footer-link {
    display: inline-block;
    margin: .2rem .45rem;
    color: #ffffff;
    font-weight: 600;
    text-underline-offset: .2rem;
}

.cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: underline;
}

.consent-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1080;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    max-width: 1120px;
    margin-inline: auto;
    padding: 1.25rem;
    border: 1px solid #b8cad4;
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 .75rem 2.5rem rgba(0, 38, 61, .24);
}

.consent-copy {
    max-width: 730px;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: flex-end;
}

.consent-actions .btn {
    min-height: 44px;
    font-weight: 650;
}

.consent-dialog {
    width: min(680px, calc(100% - 2rem));
    padding: 1.5rem;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1rem 4rem rgba(0, 38, 61, .3);
}

.consent-dialog::backdrop {
    background: rgba(5, 25, 38, .68);
}

.consent-category {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #dce5ea;
}

.legal-shell {
    max-width: 920px;
    margin-inline: auto;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .9rem;
    padding: 1rem;
    border: 1px solid #d6e1e7;
    border-radius: .75rem;
    background: #fff;
}

.legal-content {
    line-height: 1.72;
}

.legal-content h2 {
    margin-top: 2.5rem;
    color: #005792;
}

.legal-content h3 {
    margin-top: 1.75rem;
}

.legal-meta {
    padding: 1rem 1.25rem;
    border-left: .3rem solid #005792;
    background: #eaf4f9;
}

@media (max-width: 767.98px) {
    .consent-banner { grid-template-columns: 1fr; }
    .consent-actions { justify-content: stretch; }
    .consent-actions .btn { flex: 1 1 100%; }
}

.footer-link:hover,
.footer-link:focus {
    color: #e7f3fb;
}

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 1100;
    padding: .65rem 1rem;
    border-radius: .4rem;
    background: #ffffff;
    color: #003d5c;
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .2);
}

.help-hero,
.help-page-header {
    max-width: 760px;
}

.help-eyebrow {
    color: #496678;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.help-card {
    position: relative;
    padding: 2rem;
    border: 1px solid #d4e0e7;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 .35rem 1.2rem rgba(0, 61, 92, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.help-card:hover,
.help-card:focus-within {
    transform: translateY(-3px);
    border-color: #5f9bbc;
    box-shadow: 0 .7rem 1.8rem rgba(0, 61, 92, .12);
}

.help-card-recommended {
    border: 2px solid #0d6efd;
}

.help-recommended {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: #e7f1ff;
    color: #084298;
    font-size: .78rem;
    font-weight: 700;
}

.help-card-icon {
    display: block;
    margin-bottom: 1rem;
    color: #005792;
    font-size: 1.8rem;
}

.help-topic-list .list-group-item {
    padding: 1rem 1.25rem;
    color: #24485c;
    font-weight: 600;
}

.help-section {
    max-width: 900px;
    margin-bottom: 3.5rem;
    scroll-margin-top: 1.5rem;
}

.help-section h2 {
    color: #005792;
    font-weight: 700;
}

.help-steps {
    padding-left: 0;
    list-style: none;
    counter-reset: help-step;
}

.help-steps > li {
    position: relative;
    min-height: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 3.25rem;
    counter-increment: help-step;
}

.help-steps > li::before {
    position: absolute;
    top: -.25rem;
    left: 0;
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 50%;
    background: #e3f1f8;
    color: #005792;
    content: counter(help-step);
    font-weight: 700;
}

.help-steps-compact > li {
    padding-left: 2.75rem;
}

.help-steps-compact > li::before {
    width: 1.9rem;
    height: 1.9rem;
    font-size: .85rem;
}

.help-checklist {
    padding-left: 0;
    list-style: none;
}

.help-checklist li {
    position: relative;
    margin-bottom: .75rem;
    padding-left: 1.8rem;
}

.help-checklist li::before {
    position: absolute;
    left: 0;
    color: #198754;
    content: "✓";
    font-weight: 700;
}

.help-feature,
.help-state {
    padding: 1.25rem;
    border: 1px solid #dbe4e9;
    border-radius: .75rem;
    background: #ffffff;
}

.help-feature > i {
    margin-bottom: .75rem;
    color: #005792;
    font-size: 1.35rem;
}

.help-state p {
    margin: .75rem 0 0;
}

.help-next-step {
    max-width: 900px;
    padding: 1.75rem;
    border-left: .35rem solid #005792;
    border-radius: .5rem;
    background: #e8f3f9;
}

.help-on-this-page {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.25rem;
    max-width: 900px;
    padding: 1rem 1.25rem;
    border-radius: .75rem;
    background: #ffffff;
}

.help-step-label {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    margin-bottom: .5rem;
    place-items: center;
    border-radius: 50%;
    background: #005792;
    color: #ffffff;
    font-weight: 700;
}

.help-code-example {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid #cbd9e1;
    border-radius: .6rem;
    background: #f8fafb;
}

.help-code-example div {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) 2fr;
    gap: 1rem;
    padding: .4rem 0;
}

.help-code-example span {
    font-weight: 700;
}

.help-code-example code {
    overflow-wrap: anywhere;
}

.help-status-table th {
    color: #24485c;
}

.help-status-table td:first-child {
    white-space: nowrap;
}

.help-context-button {
    margin-bottom: 1rem;
}

.help-search {
    max-width: 850px;
    margin-inline: auto;
}

.help-feedback,
.help-contact-context,
.help-empty-state {
    padding: 1.5rem;
    border: 1px solid #d8e3e9;
    border-radius: .85rem;
    background: #f8fafb;
}

.help-feedback form {
    display: inline-block;
}

.help-inline-link {
    color: #477184;
    font-size: .85em;
    text-decoration: none;
}

.help-inline-link:hover,
.help-inline-link:focus {
    color: #005792;
}

.help-empty-state,
.help-success {
    max-width: 680px;
    margin: 2rem auto;
    text-align: center;
}

.help-empty-state > i,
.help-success > i {
    margin-bottom: 1rem;
    color: #198754;
    font-size: 3rem;
}

.help-contact-context > i,
.help-tour-icon {
    margin-bottom: 1rem;
    color: #005792;
    font-size: 2rem;
}

.help-reference {
    display: inline-block;
    padding: .65rem 1rem;
    border-radius: .5rem;
    background: #edf4f7;
}

.help-tour .modal-header {
    align-items: center;
}

.help-tour-step {
    min-height: 190px;
    padding: 1rem .5rem;
    text-align: center;
}

.help-tour-progress {
    color: #607d8b;
    text-align: center;
}

.help-editorial-article {
    max-width: 820px;
}

.help-editorial-body {
    font-size: 1.05rem;
    line-height: 1.75;
    white-space: pre-line;
}

.help-video-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #bfd6e2;
    border-radius: .8rem;
    background: #f1f7fa;
}

.help-video-card > i {
    color: #005792;
    font-size: 2rem;
}

.offcanvas .offcanvas-title {
    color: #005792;
}

.navbar-custom {
    background-color: #005792; /* Un azul oscuro profesional */
    border-bottom: 2px solid #003d5c; /* Un toque más oscuro para definir el límite */
}

.navbar-custom .navbar-nav .nav-link {
    color: #ffffff; /* Texto claro para contraste */
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
    color: #cadeef; /* Un azul claro para hover y focus */
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333333; /* Un color de texto oscuro para mejor lectura */
}

h1, .form-header {
    font-size: 2.5rem; /* Ajusta según la importancia */
    font-weight: 700; /* Más grueso para encabezados */
    color: #005792; /* Cohesión con el esquema de colores */
}

p, .nav-link {
    font-size: 1rem;
    font-weight: 400; /* Normal para texto */
}

.lead {
    font-size: 1.25rem;
    font-weight: 600; /* Semi-grueso para destacar */
    color: #005792; /* Cohesión con el esquema de colores */
}

@media (max-width: 768px) {
    .help-code-example div {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .help-status-table td:first-child {
        white-space: normal;
    }

    .input-group .input-group-text {
        width: auto; /* Mantiene el ancho natural de input-group-text */
        flex-shrink: 0; /* Evita que el input-group-text se reduzca */
    }

    .input-group .form-control {
        width: calc(100% - 40px); /* Ocupa el 100% del ancho disponible menos el ancho aproximado del input-group-text */
        margin-left: 10px; /* Añade un pequeño margen a la izquierda del form-control para separación */
    }

    /* Para manejar el input-group de forma adecuada, asegúrate de que no envuelva los elementos */
    .input-group {
        flex-wrap: nowrap; /* Evita que los elementos del input-group se envuelvan en una nueva línea */
    }
}
