/* ========== RESPONSIVE ====================================================== */
/* Resoluciones recomendadas:
Tablet (1024 x 768 px) Landscape.
Laptop 1 (1280 x 800 px) Landscape.
Laptop 2 (1600 x 900 px) Landscape.
Laptop 3 (1920 x 1200 px) Landscape.
*/
/* ============================================================================ */
/* ===============================
   RESET BÁSICO
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===============================
   HTML / BODY / MAIN
================================ */
html,
body {
    height: 100%;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-fullwidth {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-fullwidth>div {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.dashboard-fullwidth > .profile-page {
    overflow: hidden;
}


/* ===============================
   CONTENEDOR PERFIL
================================ */
.box_perfil_1 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* 🔑 CLAVE */
    justify-content: center;

    flex: 1;
    min-height: 0;
    overflow: hidden;
    width: clamp(62rem, 80vw, 85rem);
    margin-inline: auto;

    gap: clamp(1.25rem, 2vw, 1.5rem);
    padding-top: clamp(1.25rem, calc(-0.89rem + 3.35vw), 3.125rem);
    padding-bottom: clamp(1.25rem, calc(-0.89rem + 3.35vw), 3.125rem);
}

.box_perfil_1.perfil-scroll {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}



/* ===============================
   TEXTOS
================================ */
.textTitle {
    font-family: Verdana, sans-serif;
    font-weight: bold;
    color: #000000;
    text-align: left;

    font-size: clamp(0.625rem, 1vw, 0.875rem);
    /* 10px → 14px */
}

.formularioEdit h2.textTitle {
    font-size: clamp(0.95rem, 1.35vw, 1.25rem);
}

.textContent {
    font-family: Verdana, sans-serif;
    color: rgb(75, 85, 99);
    text-align: left;

    font-size: clamp(0.625rem, 1vw, 0.875rem);
    /* 10px → 14px */
}

/* ===============================
   BOTÓN PERFIL
================================ */
.botonPerfil {
    margin-top: clamp(0.25rem, 0.6vw, 0.375rem);
    /* 4px → 6px */
    padding-top: clamp(0.25rem, 0.6vw, 0.375rem);

    font-size: clamp(0.625rem, 1vw, 0.875rem) !important;
    /* 10px → 14px */

    background-color: #2e2e31 !important;
}

/* ===============================
   FORMULARIO
================================ */
.formularioEdit {
    --panel-pad: clamp(0.5rem, 1vw, 0.75rem);
    display: flex;
    flex-direction: column;

    /* IMPORTANTE */
    flex: 1;

    width: clamp(22rem, 32vw, 28rem);

    padding: var(--panel-pad);

    background-color: #ffffff;
    border-radius: clamp(0.6rem, 1vw, 0.75rem);
    border: 1px solid #9ca3af;
}

/* ===============================
   PARAMETROS
================================ */
.parametros-layout {
    justify-content: flex-start;
}

.parametros-layout .SideBar {
    flex: 0 0 clamp(10rem, 15vw, 14rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    padding: clamp(0.75rem, 1.2vw, 1rem);

    background-color: #ffffff;
    border: 1px solid #9ca3af;
    border-radius: clamp(0.6rem, 1vw, 0.75rem);
    box-shadow: 0 clamp(0.25rem, 0.6vw, 0.5rem) clamp(0.5rem, 1.2vw, 0.75rem) rgba(0, 0, 0, 0.1);
}

.parametros-layout .SideBar button {
    border: 1px solid #9ca3af;
    background-color: #f9fafb;
    padding: clamp(0.35rem, 0.8vw, 0.5rem) clamp(0.6rem, 1vw, 0.8rem);
    border-radius: 0.5rem;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    text-align: left;
    cursor: pointer;
}

.parametros-layout .SideBar button:hover {
    background-color: #eef2f7;
}

.parametros-layout .SideBar button.is-active {
    background-color: #2e2e31;
    border-color: #2e2e31;
    color: #ffffff;
}

.parametros-content {
    flex: 1;
    min-width: 0;
    display: flex;
}

.parametros-content .formularioEdit {
    width: 100%;
    padding-top: 0;
}

.parametros-section {
    display: none;
}

.parametros-section.is-active {
    display: block;
}

.parametros-section .perfil-header-sticky {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #ffffff;
    margin: 0;
    padding: var(--panel-pad) 0 clamp(0.35rem, 0.7vw, 0.55rem);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.parametros-section .perfil-header-sticky .divider-line {
    margin: clamp(0.45rem, 0.9vw, 0.65rem) 0 0;
}

@media (max-width: 900px) {
    .parametros-layout {
        flex-direction: column;
    }

    .parametros-layout .SideBar {
        flex: 0 0 auto;
        width: 100%;
    }
}


/* ===============================
   INPUTS
================================ */
input.input-small {
    font-size: clamp(0.625rem, 1vw, 0.875rem) !important;
    /* 10px → 14px */
    padding: clamp(0.25rem, 0.6vw, 0.3125rem);
    /* 4px → 5px */
}

.profile-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background:
        linear-gradient(180deg, rgba(255, 198, 26, 0.08) 0%, rgba(255, 255, 255, 0) 20%),
        #ffffff;
}

.profile-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: clamp(0.65rem, 1.2vw, 1rem);
    width: min(100%, 118rem);
    margin: 0 auto;
    padding: clamp(0.6rem, 1vw, 0.9rem) clamp(0.35rem, 1vw, 0.65rem) clamp(0.6rem, 1.1vw, 0.9rem);
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    width: min(100%, 85rem);
    margin: clamp(0.35rem, 0.8vw, 0.6rem) auto 0;
    padding: clamp(0.7rem, 1.1vw, 0.95rem) clamp(1rem, 1.6vw, 1.25rem);
    border: 1px solid #f1bf49;
    border-left: 6px solid #17856f;
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 18% 22%, rgba(202, 228, 255, 0.7) 0%, rgba(202, 228, 255, 0) 32%),
        radial-gradient(circle at 78% 38%, rgba(255, 232, 149, 0.46) 0%, rgba(255, 232, 149, 0) 34%),
        linear-gradient(90deg, #f7fbff 0%, #fffdf5 100%);
    box-shadow: 0 0.55rem 1.3rem rgba(29, 62, 112, 0.08);
}

.profile-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.profile-hero-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.35rem, 1.9vw, 1.85rem);
    line-height: 1;
    font-weight: 700;
    color: #23395d;
}

