/* =========================================================
   EL PATIO DE SAN ANTONIO
   APP.CSS GLOBAL
   Identidad corporativa + Portal empleado + Administración
   ========================================================= */


/* =========================================================
   VARIABLES CORPORATIVAS
   ========================================================= */

:root {
    --ep-red: #ef3d33;
    --ep-red-dark: #c92720;
    --ep-red-deep: #a91f19;
    --ep-red-light: #ff756a;

    --ep-green: #6c8f31;
    --ep-green-dark: #506d25;
    --ep-green-light: #a9d982;

    --ep-black: #17191f;
    --ep-black-soft: #1c2129;
    --ep-black-light: #252b35;

    --ep-white: #ffffff;
    --ep-background: #f4f6f8;
    --ep-background-dark: #111419;

    --ep-text: #17191f;
    --ep-text-soft: #334155;
    --ep-text-muted: #64748b;

    --ep-border: #e2e8f0;
    --ep-border-dark: rgba(255, 255, 255, .10);

    --ep-success: #15803d;
    --ep-success-light: #dcfce7;

    --ep-danger: #b91c1c;
    --ep-danger-light: #fee2e2;

    --ep-warning: #b45309;
    --ep-warning-light: #fef3c7;

    --ep-blue: #2563eb;
    --ep-blue-light: #dbeafe;

    --ep-radius-sm: 8px;
    --ep-radius-md: 10px;
    --ep-radius-lg: 18px;
    --ep-radius-xl: 24px;

    --ep-shadow-sm:
        0 4px 14px rgba(15, 23, 42, .06);

    --ep-shadow-md:
        0 10px 30px rgba(15, 23, 42, .08);

    --ep-shadow-lg:
        0 18px 50px rgba(15, 23, 42, .12);

    --ep-shadow-dark:
        0 20px 60px rgba(0, 0, 0, .35);

    --ep-transition:
        180ms ease;

    --portal-red: var(--ep-red);
    --portal-red-dark: var(--ep-red-dark);
    --portal-green: var(--ep-green);
    --portal-green-dark: var(--ep-green-dark);
    --portal-black: var(--ep-black);
    --portal-white: var(--ep-white);
}


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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;

    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background:
        linear-gradient(
            145deg,
            #f8fafc 0%,
            #f4f6f8 48%,
            #eef1f4 100%
        );

    color: var(--ep-text);

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

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    line-height: 1.5;
}

body.ep-dark,
.ep-dark {
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(239, 61, 51, .07),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #111419 0%,
            #17191f 50%,
            #1c2129 100%
        );

    color: #e8edf5;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   LOGO CORPORATIVO
   ========================================================= */

.ep-corporate-logo {
    display: block;

    width: 74px;
    height: 74px;

    object-fit: contain;

    flex: 0 0 auto;
}

.ep-corporate-logo.sm {
    width: 48px;
    height: 48px;
}

.ep-corporate-logo.lg {
    width: 100px;
    height: 100px;
}

.ep-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 82px;
    height: 82px;

    padding: 4px;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .12);
}

.ep-logo-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   LÍNEA CORPORATIVA SUPERIOR
   ========================================================= */

.ep-top-line {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    z-index: 9999;

    background:
        linear-gradient(
            90deg,
            var(--ep-red) 0%,
            var(--ep-red-light) 52%,
            var(--ep-green) 100%
        );
}


/* =========================================================
   HEADER EMPLEADO
   ========================================================= */

.ep-header {
    position: relative;

    width: 100%;

    background:
        linear-gradient(
            135deg,
            var(--ep-black) 0%,
            var(--ep-black-soft) 65%,
            #111419 100%
        );

    color: #fff;

    box-shadow:
        0 12px 35px rgba(23, 25, 31, .20);

    overflow: hidden;
}

.ep-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--ep-red),
            var(--ep-red-light),
            var(--ep-green)
        );
}

.ep-header::after {
    content: "";

    position: absolute;

    right: -100px;
    top: -150px;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(239, 61, 51, .10),
            transparent 68%
        );

    pointer-events: none;
}

.ep-header-inner {
    position: relative;
    z-index: 1;

    width: min(1450px, calc(100% - 32px));

    min-height: 82px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.ep-brand {
    display: inline-flex;
    align-items: center;

    gap: 13px;

    min-width: 0;

    color: #fff;

    text-decoration: none;
}

.ep-brand-logo {
    width: 62px;
    height: 62px;

    object-fit: contain;

    background: #fff;

    border-radius: 15px;

    padding: 2px;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, .18);
}

