:root {
    --primary: #ef7d00;
    --primary-dark: #d96d00;
    --secondary: #1d3557;

    --background: #f4f6f9;
    --sidebar: #1f2937;
    --text: #2d3748;
    --muted: #6c757d;
    --border: #dee2e6;
}

html {
    font-size: 14px;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 1rem;
    line-height: 1.45;
}

/* Títulos */

h1,
.h1 {
    font-size: 1.8rem;
}

h2,
.h2 {
    font-size: 1.55rem;
}

h3,
.h3 {
    font-size: 1.3rem;
}

h4,
.h4 {
    font-size: 1.15rem;
}

/* Formularios */

.form-label {
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}

.form-control,
.form-select {
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(239, 125, 0, 0.15);
}

.input-group-text {
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
}

/* Botones */

.btn {
    padding: 0.52rem 0.9rem;
    font-size: 0.93rem;
    border-radius: 8px;
}

.btn-municipal {
    color: #fff;
    border: none;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
}

.btn-municipal:hover,
.btn-municipal:focus {
    color: #fff;
    background: var(--primary-dark);
}

/* Tarjetas */

.card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.card-body {
    padding: 1.25rem;
}

/* Login */

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(239, 125, 0, 0.25),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #18232e,
            #263c4c
        );
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 24px 15px;
}

.login-card {
    width: 100%;
    max-width: 980px;
    margin: auto;
    overflow: hidden;
    border: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.login-visual {
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    padding: 38px;
    color: #fff;
    background:
        linear-gradient(
            180deg,
            rgba(24, 35, 46, 0.15),
            rgba(24, 35, 46, 0.92)
        ),
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );
}

.login-visual h1 {
    max-width: 480px;
    font-size: 2.25rem;
    line-height: 1.15;
}

.login-visual .lead {
    font-size: 1rem;
    line-height: 1.55;
}

.login-form-container {
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 42px;
}

.login-form-content {
    width: 100%;
    max-width: 390px;
    margin: auto;
}

.institutional-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
}

@media (max-width: 991.98px) {
    html {
        font-size: 14px;
    }

    .login-visual {
        display: none;
    }

    .login-card {
        max-width: 480px;
    }

    .login-form-container {
        min-height: auto;
        padding: 32px 24px;
    }
}

/* =========================================================
   PANEL PRINCIPAL
========================================================= */

:root {
    --sidebar-width: 255px;
    --navbar-height: 66px;
    --surface: #ffffff;
    --sidebar-bg: #1b2733;
    --sidebar-hover: #283847;
    --sidebar-text: rgba(255, 255, 255, 0.76);
}

.app-body {
    min-height: 100vh;
    background: #f3f5f7;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    color: #fff;
    background:
        linear-gradient(
            180deg,
            #1b2733 0%,
            #202f3c 100%
        );
    transition: transform 0.25s ease;
}

.sidebar-header {
    min-height: var(--navbar-height);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    border-radius: 11px;
    background: var(--primary);
}

.sidebar-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand-text strong {
    font-size: 1rem;
}

.sidebar-brand-text small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.73rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.btn-close-sidebar {
    margin-left: auto;
    padding: 5px;
    color: #fff;
    border: 0;
    background: transparent;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 13px 8px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-user-avatar,
.navbar-avatar {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    background: var(--primary);
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
}

.sidebar-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-user-name {
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 12px;
}

.sidebar-section-title {
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.43);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 3px;
    padding: 10px 12px;
    color: var(--sidebar-text);
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: 9px;
    transition: 0.18s ease;
}

.sidebar-link i {
    width: 20px;
    font-size: 1.05rem;
    text-align: center;
}

.sidebar-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
}

.sidebar-link.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 7px 18px rgba(239, 125, 0, 0.22);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.43);
    font-size: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.app-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-width);
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: var(--navbar-height);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e3e7eb;
    backdrop-filter: blur(10px);
}

.navbar-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    font-size: 1.3rem;
    border: 1px solid #e1e5e9;
    border-radius: 9px;
    background: #fff;
}

