/* ==========================================================
   VARIABLES GENERALES
========================================================== */

:root {
    --uandes-red: #c9181d;
    --uandes-red-dark: #a91418;
    --uandes-text: #0f172a;
    --uandes-muted: #64748b;
    --uandes-border: #e2e8f0;
    --uandes-card: rgba(255, 255, 255, 0.90);
    --uandes-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --uandes-shadow-hover: 0 20px 44px rgba(15, 23, 42, 0.12);
}

/* ==========================================================
   BASE / RESET
========================================================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--uandes-text);
}

h1,
h2,
h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================
   FONDO GLOBAL
   Ruta esperada: app/static/img/fondo-innovacion.png
========================================================== */

body.app-body,
body.login-body-simple {
    background-image:
        linear-gradient(rgba(248, 250, 252, 0.72), rgba(248, 250, 252, 0.72)),
        url("../img/fondo-innovacion.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ==========================================================
   NAVBAR
========================================================== */

.site-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--uandes-border);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1440px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    white-space: nowrap;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.brand-light {
    color: #334155;
    font-weight: 400;
}

.brand-red {
    color: var(--uandes-red);
    font-weight: 900;
    padding: 0 2px;
}

.brand-bold {
    color: #1f2937;
    font-weight: 800;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #334155;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--uandes-red);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--uandes-red);
    opacity: 0;
    transform: scaleX(0.4);
    transition: all 0.2s ease;
}

.nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1200;
    display: none;
    min-width: 260px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--uandes-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--uandes-shadow);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
    gap: 2px;
}