.profile-hero-text {
    max-width: 56rem;
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.78rem, 0.86vw, 0.9rem);
    line-height: 1.3;
    color: #5a7397;
}

.profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0;
    justify-content: flex-end;
    width: 100%;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.72rem, 0.8vw, 0.82rem);
    font-weight: 600;
    line-height: 1;
}

.profile-chip-blue {
    color: #2c5d9b;
    border-color: #a9c7f6;
    background: #edf5ff;
}

.profile-chip-green {
    color: #1d8758;
    border-color: #95dbb7;
    background: #ebfbf1;
}

.profile-chip-sky {
    color: #00759b;
    border-color: #a9d9ef;
    background: #eef9ff;
}

.profile-page .box_perfil_1 {
    flex: 1;
    min-height: 0;
    overflow: visible;
    width: min(100%, 85rem);
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0.35rem;
    gap: clamp(0.75rem, 1.2vw, 1rem);
}

.profile-page .formularioEdit {
    display: flex;
    flex-direction: column;
    width: clamp(22rem, 32vw, 28rem);
    padding: clamp(0.8rem, 1.2vw, 1rem);
    background:
        linear-gradient(180deg, rgba(239, 247, 255, 0.9) 0%, rgba(255, 255, 255, 1) 28%),
        #ffffff;
    border-radius: 1.2rem;
    border: 1px solid #c8d8ec;
    box-shadow: 0 0.75rem 1.5rem rgba(28, 59, 103, 0.08);
}

.profile-page .formularioEdit > div {
    display: flex;
    flex: 1;
}

.profile-page .perfil-section {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.2vw, 0.95rem);
    height: 100%;
    width: 100%;
}

.profile-page .perfil-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #d8e4f2;
}

.profile-page .textTitle {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: #23395d;
}

.profile-page .formularioEdit h2.textTitle {
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.15;
}

.profile-page .textContent {
    font-family: "Poppins", sans-serif;
    color: #657e9e;
    line-height: 1.35;
    font-size: clamp(0.76rem, 0.85vw, 0.86rem);
}

.profile-page .perfil-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.profile-page .field-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-page .input-small {
    min-height: 2.55rem;
    padding: 0.6rem 0.85rem !important;
    border: 1px solid #b8cde8 !important;
    border-radius: 0.85rem !important;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-family: "Poppins", sans-serif !important;
    font-size: clamp(0.84rem, 0.9vw, 0.92rem) !important;
    color: #23395d;
}

.profile-page .input-small:focus {
    border-color: #77a7f2 !important;
    box-shadow: 0 0 0 4px rgba(119, 167, 242, 0.14) !important;
}