.navbar-title {
    display: flex;
    flex-direction: column;
}

.navbar-title-main {
    font-size: 1rem;
    font-weight: 700;
    color: #24313c;
}

.navbar-title-sub {
    color: #7b8790;
    font-size: 0.72rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.navbar-icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #59656f;
    border: 1px solid #e1e5e9;
    border-radius: 9px;
    background: #fff;
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--primary);
}

.navbar-user-button {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 8px;
    color: #33404a;
    border: 0;
    border-radius: 10px;
    background: transparent;
}

.navbar-user-button:hover {
    background: #f1f3f5;
}

.navbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.navbar-user-data {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.navbar-user-data strong {
    max-width: 175px;
    overflow: hidden;
    font-size: 0.82rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.navbar-user-data small {
    color: #7a858e;
    font-size: 0.7rem;
}

.dropdown-user-header {
    min-width: 230px;
    display: flex;
    flex-direction: column;
    padding: 7px 16px;
}

.dropdown-user-header small {
    color: #7a858e;
}

.content-wrapper {
    flex: 1;
    padding: 22px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 22px;
    color: #7c8790;
    font-size: 0.75rem;
    background: #fff;
    border-top: 1px solid #e2e6e9;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.page-heading {
    margin: 0 0 3px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #24313c;
}

.page-description {
    margin: 0;
    color: #75818b;
    font-size: 0.86rem;
}

.summary-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    background: #fff;
    border: 1px solid #e6e9ec;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(31, 42, 52, 0.05);
}

.summary-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    border-radius: 12px;
}

.summary-card-icon.orange {
    color: #d96d00;
    background: #fff0df;
}

.summary-card-icon.blue {
    color: #2666b2;
    background: #e8f2ff;
}

.summary-card-icon.yellow {
    color: #9d7400;
    background: #fff6d9;
}

.summary-card-icon.green {
    color: #198754;
    background: #e5f6ed;
}

.summary-card-content {
    display: flex;
    flex-direction: column;
}

.summary-card-content span {
    color: #6f7b85;
    font-size: 0.78rem;
}

.summary-card-content strong {
    color: #24313c;
    font-size: 1.55rem;
    line-height: 1.25;
}

.summary-card-content small {
    color: #98a1a8;
    font-size: 0.7rem;
}

.content-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e6e9ec;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(31, 42, 52, 0.05);
}

.content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f2;
}

.content-card-header h2 {
    margin: 0 0 2px;
    font-size: 0.98rem;
    font-weight: 700;
}

.content-card-header p {
    margin: 0;
    color: #7b8790;
    font-size: 0.76rem;
}

.empty-state {
    min-height: 265px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    text-align: center;
}

.empty-state-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.35rem;
    border-radius: 14px;
    background: #fff0df;
}

.empty-state h3 {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.empty-state p {
    max-width: 360px;
    margin-bottom: 14px;
    color: #7c8790;
    font-size: 0.8rem;
}

.user-information {
    padding: 8px 18px;
}

.user-information-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #edf0f2;
}

.user-information-row:last-child {
    border-bottom: 0;
}

.user-information-row span:first-child {
    color: #7a858e;
}

.user-information-row strong {
    text-align: right;
}

.status-badge {
    padding: 4px 9px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
}

.status-badge.active {
    color: #137647;
    background: #dcf5e7;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1035;
    display: none;
    background: rgba(12, 22, 30, 0.54);
}