.ep-brand-name {
    color: #fff;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.2;
}

.ep-brand-subtitle {
    margin-top: 4px;

    color:
        rgba(255, 255, 255, .60);

    font-size: 10px;

    line-height: 1.3;
}

.ep-header-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}

.ep-user-mini {
    display: flex;
    align-items: center;

    gap: 9px;
}

.ep-user-mini-avatar {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--ep-red),
            var(--ep-red-dark)
        );

    color: #fff;

    font-weight: 800;

    border:
        2px solid rgba(255, 255, 255, .16);
}

.ep-user-mini-info {
    min-width: 0;
}

.ep-user-mini-name {
    max-width: 180px;

    overflow: hidden;

    color: #fff;

    font-size: 12px;

    font-weight: 800;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.ep-user-mini-role {
    margin-top: 2px;

    color:
        rgba(255, 255, 255, .58);

    font-size: 10px;
}

.ep-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding:
        8px 14px;

    border:
        1px solid rgba(239, 61, 51, .45);

    border-radius:
        var(--ep-radius-md);

    background:
        rgba(239, 61, 51, .10);

    color: #ff8a82;

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;

    transition:
        background var(--ep-transition),
        border-color var(--ep-transition),
        transform var(--ep-transition);
}

.ep-logout:hover {
    background:
        rgba(239, 61, 51, .20);

    border-color:
        rgba(239, 61, 51, .70);

    transform:
        translateY(-1px);
}


/* =========================================================
   DASHBOARD EMPLEADO
   ========================================================= */

.ep-dashboard {
    width: min(1400px, calc(100% - 32px));

    margin: 0 auto;

    padding:
        34px 0 55px;
}

.ep-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 22px;

    padding: 26px;

    background:
        linear-gradient(
            135deg,
            #1c2129 0%,
            #17191f 60%,
            #20262f 100%
        );

    color: #fff;

    border-radius:
        var(--ep-radius-lg);

    box-shadow:
        var(--ep-shadow-dark);

    overflow: hidden;

    position: relative;
}

.ep-welcome::after {
    content: "";

    position: absolute;

    right: -100px;
    top: -130px;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(239, 61, 51, .15),
            transparent 68%
        );
}

.ep-welcome-kicker {
    color: var(--ep-red-light);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .14em;

    text-transform: uppercase;
}

.ep-welcome h1 {
    position: relative;
    z-index: 1;

    margin: 6px 0 5px;

    color: #fff;

    font-size:
        clamp(26px, 4vw, 42px);

    line-height: 1.08;
}

.ep-welcome p {
    position: relative;
    z-index: 1;

    margin: 0;

    color:
        rgba(255, 255, 255, .62);

    font-size: 13px;
}

.ep-welcome-photo {
    position: relative;
    z-index: 1;

    width: 92px;
    height: 92px;

    border-radius: 50%;

    object-fit: cover;

    border:
        3px solid var(--ep-red);

    box-shadow:
        0 0 0 6px
        rgba(239, 61, 51, .10);
}


/* =========================================================
   PERFIL
   ========================================================= */

.ep-profile {
    display: grid;

    grid-template-columns:
        minmax(210px, .6fr)
        minmax(0, 1.4fr);

    gap: 24px;

    padding: 24px;

    background: #fff;

    border:
        1px solid var(--ep-border);

    border-radius:
        var(--ep-radius-lg);

    box-shadow:
        var(--ep-shadow-sm);
}

.ep-profile-heading {
    display: flex;
    align-items: flex-start;

    gap: 16px;
}

.ep-profile-avatar {
    width: 92px;
    height: 92px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--ep-black-light),
            var(--ep-black)
        );

    border:
        3px solid var(--ep-red);

    color: #fff;

    font-size: 30px;

    font-weight: 800;

    overflow: hidden;
}

.ep-profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.ep-profile-kicker {
    color: var(--ep-red);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .13em;

    text-transform: uppercase;
}

.ep-profile-name {
    margin: 4px 0 0;

    color: var(--ep-black);

    font-size: 23px;

    font-weight: 900;

    line-height: 1.15;
}