.profile-page .botonPerfil {
    margin-top: 0;
    min-height: 2.35rem;
    padding: 0.6rem 1.25rem !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: linear-gradient(180deg, #ffcd2a 0%, #ffbf08 100%) !important;
    color: #1f2f49 !important;
    font-family: "Poppins", sans-serif !important;
    font-size: clamp(0.78rem, 0.9vw, 0.9rem) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: 0 0.8rem 1.6rem rgba(255, 191, 8, 0.28);
}

.profile-page .botonPerfil:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.profile-page .verification-text,
.profile-page .verification-success,
.profile-page .form-status,
.profile-page .save-message {
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.8rem, 0.95vw, 0.9rem);
}

.profile-page .verification-text,
.profile-page .form-status,
.profile-page .save-message {
    color: #687f9d;
}

.profile-page .verification-link {
    color: #2e67a5;
}

.profile-page .verification-success {
    color: #218d62;
}

.profile-page .form-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.15rem;
}

.profile-page .space-y-1 {
    margin-top: 0.2rem;
    padding-left: 0.1rem;
}

.profile-page .space-y-1 li {
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.78rem, 0.92vw, 0.88rem);
}

@media (max-width: 980px) {
    .profile-page .box_perfil_1 {
        flex-direction: column;
        width: min(100%, 48rem);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .profile-page .formularioEdit {
        width: 100%;
    }
}

@media (max-height: 920px) and (min-width: 981px) {
    .profile-shell {
        gap: 0.55rem;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .profile-hero {
        margin-top: 0.25rem;
        padding: 0.65rem 0.95rem;
    }

    .profile-hero-copy {
        gap: 0.4rem;
    }

    .profile-hero-title {
        font-size: clamp(1.2rem, 1.5vw, 1.55rem);
    }

    .profile-hero-text {
        font-size: clamp(0.74rem, 0.82vw, 0.82rem);
        line-height: 1.22;
    }

    .profile-chip {
        min-height: 1.45rem;
        padding: 0.2rem 0.6rem;
    }

    .profile-page .box_perfil_1 {
        gap: 0.75rem;
    }

    .profile-page .formularioEdit {
        padding: 0.75rem 0.9rem;
    }

    .profile-page .perfil-form {
        gap: 0.6rem;
    }

    .profile-page .input-small {
        min-height: 2.3rem;
        padding: 0.5rem 0.75rem !important;
    }

    .profile-page .formularioEdit h2.textTitle {
        font-size: clamp(0.94rem, 1.1vw, 1.1rem);
    }

    .profile-page .textContent {
        font-size: clamp(0.72rem, 0.78vw, 0.78rem);
        line-height: 1.25;
    }

    .profile-page .botonPerfil {
        min-height: 2.15rem;
        padding: 0.5rem 1.05rem !important;
    }
}

/* ===============================
   PARAMETROS PAGE
================================ */
.parametros-page .profile-shell {
    --parametros-content-width: min(100%, clamp(20rem, 92vw, 85rem));
    overflow-y: auto;
    overflow-x: hidden;
    padding-inline: clamp(0.65rem, 2vw, 1.25rem);
}

.parametros-page .profile-hero {
    width: var(--parametros-content-width);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(0.85rem, 1.8vw, 1.5rem);
    align-items: center;
    padding: clamp(0.75rem, 1.4vw, 1rem) clamp(0.85rem, 2vw, 1.4rem);
    border-left-width: clamp(0.25rem, 0.55vw, 0.375rem);
    border-radius: clamp(0.9rem, 1.6vw, 1.35rem);
}

.parametros-page .parametros-chip-row {
    justify-content: flex-end;
    gap: clamp(0.4rem, 1vw, 0.65rem);
}

.parametros-page .parametros-messages {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.2vw, 0.75rem);
    width: var(--parametros-content-width);
    margin: 0 auto;
}

.parametros-page .parametros-alert,
.parametros-page .parametros-empty-state {
    padding: clamp(0.65rem, 1.4vw, 0.85rem) clamp(0.75rem, 1.8vw, 1rem);
    border-radius: clamp(0.7rem, 1.4vw, 1rem);
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.78rem, 0.88vw, 0.9rem);
    line-height: 1.4;
    box-shadow: 0 0.65rem 1.35rem rgba(29, 62, 112, 0.08);
}