.sidebar-overlay.show {
    display: block;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .navbar-menu-button {
        display: grid;
    }

    .navbar-user-data {
        display: none;
    }

    .content-wrapper {
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .navbar-title-sub {
        display: none;
    }

    .app-navbar {
        padding: 9px 12px;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .app-footer {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}

.table-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;

    display: inline-grid;
    place-items: center;

    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;

    border-radius: 9px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    box-shadow: 0 3px 8px rgba(239, 125, 0, 0.18);
}

.swal2-confirm {
    background-color: var(--primary) !important;
    border-radius: 8px !important;
}

.swal2-cancel {
    border-radius: 8px !important;
}

.swal2-popup {
    border-radius: 14px !important;
    font-size: 0.95rem !important;
}

.form-section-title {
    margin-bottom: 14px;
    padding-bottom: 8px;

    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;

    border-bottom: 1px solid #e8ebee;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modal-xl .modal-content {
    border: 0;
    border-radius: 14px;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e7eaed;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 13px 20px;
    border-top: 1px solid #e7eaed;
}

.validation-summary {
    display: flex;
    gap: 12px;

    margin-bottom: 18px;
    padding: 13px 15px;

    color: #842029;

    background: #fff5f5;

    border: 1px solid #f1c2c7;
    border-left: 4px solid #dc3545;
    border-radius: 10px;
}

.validation-summary-icon {
    font-size: 1.25rem;
    color: #dc3545;
}

.validation-summary strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.validation-summary-content {
    color: #92525a;
    font-size: 0.78rem;
}

#modalNuevoProyecto .modal-content {
    max-height: 92vh;
    overflow: hidden;
}

#modalNuevoProyecto form {
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.modal-body-scroll {
    overflow-y: auto;
    flex: 1 1 auto;
    padding-right: 18px;
}

.modal-footer-sticky {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

/* =========================================================
   MODALES INSTITUCIONALES
========================================================= */

.modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 70px rgba(20, 31, 41, 0.28);
}

.modal-header {
    padding: 18px 22px;
    color: #fff;
    border-bottom: 0;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );
}

.modal-header .modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.modal-header small {
    color: rgba(255, 255, 255, 0.78) !important;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 0;
    background: #f7f8fa;
}

.modal-body-scroll {
    max-height: 68vh;
    overflow-y: auto;
    padding: 22px;
}

.modal-body-scroll::-webkit-scrollbar {
    width: 8px;
}

.modal-body-scroll::-webkit-scrollbar-track {
    background: #eef1f4;
}

.modal-body-scroll::-webkit-scrollbar-thumb {
    background: #c3cad1;
    border-radius: 8px;
}

.modal-body-scroll::-webkit-scrollbar-thumb:hover {
    background: #aeb7bf;
}

.modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e5e8eb;
    box-shadow: 0 -5px 18px rgba(22, 34, 44, 0.05);
}

.modal-footer .btn {
    min-width: 130px;
}

/* Secciones dentro del formulario */

.form-section-title {
    position: relative;
    margin: 22px 0 14px;
    padding: 10px 14px 10px 40px;
    color: #34414c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid #e3e7ea;
    border-radius: 10px;
    background: #fff;
}

.form-section-title::before {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 10px;
    height: 10px;
    content: "";
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(239, 125, 0, 0.12);
}

/* Inputs */

.modal .form-label {
    margin-bottom: 0.38rem;
    color: #46525d;
    font-size: 0.78rem;
    font-weight: 600;
}

.modal .form-control,
.modal .form-select {
    min-height: 42px;
    font-size: 0.9rem;
    border: 1px solid #dce1e5;
    border-radius: 9px;
    background: #fff;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.modal textarea.form-control {
    min-height: 96px;
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(239, 125, 0, 0.12);
}

.modal .input-group-text {
    color: #596672;
    border-color: #dce1e5;
    background: #f1f3f5;
}

/* Campos obligatorios */

.modal .text-danger {
    color: #dc3545 !important;
}

/* Validación Bootstrap */

.modal .form-control.is-invalid,
.modal .form-select.is-invalid {
    border-color: #dc3545;
    background-color: #fffafb;
}

.modal .form-control.is-valid,
.modal .form-select.is-valid {
    border-color: #198754;
    background-color: #fbfffd;
}

.modal .invalid-feedback {
    margin-top: 4px;
    font-size: 0.74rem;
}

/* Caja de errores */

.validation-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 13px 15px;
    color: #842029;
    border: 1px solid #f2c4c8;
    border-left: 4px solid #dc3545;
    border-radius: 10px;
    background: #fff7f7;
}

.validation-summary-icon {
    font-size: 1.2rem;
    color: #dc3545;
}