.ep-profile-role {
    margin-top: 5px;

    color: var(--ep-text-muted);

    font-size: 12px;

    font-weight: 700;
}

.ep-profile-data {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.ep-profile-data-item {
    padding: 13px;

    background: #f8fafc;

    border:
        1px solid var(--ep-border);

    border-radius:
        var(--ep-radius-md);
}

.ep-profile-data-item span {
    display: block;

    color: var(--ep-text-muted);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .06em;
}

.ep-profile-data-item strong {
    display: block;

    margin-top: 4px;

    color: var(--ep-text);

    font-size: 13px;
}

.ep-edit-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    margin-top: 14px;

    padding:
        9px 14px;

    background:
        var(--ep-red);

    border:
        1px solid var(--ep-red);

    border-radius:
        var(--ep-radius-md);

    color: #fff;

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        background var(--ep-transition),
        transform var(--ep-transition);
}

.ep-edit-profile:hover {
    background:
        var(--ep-red-dark);

    transform:
        translateY(-1px);
}


/* =========================================================
   MÓDULOS
   ========================================================= */

.ep-modules,
.ep-quick-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-top: 22px;
}

.ep-module {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 175px;

    padding: 21px;

    background: #fff;

    border:
        1px solid var(--ep-border);

    border-radius:
        var(--ep-radius-lg);

    box-shadow:
        var(--ep-shadow-sm);

    text-decoration: none;

    overflow: hidden;

    transition:
        transform var(--ep-transition),
        box-shadow var(--ep-transition),
        border-color var(--ep-transition);
}

.ep-module:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(239, 61, 51, .28);

    box-shadow:
        var(--ep-shadow-md);
}

.ep-module::after {
    content: "";

    position: absolute;

    right: -50px;
    bottom: -70px;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(239, 61, 51, .08),
            transparent 70%
        );
}

.ep-module-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    margin-bottom: 15px;

    border-radius: 12px;

    background:
        rgba(239, 61, 51, .10);

    color:
        var(--ep-red);

    font-size: 19px;

    font-weight: 900;
}

.ep-module h3 {
    margin: 0;

    color:
        var(--ep-black);

    font-size: 17px;
}

.ep-module p {
    margin: 6px 0 0;

    color:
        var(--ep-text-muted);

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   TARJETAS GENERALES
   ========================================================= */

.card,
.ep-card {
    min-width: 0;

    padding: 22px;

    background: #fff;

    border:
        1px solid var(--ep-border);

    border-radius:
        var(--ep-radius-lg);

    box-shadow:
        var(--ep-shadow-sm);
}

.card + .card {
    margin-top: 0;
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 18px;
}

.card h2,
.ep-card-title {
    margin: 3px 0 5px;

    color: var(--ep-black);

    font-size: 22px;

    line-height: 1.25;
}

.card-heading p,
.card > p,
.ep-card-subtitle {
    margin: 0;

    color: var(--ep-text-muted);

    font-size: 13px;
}

.section-kicker,
.ep-kicker {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color:
        var(--ep-red);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.section-kicker::before,
.ep-kicker::before {
    content: "";

    width: 4px;
    height: 15px;

    border-radius: 4px;

    background:
        linear-gradient(
            180deg,
            var(--ep-red),
            var(--ep-green)
        );
}


/* =========================================================
   LAYOUT ADMINISTRATIVO
   ========================================================= */

.shell.admin-page {
    width:
        min(
            1500px,
            calc(100% - 32px)
        );

    margin:
        24px auto 48px;
}

.ep-left,
.ep-right,
.ep-header-info,
.user-menu {
    display: flex;
    align-items: center;
}

.ep-left {
    gap: 16px;

    min-width: 0;
}

.ep-right {
    gap: 10px;
}

.ep-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    text-decoration: none;
}

.ep-logo {
    width: 78px;
    height: 78px;

    object-fit: contain;

    display: block;

    background: #fff;

    border-radius: 14px;
}

.ep-logo-fallback {
    display: grid;
    place-items: center;

    background:
        var(--ep-red);

    color: #fff;

    font-weight: 800;
}

.ep-header-info {
    display: block;
}

.ep-header-info small {
    display: block;

    color: #cbd5e1;

    font-size: 12px;
}

.ep-header-info h2 {
    margin:
        2px 0 4px;

    color: #fff;

    font-size:
        clamp(20px, 2vw, 28px);

    line-height: 1.15;
}

.welcome {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    color: #dbe3ec;

    font-size: 13px;
}

.avatar-placeholder {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--ep-red);

    color: #fff;

    font-weight: 800;
}