.parametros-page .parametros-alert-success {
    color: #18724d;
    border: 1px solid #b5e7cb;
    background: linear-gradient(180deg, #f4fff8 0%, #ebfbf1 100%);
}

.parametros-page .parametros-alert-danger {
    color: #9c2f3f;
    border: 1px solid #f1c0c8;
    background: linear-gradient(180deg, #fff7f8 0%, #fff0f2 100%);
}

.parametros-page .parametros-alert-list {
    margin: 0;
    padding-left: clamp(0.95rem, 2vw, 1.15rem);
}

.parametros-page .parametros-empty-state {
    color: #7a5b15;
    border: 1px solid #f2d276;
    background:
        radial-gradient(circle at 85% 30%, rgba(255, 224, 129, 0.4) 0%, rgba(255, 224, 129, 0) 35%),
        linear-gradient(180deg, #fffdf2 0%, #fff8df 100%);
}

.parametros-page .parametros-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(0.8rem, 1.2vw, 1rem);
    width: var(--parametros-content-width);
    margin: 0 auto;
    padding-bottom: clamp(0.35rem, 1vw, 0.75rem);
}

.parametros-page .parametros-card {
    width: 100%;
    min-width: 0;
    padding: clamp(0.75rem, 1.4vw, 1rem);
    border-radius: clamp(0.8rem, 1.5vw, 1.2rem);
    scroll-margin-top: clamp(0.75rem, 1.4vw, 1rem);
}

.parametros-page .parametros-card-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: clamp(1.35rem, 2vw, 1.6rem);
    padding: clamp(0.22rem, 0.6vw, 0.3rem) clamp(0.5rem, 1vw, 0.65rem);
    border-radius: 999px;
    border: 1px solid #c7daf1;
    background: #eef6ff;
    color: #2d629d;
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.72rem, 0.8vw, 0.8rem);
    font-weight: 600;
    line-height: 1;
}

.parametros-page .parametros-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.6rem, 1.25vw, 0.8rem);
}

.parametros-page .parametros-field-full {
    grid-column: 1 / -1;
}

.parametros-page .parametros-section-title {
    margin-top: clamp(0.35rem, 0.8vw, 0.55rem);
    padding-top: clamp(0.55rem, 1vw, 0.75rem);
    border-top: 1px solid #d9e5f3;
    color: #2d629d;
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    font-weight: 700;
}

.parametros-page textarea.input-small {
    min-height: clamp(2.35rem, 4vw, 2.55rem);
    resize: vertical;
}

.parametros-page .form-actions {
    justify-content: flex-end;
}

.parametros-page .parametros-format-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.4vw, 1rem);
}

.parametros-page .parametros-format-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.4vw, 1rem);
    min-height: clamp(9rem, 16vw, 10.5rem);
    padding: clamp(1rem, 1.8vw, 1.2rem);
    border: 1px solid #c7d9ee;
    border-radius: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.parametros-page .parametros-format-card:hover {
    border-color: #7bb7df;
    box-shadow: 0 18px 40px rgba(51, 96, 145, 0.12);
    transform: translateY(-1px);
}

.parametros-page .parametros-format-card.is-active {
    border-color: #0ea5a7;
    background: linear-gradient(180deg, #ebfbfb 0%, #d8f4f2 100%);
    box-shadow: 0 22px 44px rgba(14, 165, 167, 0.12);
}

.parametros-page .parametros-format-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.parametros-page .parametros-format-card-brand {
    color: #1c2b49;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.parametros-page .parametros-format-card-option {
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 1.4vw, 1rem);
}

.parametros-page .parametros-format-card-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 clamp(4.3rem, 6vw, 4.9rem);
    width: clamp(4.3rem, 6vw, 4.9rem);
    height: clamp(4.3rem, 6vw, 4.9rem);
    padding: 0.45rem;
    border: 1px solid #d2deec;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
}

.parametros-page .parametros-format-card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.parametros-page .parametros-format-card-logo--siop {
    transform: scale(0.96);
}

.parametros-page .parametros-format-card-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.parametros-page .parametros-format-card-title {
    color: #1c2b49;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 800;
}

.parametros-page .parametros-format-card-subtitle {
    color: #6780a0;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    line-height: 1.4;
}

@media (max-width: 980px) {
    .parametros-page .profile-shell {
        --parametros-content-width: min(100%, clamp(20rem, 94vw, 48rem));
    }

    .parametros-page .profile-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .parametros-page .parametros-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .parametros-page .parametros-format-selector {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .parametros-page .profile-hero-title {
        font-size: clamp(1.05rem, 5vw, 1.35rem);
        line-height: 1.15;
    }

    .parametros-page .profile-hero-text {
        font-size: clamp(0.74rem, 3.4vw, 0.82rem);
    }

    .parametros-page .parametros-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .parametros-page .parametros-chip-row {
        justify-content: flex-start;
    }

    .parametros-page .input-small {
        min-height: clamp(2.3rem, 10vw, 2.55rem);
        padding: clamp(0.5rem, 2.6vw, 0.65rem) clamp(0.65rem, 3vw, 0.85rem) !important;
    }

    .parametros-page .form-actions {
        justify-content: stretch;
    }

    .parametros-page .botonPerfil {
        width: 100%;
    }
}