.nav-dropdown-menu a,
.nav-dropdown-disabled {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--uandes-text);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-group {
    margin: 8px 4px 3px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-dropdown-disabled {
    color: #94a3b8;
    cursor: not-allowed;
    background: #f8fafc;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    background: #f8fafc;
    color: var(--uandes-red);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    padding: 8px 14px;
    border: 1px solid var(--uandes-border);
    border-radius: 999px;
    color: var(--uandes-muted);
    background: #ffffff;
    font-size: 0.9rem;
}

/* ==========================================================
   DROPDOWN
========================================================== */

.nav-dropdown {
    position: relative;
}

.nav-button {
    font-family: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 46px;
    left: 0;
    min-width: 270px;
    padding: 12px;
    background: rgba(30, 30, 30, 0.94);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    display: none;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================
   BOTONES
========================================================== */

.btn,
.btn-view,
.uandes-btn-view,
.uandes-btn-back,
.uandes-btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn {
    min-height: 42px;
    padding: 0 20px;
}

.btn-sm {
    min-height: 34px;
    padding: 4px 10px;
    font-size: 0.8rem;
}

.btn-primary,
.btn-view,
.uandes-btn-view,
.uandes-btn-filter {
    background: var(--uandes-red);
    color: #ffffff;
    border-color: var(--uandes-red);
    box-shadow: 0 8px 18px rgba(201, 24, 29, 0.22);
}

.btn-primary:hover,
.btn-view:hover,
.uandes-btn-view:hover,
.uandes-btn-filter:hover {
    background: var(--uandes-red-dark);
    border-color: var(--uandes-red-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary,
.btn-outline-secondary,
.uandes-btn-back {
    background: rgba(255, 255, 255, 0.92);
    color: var(--uandes-red);
    border: 1px solid rgba(201, 24, 29, 0.35);
}

.btn-secondary:hover,
.btn-outline-secondary:hover,
.uandes-btn-back:hover {
    background: rgba(201, 24, 29, 0.08);
    color: var(--uandes-red-dark);
    transform: translateY(-1px);
}

/* Botón agregar nuevo */

.btn-add {
    gap: 8px;
}

.add-icon {
    color: #ffffff !important;
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1;
}

.btn-primary *,
.btn-view *,
.uandes-btn-view *,
.btn-add *,
.uandes-btn-filter * {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* ==========================================================
   LAYOUT GENERAL
========================================================== */

.main-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 32px;
}

.uandes-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* Tarjetas base */

.page-hero,
.app-card,
.card,
.table-card,
.form-card,
.login-card-ref,
.uandes-table-wrapper {
    background: var(--uandes-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--uandes-border);
    box-shadow: var(--uandes-shadow);
}

/* ==========================================================
   HERO / ENCABEZADOS
========================================================== */

.page-hero {
    border-radius: 28px;
    padding: 42px;
    margin-bottom: 32px;
}

.page-kicker {
    margin: 0 0 12px;
    color: var(--uandes-red);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    font-weight: 800;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    color: var(--uandes-text);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-subtitle {
    max-width: 920px;
    margin: 20px 0 0;
    color: var(--uandes-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.uandes-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.uandes-title {
    margin: 0;
    margin-right: auto;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

/* ==========================================================
   CARDS / HOME
========================================================== */

.grid,
.card-grid {
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 16px;
}

.card,
.app-card {
    border-radius: 24px;
    padding: 28px;
}

.card {
    min-height: 140px;
    text-align: center;
}

.app-card {
    color: inherit;
    transition: all 0.2s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 24, 29, 0.35);
    box-shadow: var(--uandes-shadow-hover);
}

.app-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.app-card p {
    margin: 0;
    color: var(--uandes-muted);
    line-height: 1.6;
}

.card-action {
    display: inline-block;
    margin-top: 22px;
    color: var(--uandes-red);
    font-weight: 800;
}

/* ==========================================================
   TABLAS
========================================================== */

.table-card,
.form-card,
.uandes-table-wrapper {
    border-radius: 24px;
    padding: 24px;
    overflow-x: auto;
}

.table-card table,
.uandes-table {
    width: 100%;
    border-collapse: collapse;
}

.table-card th,
.uandes-table th {
    text-align: left;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 1px solid var(--uandes-border);
    padding: 14px 12px;
}

.table-card td,
.uandes-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #0f172a;
    vertical-align: middle;
}

.table-card tr:hover td,
.uandes-table tr:hover td {
    background: rgba(248, 250, 252, 0.72);
}

/* Fila de filtros */

.uandes-filter-row th {
    background: rgba(248, 250, 252, 0.7);
    vertical-align: top;
}

/* Columna Acciones centrada y con ancho parejo */

.uandes-th-actions,
.uandes-td-actions {
    width: 130px;
    min-width: 130px;
    text-align: center;
    vertical-align: middle;
}

.uandes-td-actions .uandes-btn-view {
    width: 76px;
    min-width: 76px;
    height: 38px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================
   PAGINACIÓN / BARRA DE LISTADO
========================================================== */

.pagination,
.pagination-horizontal,
.pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li,
.pagination-horizontal li {
    list-style: none;
}

.pagination li::marker,
.pagination-horizontal li::marker {
    content: "";
}

.uandes-pagination {
    margin-bottom: 28px;
}

.pagination-horizontal {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--uandes-border);
    background: rgba(255, 255, 255, 0.88);
    color: #334155;
    font-size: 0.9rem;
}

.page-item.disabled .page-link {
    color: #94a3b8;
    background: rgba(248, 250, 252, 0.86);
}

.pagination-horizontal form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================
   FORMULARIOS / INPUTS
========================================================== */

input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="password"],
select,
textarea,
.textarea,
.uandes-filter-input,
.uandes-filter-select,
.uandes-filter-input-hybrid {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #1f2937;
    background: #ffffff;
    box-sizing: border-box;
}

textarea,
.textarea {
    height: auto;
    min-height: 38px;
    resize: vertical;
    display: block;
}

.form-row textarea,
.fieldBox textarea,
td textarea {
    width: 100%;
    max-width: 100%;
}

input[type="number"] {
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    height: 38px;
    font-size: 0.95rem;
    font-family: monospace;
    text-align: right;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

input:focus,
textarea:focus,
select:focus,
.textarea:focus,
.uandes-filter-input:focus,
.uandes-filter-select:focus,
.uandes-filter-input-hybrid:focus {
    outline: none;
    border-color: var(--uandes-red);
    box-shadow: 0 0 0 3px rgba(201, 24, 29, 0.12);
}

input:disabled,
textarea:disabled,
select:disabled {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 1;
}

input:disabled::placeholder,
textarea:disabled::placeholder {
    color: #9ca3af;
}

select {
    height: 38px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%236b7280' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5H5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

/* ==========================================================
   SELECT2
========================================================== */

.select2-container .select2-selection--single {
    height: 38px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 0.9rem;
}

.select2-container--default .select2-selection--single:focus {
    border-color: var(--uandes-red) !important;
    box-shadow: 0 0 0 3px rgba(201, 24, 29, 0.12) !important;
}

.select2-container .select2-selection__rendered {
    line-height: 28px !important;
}

.select2-container .select2-selection__arrow {
    height: 36px !important;
}

.select2-container--default.select2-container--disabled 
.select2-selection--single {
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

.select2-container--default.select2-container--disabled 
.select2-selection__arrow {
    display: none;
}

/* ==========================================================
   LOGIN
========================================================== */

.login-main-simple {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
}

.login-brand-simple {
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.login-card-ref {
    width: min(100%, 520px);
    border-radius: 18px;
    padding: 38px 34px 32px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.login-card-ref h1 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    line-height: 1.2;
    color: #020617;
    font-weight: 750;
}

.login-intro {
    margin: 0 0 26px;
    color: #475569;
    font-size: 0.98rem;
}

.login-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.9rem;
}

.login-form-ref {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #020617;
    font-weight: 700;
    font-size: 0.92rem;
}

.login-field input {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 0.96rem;
}

.login-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
    border: none;
    border-radius: 9px;
    background: var(--uandes-red);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.96rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.login-submit:hover {
    background: var(--uandes-red-dark);
    transform: translateY(-1px);
}

.login-help {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--uandes-border);
    border-radius: 9px;
    background: rgba(248, 250, 252, 0.92);
    color: #334155;
    line-height: 1.45;
    font-size: 0.95rem;
}

.login-help strong {
    display: block;
    margin-top: 2px;
    color: #0f172a;
}

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

@media (max-width: 960px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 24px;
        gap: 16px;
    }

    .nav-menu {
        width: 100%;
        flex-wrap: wrap;
    }

    .navbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .main-wrapper {
        padding: 32px 20px;
    }

    .page-hero {
        padding: 30px;
    }

    .grid,
    .card-grid {
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .pagination-horizontal {
        justify-content: center;
    }

    .uandes-table,
    .table-card table {
        font-size: 0.8rem;
    }
}

@media (max-width: 760px) {
    .login-card-ref {
        padding: 30px 22px;
    }

    .login-brand-simple {
        font-size: 1.65rem;
    }
}
/* ==========================================================
   MENÚS PRINCIPALES: FORMULARIOS / PROYECTOS
========================================================== */

.dashboard-hero {
    margin-bottom: 28px;
}

.app-body:has(.manual-menu-container) {
    height: 100vh;
    overflow: hidden;
}

.main-wrapper:has(.manual-menu-container) {
    height: 100vh;
    padding: 84px 20px 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.manual-menu-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.manual-menu-container .dashboard-hero {
    flex: 0 0 auto;
    margin-bottom: 12px;
}

.dashboard-title {
    margin: 0 0 10px;
    color: #172554;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dashboard-subtitle {
    margin: 0;
    color: #475569;
    font-size: 1.12rem;
}

/* =========================
   MENÚ FORMULARIOS
========================= */

.forms-menu-list {
    overflow: auto;
    border: 1px solid var(--uandes-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    box-shadow: var(--uandes-shadow);
}

.manual-menu-container .forms-menu-list {
    flex: 1 1 auto;
    min-height: 0;
}

.forms-menu-group {
    padding: 12px 18px 8px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.forms-menu-row {
    display: grid;
    grid-template-columns: 86px 210px 1fr 170px;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.forms-menu-progress {
    height: 8px;
    width: 64px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.forms-menu-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--uandes-red);
}

.forms-menu-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.forms-menu-link:hover {
    background: rgba(248, 250, 252, 0.95);
}

.forms-menu-link:hover .menu-enter-btn {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(88, 116, 214, 0.34);
}

.forms-menu-row:last-child {
    border-bottom: none;
}

.forms-menu-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef2ff;
    font-size: 1.7rem;
}

.forms-menu-title {
    color: #172554;
    font-size: 1.25rem;
    font-weight: 800;
}

.forms-menu-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.45;
}

.forms-menu-action {
    display: flex;
    justify-content: flex-end;
}

/* =========================
   MENÚ PROYECTOS
========================= */

.project-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.project-menu-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
    border: 1px solid var(--uandes-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    box-shadow: var(--uandes-shadow);
}

.project-menu-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef2ff;
    font-size: 2rem;
}

.project-menu-content h3 {
    margin: 0 0 8px;
    color: #172554;
    font-size: 1.45rem;
    font-weight: 800;
}

.project-menu-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.project-menu-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

/* =========================
   BOTÓN AZUL DE MENÚ
========================= */

.menu-enter-btn {
    min-width: 145px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(180deg, #7b93e6 0%, #5874d6 100%);
    box-shadow: 0 10px 20px rgba(88, 116, 214, 0.28);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
}

.menu-enter-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(88, 116, 214, 0.34);
}

/* =========================
   RESPONSIVE MENÚS
========================= */

@media (max-width: 980px) {
    .forms-menu-row {
        grid-template-columns: 86px 1fr;
    }

    .forms-menu-description,
    .forms-menu-action {
        grid-column: 2;
    }

    .forms-menu-action {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .forms-menu-row {
        grid-template-columns: 1fr;
    }

    .forms-menu-icon,
    .forms-menu-description,
    .forms-menu-action {
        grid-column: auto;
    }

    .forms-menu-action {
        justify-content: flex-start;
    }
}
/* ==========================================================
   FORMULARIO CON PESTAÑAS
========================================================== */

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

.form-page-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-page-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(238, 242, 255, 0.9);
    font-size: 1.45rem;
    box-shadow: var(--uandes-shadow);
}

.form-page-title {
    margin: 0 0 8px;
    color: #172554;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.form-back-link,
.form-cancel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.95rem;
}

.form-back-link:hover,
.form-cancel-link:hover {
    color: var(--uandes-red);
}

.tabbed-form-card {
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid var(--uandes-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    box-shadow: var(--uandes-shadow);
    overflow: hidden;
}

.form-tabs {
    display: flex;
    align-items: center;
    background: rgba(226, 232, 240, 0.55);
    border-bottom: 1px solid var(--uandes-border);
}

.form-tab {
    min-width: 140px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-right: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(226, 232, 240, 0.5);
    color: #94a3b8;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.form-tab:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.75);
}

.form-tab.active {
    background: linear-gradient(180deg, #c9181d 0%, #a91418 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(201, 24, 29, 0.20);
}

.tabbed-form {
    padding: 26px 28px 24px;
}

.form-tab-panel {
    display: none;
}

.form-tab-panel.active {
    display: block;
}

.form-tab-panel h2 {
    margin: 0 0 22px;
    color: #172554;
    font-size: 1.35rem;
    font-weight: 800;
}

.tabbed-form-field {
    margin-bottom: 18px;
}

.tabbed-form-field label {
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.94rem;
}

.tabbed-form-field label span {
    color: var(--uandes-red);
}

.tabbed-form-field input,
.tabbed-form-field select,
.tabbed-form-field textarea {
    min-height: 42px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.94);
}

.tabbed-form-field textarea {
    min-height: 84px;
}

.tabbed-form-field small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.82rem;
}

.field-error {
    margin-top: 6px;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
}

.form-errors {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.tabbed-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--uandes-border);
}

@media (max-width: 900px) {
    .tabbed-form-card {
        max-width: 100%;
    }

    .form-tabs {
        overflow-x: auto;
    }

    .form-tab {
        min-width: 130px;
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .form-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tabbed-form {
        padding: 22px 18px;
    }

    .tabbed-form-actions {
        flex-direction: column-reverse;
    }

    .tabbed-form-actions .btn {
        width: 100%;
    }
}
/* ==========================================================
   MÓDULOS PRÓXIMAMENTE DISPONIBLES
========================================================== */

.forms-menu-row-disabled {
    opacity: 1;
    background: #f8fafc;
    color: #94a3b8;
}

.forms-menu-row-disabled .forms-menu-icon,
.forms-menu-row-disabled .forms-menu-title,
.forms-menu-row-disabled .forms-menu-description {
    color: #94a3b8;
}

.forms-menu-status {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.menu-enter-disabled {
    background: #cbd5e1;
    color: #64748b !important;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.menu-enter-disabled:hover {
    transform: none;
    box-shadow: none;
    color: #64748b !important;
}