.dropdown {
    display: none;
}

.top {
    margin:
        28px 0 16px;
}

.top p {
    margin:
        0 0 4px;

    color:
        var(--ep-text-muted);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.top h1 {
    margin: 0;

    color: var(--ep-black);

    font-size:
        clamp(28px, 4vw, 42px);

    line-height: 1.1;
}

.nav,
.ep-admin-nav {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 18px;
}

.nav form {
    display: inline-flex;

    margin: 0;
}


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

.btn,
.ep-btn {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 42px;

    padding:
        10px 15px;

    border:
        1px solid var(--ep-black);

    border-radius:
        var(--ep-radius-md);

    background:
        var(--ep-black);

    color: #fff;

    text-decoration: none;

    font: inherit;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform var(--ep-transition),
        background var(--ep-transition),
        border-color var(--ep-transition),
        box-shadow var(--ep-transition);
}

.btn:hover,
.ep-btn:hover {
    transform:
        translateY(-1px);
}

.btn.secondary,
.ep-btn-secondary {
    background: #fff;

    color:
        var(--ep-black);

    border-color:
        #d7dce3;
}

.btn.secondary:hover,
.ep-btn-secondary:hover {
    color:
        var(--ep-red);

    border-color:
        rgba(239, 61, 51, .35);
}

.btn.success,
.ep-btn-success {
    background:
        var(--ep-success);

    border-color:
        var(--ep-success);
}

.btn.danger,
.ep-btn-danger {
    background:
        var(--ep-danger);

    border-color:
        var(--ep-danger);
}

.ep-btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--ep-red),
            var(--ep-red-dark)
        );

    border-color:
        var(--ep-red);

    box-shadow:
        0 8px 22px
        rgba(239, 61, 51, .18);
}

.ep-btn-primary:hover {
    box-shadow:
        0 11px 28px
        rgba(239, 61, 51, .25);
}

.btn:focus-visible,
.ep-btn:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(239, 61, 51, .16);
}


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

form label,
.ep-label {
    display: block;

    margin:
        13px 0 6px;

    color:
        var(--ep-text-soft);

    font-size: 12px;

    font-weight: 800;
}

input,
select,
textarea,
.ep-field {
    width: 100%;

    min-height: 42px;

    padding:
        10px 12px;

    border:
        1px solid #cbd5e1;

    border-radius:
        var(--ep-radius-md);

    background: #fff;

    color:
        var(--ep-text);

    font: inherit;

    outline: none;

    transition:
        border-color var(--ep-transition),
        box-shadow var(--ep-transition),
        background var(--ep-transition);
}

textarea {
    min-height: 96px;

    resize: vertical;
}

input:hover,
select:hover,
textarea:hover,
.ep-field:hover {
    border-color:
        #94a3b8;
}

input:focus,
select:focus,
textarea:focus,
.ep-field:focus {
    border-color:
        var(--ep-red);

    box-shadow:
        0 0 0 3px
        rgba(239, 61, 51, .10);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;

    min-height: auto;
}

input::placeholder,
textarea::placeholder {
    color:
        #94a3b8;
}

small,
.field-help,
.muted {
    color:
        var(--ep-text-muted);
}

.field-help {
    display: block;

    margin-top: 6px;

    font-size: 11px;
}


/* =========================================================
   GRIDS
   ========================================================= */

.grid,
.grid2 {
    display: grid;

    gap: 18px;
}

.grid {
    grid-template-columns:
        minmax(320px, .85fr)
        minmax(0, 1.6fr);
}

.grid2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}


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

.table {
    width: 100%;

    overflow-x: auto;

    border:
        1px solid var(--ep-border);

    border-radius: 14px;

    background: #fff;
}

table {
    width: 100%;

    min-width: 760px;

    border-collapse: collapse;
}

th,
td {
    padding:
        12px 13px;

    text-align: left;

    vertical-align: top;

    border-bottom:
        1px solid var(--ep-border);
}

th {
    background:
        #f8fafc;

    color:
        #475569;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .04em;
}

tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   BADGES / ESTADOS
   ========================================================= */