.validation-summary strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.82rem;
}

.validation-summary-content {
    font-size: 0.76rem;
    color: #8e555b;
}

/* Responsive */

@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 8px;
    }

    .modal-body-scroll {
        max-height: 72vh;
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
    }

    .modal-footer .btn {
        min-width: auto;
    }
}


/* =========================================================
   FORMULARIO A1 - CABECERA
========================================================= */

.a1-header {
    margin-bottom: 18px;
    padding: 20px 22px;

    color: #fff;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #1b2733 0%,
            #223746 58%,
            var(--primary) 160%
        );

    box-shadow:
        0 10px 28px rgba(24, 35, 46, 0.12);
}

.a1-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.a1-back {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    color: #fff;
    font-size: 1.15rem;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.08);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.a1-back:hover {
    color: #fff;

    background: rgba(255, 255, 255, 0.15);

    transform: translateX(-2px);
}

.a1-title {
    margin: 0;

    color: #fff;

    font-size: 1.2rem;
    font-weight: 700;
}

.a1-project-name {
    margin-top: 2px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.92rem;
    font-weight: 500;
}

.a1-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 8px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 0.76rem;
}

.a1-project-meta strong {
    color: #fff;
}


/* =========================================================
   TABS A1
========================================================= */

.a1-navigation {
    padding: 14px 16px;

    border-bottom: 1px solid #e5e9ec;

    background: #fff;
}

.a1-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.a1-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 13px;

    color: #5f6b75;

    font-size: 0.8rem;
    font-weight: 600;

    border: 1px solid #e1e5e8;
    border-radius: 10px;

    background: #f8f9fa;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.a1-tabs .nav-link:hover {
    color: var(--primary);

    border-color: rgba(239, 125, 0, 0.35);

    background: #fff8f1;
}

.a1-tabs .nav-link.active {
    color: #fff;

    border-color: var(--primary);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:
        0 6px 16px rgba(239, 125, 0, 0.18);
}

.a1-tab-number {
    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    font-size: 0.72rem;
    font-weight: 700;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
}

.a1-tabs .nav-link:not(.active) .a1-tab-number {
    color: var(--primary);

    background: #fff0df;
}


/* =========================================================
   CONTENIDO A1
========================================================= */

.content-card {
    overflow: hidden;

    border: 1px solid #e5e8eb;
    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 6px 20px rgba(31, 42, 52, 0.05);
}

.tab-content {
    background: #fff;
}

.tab-pane h5 {
    color: #26343f;
}

.form-section-title {
    margin-bottom: 14px;
    padding-bottom: 8px;

    color: var(--primary);

    font-size: 0.8rem;
    font-weight: 700;

    border-bottom: 1px solid #eceff1;

    letter-spacing: 0.03em;
    text-transform: uppercase;
}


/* =========================================================
   FOOTER / ACCIONES A1
========================================================= */

.a1-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    padding: 18px 22px 22px;

    background: #fff;

    border-top: 1px solid #e5e9ec;

    box-shadow:
        0 -4px 14px rgba(31, 42, 52, 0.04);
}

.a1-actions .btn {
    min-height: 42px;

    padding-left: 16px;
    padding-right: 16px;

    border-radius: 9px;
}

.a1-actions .btn-municipal {
    min-width: 150px;

    box-shadow:
        0 6px 16px rgba(239, 125, 0, 0.18);
}

.a1-actions .btn-outline-secondary {
    min-width: 150px;
}


/* =========================================================
   BADGES ESTADO A1
========================================================= */

.a1-header .badge {
    padding: 6px 10px;

    font-size: 0.68rem;
    font-weight: 700;

    border-radius: 999px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {
    .a1-header {
        padding: 16px;
    }

    .a1-navigation {
        padding: 12px;
    }

    .a1-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .a1-tabs .nav-link {
        white-space: nowrap;
    }

    .a1-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .a1-actions > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .a1-actions > div:last-child {
        grid-template-columns: 1fr;
    }

    .a1-project-meta {
        flex-direction: column;
        gap: 4px;
    }
}