.badge,
.request-status,
.ep-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 24px;

    padding:
        5px 9px;

    border-radius:
        999px;

    background:
        #eef2f7;

    color:
        #475569;

    font-size: 11px;

    font-weight: 800;
}

.badge.success,
.request-status.approved,
.ep-status-active {
    background:
        var(--ep-success-light);

    color:
        #166534;
}

.badge.danger,
.request-status.rejected,
.ep-status-danger {
    background:
        var(--ep-danger-light);

    color:
        #991b1b;
}

.badge.warning,
.request-status.pending,
.request-status.review,
.ep-status-pending {
    background:
        var(--ep-warning-light);

    color:
        #92400e;
}


/* =========================================================
   ALERTAS
   ========================================================= */

.alert,
.ep-alert {
    margin:
        0 0 18px;

    padding:
        13px 15px;

    border-radius:
        var(--ep-radius-md);

    background:
        #fff;

    border:
        1px solid #d7dce3;

    font-size: 12px;
}

.alert.ok,
.ep-alert-success {
    background:
        #ecfdf5;

    border-color:
        #a7f3d0;

    color:
        #166534;
}

.alert.error,
.ep-alert-error {
    background:
        #fef2f2;

    border-color:
        #fecaca;

    color:
        #991b1b;
}

.ep-alert-warning {
    background:
        #fffbeb;

    border-color:
        #fde68a;

    color:
        #92400e;
}


/* =========================================================
   CONTADORES
   ========================================================= */

.payroll-counter {
    min-width: 78px;

    padding:
        9px 12px;

    border-radius:
        12px;

    background:
        #f8fafc;

    text-align: center;
}

.payroll-counter strong,
.payroll-counter small {
    display: block;
}

.payroll-counter strong {
    color:
        var(--ep-black);

    font-size: 22px;
}

.inline {
    display: inline;
}


/* =========================================================
   ESTADOS VACÍOS
   ========================================================= */

.notification-empty,
.requests-empty {
    display: grid;

    place-items: center;

    gap: 6px;

    padding:
        36px 20px;

    text-align: center;

    border:
        1px dashed #cbd5e1;

    border-radius:
        14px;

    color:
        var(--ep-text-muted);
}

.notification-empty.error {
    border-color:
        rgba(185, 28, 28, .25);

    background:
        rgba(185, 28, 28, .04);

    color:
        #991b1b;
}

.requests-empty-icon,
.notification-empty-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--ep-success-light);

    color:
        #166534;

    font-weight: 800;
}


/* =========================================================
   COMUNICADOS
   ========================================================= */

.communication-recipient-box {
    display: grid;

    gap: 10px;

    margin-top: 10px;

    padding: 14px;

    max-height: 360px;

    overflow-y: auto;

    border:
        1px solid var(--ep-border);

    border-radius:
        12px;

    background:
        #f8fafc;
}

.communication-recipient {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px;

    border:
        1px solid var(--ep-border);

    border-radius:
        10px;

    background:
        #fff;
}


/* =========================================================
   MODAL PERFIL
   ========================================================= */

.ep-modal {
    position: fixed;

    inset: 0;

    z-index: 100000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(239, 61, 51, .10),
            transparent 38%
        ),
        rgba(5, 7, 10, .82);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}

.ep-modal.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.ep-modal[hidden] {
    display: flex;
}

.ep-modal-content {
    position: relative;

    width:
        min(100%, 760px);

    max-height:
        min(
            820px,
            calc(100vh - 48px)
        );

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #252b35 0%,
            #1c2129 48%,
            #15181e 100%
        );

    border:
        1px solid
        rgba(255, 255, 255, .11);

    border-radius:
        24px;

    box-shadow:
        0 40px 100px
        rgba(0, 0, 0, .60),
        0 0 0 1px
        rgba(239, 61, 51, .04);

    transform:
        translateY(18px)
        scale(.97);

    transition:
        transform .22s
        cubic-bezier(.2, .8, .2, 1);
}

.ep-modal-content::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--ep-red) 0%,
            var(--ep-red-light) 55%,
            var(--ep-green) 100%
        );

    z-index: 2;
}

.ep-modal.is-open
.ep-modal-content {
    transform:
        translateY(0)
        scale(1);
}

.ep-modal-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        24px 26px 20px;

    background:
        rgba(255, 255, 255, .025);

    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);
}

.ep-modal-title {
    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}

.ep-modal-icon {
    width: 46px;
    height: 46px;

    min-width: 46px;

    display: grid;

    place-items: center;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(239, 61, 51, .20),
            rgba(239, 61, 51, .07)
        );

    border:
        1px solid
        rgba(239, 61, 51, .28);

    color:
        var(--ep-red-light);

    font-size: 20px;

    box-shadow:
        0 8px 25px
        rgba(239, 61, 51, .10);
}

.ep-modal-eyebrow {
    display: block;

    margin-bottom: 5px;

    color:
        var(--ep-red-light);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .13em;
}

.ep-modal-header h2 {
    margin: 0;

    color: #fff;

    font-size: 21px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -.01em;
}

.ep-close {
    width: 40px;
    height: 40px;

    min-width: 40px;

    display: grid;

    place-items: center;

    padding: 0;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, .055);

    border:
        1px solid
        rgba(255, 255, 255, .10);

    color:
        rgba(255, 255, 255, .88);

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.ep-close:hover {
    background:
        rgba(239, 61, 51, .16);

    border-color:
        rgba(239, 61, 51, .35);

    color: #fff;

    transform:
        rotate(4deg)
        scale(1.03);
}

.ep-close:focus-visible {
    outline: none;

    border-color:
        var(--ep-red);

    box-shadow:
        0 0 0 3px
        rgba(239, 61, 51, .18);
}

.ep-modal-body {
    padding: 26px;

    max-height:
        calc(100vh - 145px);

    overflow-y: auto;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(239, 61, 51, .45)
        rgba(255, 255, 255, .04);
}

.ep-modal-body::-webkit-scrollbar {
    width: 7px;
}

.ep-modal-body::-webkit-scrollbar-track {
    background:
        rgba(255, 255, 255, .025);
}

.ep-modal-body::-webkit-scrollbar-thumb {
    background:
        rgba(239, 61, 51, .45);

    border-radius:
        20px;
}

.profile-modal-open {
    overflow: hidden;
}


/* =========================================================
   FORMULARIO DE PERFIL
   ========================================================= */

.profile-form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.profile-form-section {
    position: relative;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .045),
            rgba(255, 255, 255, .018)
        );

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius:
        17px;
}

.profile-section-kicker {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 17px;

    color:
        #aebbd0;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.profile-section-kicker::before {
    content: "";

    width: 4px;
    height: 17px;

    border-radius: 4px;

    background:
        linear-gradient(
            180deg,
            var(--ep-red),
            var(--ep-red-light)
        );
}

.profile-form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;
}

.profile-field {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 7px;
}

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

.profile-form-section label {
    color:
        #e8edf5;

    font-size: 12px;

    font-weight: 700;
}

.ep-input {
    width: 100%;

    min-height: 45px;

    box-sizing: border-box;

    padding:
        11px 13px;

    border:
        1px solid
        rgba(255, 255, 255, .10);

    border-radius: 11px;

    background:
        rgba(9, 12, 17, .58);

    color: #fff;

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.ep-input::placeholder {
    color:
        rgba(190, 199, 214, .42);
}

.ep-input:hover {
    border-color:
        rgba(255, 255, 255, .17);

    background:
        rgba(9, 12, 17, .70);
}

.ep-input:focus {
    border-color:
        rgba(239, 61, 51, .72);

    background:
        rgba(9, 12, 17, .82);

    box-shadow:
        0 0 0 3px
        rgba(239, 61, 51, .12);
}

.ep-input:focus-visible {
    outline: none;
}

textarea.ep-input {
    min-height: 90px;

    resize: vertical;
}


/* =========================================================
   FOTO DE PERFIL
   ========================================================= */

.profile-photo-container {
    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 145px;

    margin-bottom: 15px;

    padding: 18px;

    background:
        radial-gradient(
            circle,
            rgba(239, 61, 51, .08),
            transparent 68%
        );

    border:
        1px dashed
        rgba(255, 255, 255, .12);

    border-radius: 15px;
}

.profile-avatar,
.profile-preview {
    width: 108px;
    height: 108px;

    border-radius: 50%;

    object-fit: cover;
}

.profile-avatar {
    display: grid;

    place-items: center;

    background:
        linear-gradient(
            145deg,
            #242932,
            #111419
        );

    border:
        3px solid
        var(--ep-red);

    box-shadow:
        0 0 0 5px
        rgba(239, 61, 51, .08),
        0 12px 30px
        rgba(0, 0, 0, .35);

    color: #fff;

    font-size: 34px;

    font-weight: 800;
}

.profile-preview {
    display: block;

    border:
        3px solid
        var(--ep-red);

    box-shadow:
        0 0 0 5px
        rgba(239, 61, 51, .08),
        0 12px 30px
        rgba(0, 0, 0, .35);
}

.profile-upload-label {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 42px;

    padding:
        10px 14px;

    box-sizing: border-box;

    border:
        1px solid
        rgba(239, 61, 51, .35);

    border-radius: 10px;

    background:
        rgba(239, 61, 51, .08);

    color:
        #ff867c;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.profile-upload-label:hover {
    background:
        rgba(239, 61, 51, .15);

    border-color:
        rgba(239, 61, 51, .60);

    transform:
        translateY(-1px);
}

.profile-file-input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.profile-photo-help {
    display: block;

    margin-top: 8px;

    color:
        rgba(190, 199, 214, .55);

    font-size: 10px;

    text-align: center;
}


/* =========================================================
   SEGURIDAD
   ========================================================= */

.profile-form-section .muted {
    margin:
        -4px 0 11px;

    color:
        rgba(190, 199, 214, .58);

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   MENSAJES PERFIL
   ========================================================= */

.profile-message {
    min-height: 0;

    padding: 0;

    border-radius: 11px;

    font-size: 12px;

    line-height: 1.5;

    transition:
        padding .18s ease,
        opacity .18s ease;
}

.profile-message:not(:empty) {
    padding:
        12px 14px;
}

.profile-message.success {
    background:
        rgba(96, 151, 52, .12);

    border:
        1px solid
        rgba(96, 151, 52, .28);

    color:
        var(--ep-green-light);
}

.profile-message.error {
    background:
        rgba(239, 61, 51, .12);

    border:
        1px solid
        rgba(239, 61, 51, .30);

    color:
        #ff9b93;
}


/* =========================================================
   ACCIONES PERFIL
   ========================================================= */

.profile-form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding-top: 2px;
}

.profile-form-actions button {
    min-height: 43px;

    padding:
        10px 18px;

    border-radius:
        10px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.profile-form-actions button:hover {
    transform:
        translateY(-1px);
}

.profile-form-actions button:disabled {
    opacity: .55;

    cursor: wait;

    transform: none;
}

.profile-form-actions .secondary {
    background:
        rgba(255, 255, 255, .05);

    border:
        1px solid
        rgba(255, 255, 255, .10);

    color:
        #dce3ed;
}

.profile-form-actions .secondary:hover {
    background:
        rgba(255, 255, 255, .09);

    border-color:
        rgba(255, 255, 255, .18);
}

.profile-form-actions .btn {
    background:
        linear-gradient(
            135deg,
            var(--ep-red),
            var(--ep-red-dark)
        );

    border:
        1px solid
        rgba(255, 255, 255, .08);

    color: #fff;

    box-shadow:
        0 8px 22px
        rgba(239, 61, 51, .18);
}

.profile-form-actions .btn:hover {
    background:
        linear-gradient(
            135deg,
            #fa4a40,
            #e42e26
        );

    box-shadow:
        0 10px 28px
        rgba(239, 61, 51, .25);
}

.profile-form-actions .btn:focus-visible,
.profile-form-actions .secondary:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(239, 61, 51, .18);
}


/* =========================================================
   ALERTA PERFIL
   ========================================================= */

.alert.error {
    padding:
        14px 16px;

    background:
        rgba(239, 61, 51, .10);

    border:
        1px solid
        rgba(239, 61, 51, .25);

    border-radius:
        11px;

    color:
        #ff9b93;

    font-size: 12px;
}


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

@media (max-width: 1050px) {

    .grid,
    .grid2 {
        grid-template-columns: 1fr;
    }

    .ep-modules,
    .ep-quick-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


/* =========================================================
   RESPONSIVE 700PX
   ========================================================= */

@media (max-width: 700px) {

    .shell.admin-page {
        width:
            min(
                calc(100% - 18px),
                1500px
            );

        margin-top: 9px;
    }

    .ep-header-inner {
        width:
            calc(100% - 20px);
    }

    .ep-header {
        align-items:
            flex-start;

        padding: 14px;
    }

    .ep-header-actions {
        gap: 6px;
    }

    .ep-user-mini-info {
        display: none;
    }

    .ep-brand-logo {
        width: 54px;
        height: 54px;
    }

    .ep-brand-name {
        font-size: 14px;
    }

    .ep-brand-subtitle {
        font-size: 9px;
    }

    .ep-user-mini-avatar {
        width: 38px;
        height: 38px;
    }

    .ep-logout {
        min-height: 36px;

        padding:
            7px 11px;
    }

    .ep-dashboard {
        width:
            calc(100% - 24px);

        padding-top: 28px;
    }

    .ep-welcome {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .ep-welcome-photo {
        width: 72px;
        height: 72px;
    }

    .ep-profile {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .ep-profile-heading {
        align-items: center;

        flex-direction:
            column;
    }

    .ep-edit-profile {
        width: 100%;
    }

    .ep-profile-data {
        text-align: left;
    }

    .ep-modules,
    .ep-quick-grid {
        grid-template-columns: 1fr;
    }

    .ep-module {
        min-height: 160px;
    }

    .ep-modal {
        padding: 10px;
    }

    .ep-modal-content {
        width: 100%;

        max-height:
            calc(100vh - 20px);

        border-radius: 19px;
    }

    .ep-modal-header {
        padding:
            19px 17px 17px;
    }

    .ep-modal-body {
        padding: 17px;

        max-height:
            calc(100vh - 115px);
    }

    .ep-modal-header h2 {
        font-size: 17px;
    }

    .ep-modal-icon {
        width: 42px;
        height: 42px;

        min-width: 42px;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-field-full {
        grid-column: auto;
    }

    .profile-form-section {
        padding: 17px;
    }

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

    .profile-form-actions button {
        width: 100%;
    }

    .card {
        padding: 16px;

        border-radius: 14px;
    }

    .nav .btn {
        flex:
            1 1 45%;
    }

    .communication-recipient-box {
        max-height: 300px;
    }
}


/* =========================================================
   RESPONSIVE 540PX
   ========================================================= */

@media (max-width: 540px) {

    .ep-header-inner {
        min-height: 68px;
    }

    .ep-brand-name {
        max-width: 175px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }

    .ep-brand-subtitle {
        display: none;
    }

    .ep-user-mini-info {
        display: none;
    }

    .ep-logout {
        padding:
            0 11px;
    }

    .ep-profile {
        padding: 18px;
    }

    .ep-profile-data {
        grid-template-columns: 1fr;
    }

    .ep-modules,
    .ep-quick-grid {
        grid-template-columns: 1fr;
    }

    .ep-module {
        min-height: 190px;
    }

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

    .profile-form-actions button {
        width: 100%;
    }

    .profile-photo-container {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .profile-photo-container .profile-preview,
    .profile-photo-container .profile-avatar {
        align-self:
            center;
    }
}


/* =========================================================
   RESPONSIVE 420PX
   ========================================================= */

@media (max-width: 420px) {

    .ep-header {
        padding: 11px;
    }

    .ep-brand {
        gap: 8px;
    }

    .ep-brand-logo {
        width: 48px;
        height: 48px;

        border-radius: 12px;
    }

    .ep-brand-name {
        max-width: 145px;

        font-size: 13px;
    }

    .ep-header-actions {
        gap: 5px;
    }

    .ep-user-mini-avatar {
        width: 34px;
        height: 34px;

        font-size: 11px;
    }

    .ep-logout {
        min-height: 34px;

        padding:
            0 9px;

        font-size: 10px;
    }

    .ep-modal-header {
        gap: 10px;
    }

    .ep-modal-title {
        gap: 10px;
    }

    .ep-modal-eyebrow {
        font-size: 9px;
    }

    .ep-modal-header h2 {
        font-size: 15px;
    }

    .ep-close {
        width: 36px;
        height: 36px;

        min-width: 36px;
    }

    .ep-modal-body {
        padding: 12px;
    }

    .profile-form-section {
        padding: 14px;
    }

    .ep-profile {
        padding: 15px;
    }

    .ep-profile-name {
        font-size: 20px;
    }

    .card {
        padding: 14px;
    }

    .nav {
        display: grid;

        grid-template-columns: 1fr;
    }

    .nav .btn {
        width: 100%;
    }
}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }
}