/* =============================================
   DRPOS BALNEARIO — Estilos Generales
   Paleta: Naranja, Verde, Turquesa, Azul Agua
   ============================================= */
:root {
    --primary-orange: #f57c00;
    --primary-orange-light: #ff9e4a;
    --primary-orange-dark: #e65100;
    --primary-green: #08752d;
    --primary-green-light: #6aa52c;
    --primary-green-dark: #054d1e;
    --secondary-green: #6aa52c;
    --turquoise: #20b9c2;
    --turquoise-light: #4ed0d8;
    --water-blue: #1d9ed6;
    --water-blue-light: #4ab8e5;
    --yellow: #ffc107;
    --yellow-light: #ffd54f;
    --soft-red: #ef4444;
    --soft-red-bg: #fee2e2;

    --background: #f5f7f8;
    --gradient-bg-1: #f0f9ff;
    --gradient-bg-2: #ecfdf5;
    --gradient-bg-3: #fff7ed;
    --card: #ffffff;
    --text-primary: #1f2d3d;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-light: #e5e7eb;
    --border-soft: #f1f5f9;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.1);
    --shadow-glow-orange: 0 8px 24px rgba(245, 124, 0, 0.25);
    --shadow-glow-green: 0 8px 24px rgba(8, 117, 45, 0.25);
    --shadow-glow-blue: 0 8px 24px rgba(29, 158, 214, 0.25);

    --sidebar-width: 280px;
    --sidebar-width-collapsed: 0px;
    --navbar-height: 80px;

    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--background);
    margin: 0;
    padding: 0;
}

body.app-body {
    background:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(29, 158, 214, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(106, 165, 44, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(245, 124, 0, 0.05) 0%, transparent 60%),
        var(--background);
    min-height: 100vh;
}

/* =============================================
   LOGIN — Diseño turístico y premium
   ============================================= */
.login-body {
    background: linear-gradient(135deg, #e0f2fe 0%, #ecfdf5 40%, #fff7ed 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.bg-ornament {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}
.bg-ornament-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(32, 185, 194, 0.5) 0%, transparent 70%);
    top: -120px; left: -100px;
    animation: float 8s ease-in-out infinite;
}
.bg-ornament-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(106, 165, 44, 0.45) 0%, transparent 70%);
    bottom: -150px; right: -100px;
    animation: float 10s ease-in-out infinite reverse;
}
.bg-ornament-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(245, 124, 0, 0.35) 0%, transparent 70%);
    top: 40%; left: 45%;
    animation: float 12s ease-in-out infinite;
}
.bg-leaves {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 80%, rgba(8, 117, 45, 0.05) 2px, transparent 3px),
        radial-gradient(circle at 85% 15%, rgba(32, 185, 194, 0.05) 2px, transparent 3px),
        radial-gradient(circle at 50% 50%, rgba(245, 124, 0, 0.04) 1.5px, transparent 2.5px);
    background-size: 80px 80px, 120px 120px, 100px 100px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.05); }
}

.login-card-row {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.7);
    overflow: hidden;
    max-width: 1150px;
    margin: 0 auto;
    min-height: 640px;
}

.login-hero-col {
    background:
        linear-gradient(135deg, rgba(8, 117, 45, 0.92) 0%, rgba(29, 158, 214, 0.88) 50%, rgba(245, 124, 0, 0.85) 100%);
    position: relative;
    overflow: hidden;
}
.login-hero-col::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 2px, transparent 3px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 3px);
    background-size: 60px 60px;
    opacity: 0.6;
    z-index: 1;
}
.login-hero-col::after {
    content: "";
    position: absolute;
    bottom: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.hero-logo-wrapper {
    width: 130px; height: 130px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    animation: pulse-soft 3s ease-in-out infinite;
}
@keyframes pulse-soft {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
    50% { transform: scale(1.04); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
}
.hero-logo {
    gap: 4px;
}

.hero-title {
    text-shadow: 0 4px 12px rgba(0,0,0,0.15);
    letter-spacing: -0.03em;
}

.hero-slogan {
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.25);
}
.feature-text {
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    font-size: 0.95rem;
}

.login-form-col {
    background: transparent;
}

.login-form-wrapper {
    max-width: 480px;
}

.form-title {
    color: var(--text-primary);
    font-size: 1.9rem;
}
.form-subtitle {
    font-size: 0.98rem;
}

.alert-login {
    border: 1px solid rgba(239, 68, 68, 0.15);
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.animate-shake { animation: shake 0.45s ease; }

.input-login-wrapper {
    position: relative;
}
.input-login-icon {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}
.input-login {
    height: 54px;
    padding-left: 52px;
    padding-right: 52px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    background: #fff;
    font-size: 0.98rem;
    transition: all 0.25s ease;
}
.input-login:focus {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8, 117, 45, 0.1);
    outline: none;
}
.input-login:focus + .input-login-icon,
.input-login-wrapper:focus-within .input-login-icon {
    color: var(--primary-green);
}

.btn-toggle-pass {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    border: none; background: transparent;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-toggle-pass:hover {
    background: var(--border-soft);
    color: var(--primary-green);
}

.form-check-login .form-check-input {
    width: 18px; height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
}
.form-check-login .form-check-input:checked {
    background: var(--primary-green);
    border-color: var(--primary-green);
}
.form-check-label {
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.link-forgot {
    color: var(--primary-orange);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.link-forgot:hover {
    color: var(--primary-orange-dark);
    text-decoration: underline !important;
}

.btn-login {
    height: 54px;
    border: none;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    color: #fff;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-glow-orange);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-orange-light) 0%, var(--primary-orange) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-login > * { position: relative; z-index: 2; }
.btn-login:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(245, 124, 0, 0.35);
}
.btn-login:hover::before { opacity: 1; }
.btn-login:active {
    transform: translateY(0);
}

.divider-or {
    position: relative;
    text-align: center;
}
.divider-or::before,
.divider-or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border-light);
}
.divider-or::before { left: 0; }
.divider-or::after { right: 0; }
.divider-or > span {
    background: transparent;
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.btn-quick-access {
    border: 2px solid var(--border-soft);
    background: #fff;
    transition: all 0.25s ease;
}
.btn-quick-access:hover {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, rgba(8, 117, 45, 0.06), rgba(106, 165, 44, 0.06));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-logo-wrapper-mobile {
    width: 80px; height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(8, 117, 45, 0.08), rgba(29, 158, 214, 0.08));
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center; justify-content: center;
}

/* =============================================
   LOGIN — Rediseño institucional (responsive)
   ============================================= */
.login-body {
    background: #eaf1fb;
    overflow-x: hidden;
}

.login-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 193, 7, 0.18), transparent 26%),
        radial-gradient(circle at 88% 88%, rgba(29, 111, 214, 0.18), transparent 24%),
        linear-gradient(145deg, #edf3fc 0%, #dfeafa 48%, #edf2fb 100%);
}

.login-ornament {
    position: absolute;
    border-radius: 50%;
    filter: blur(78px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.login-ornament-1 {
    width: 430px;
    height: 430px;
    top: -140px;
    left: -120px;
    background: radial-gradient(circle, rgba(13, 71, 161, 0.4), transparent 70%);
    animation: loginFloat 10s ease-in-out infinite;
}

.login-ornament-2 {
    width: 460px;
    height: 460px;
    right: -120px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.34), transparent 70%);
    animation: loginFloat 11s ease-in-out infinite reverse;
}

@keyframes loginFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(22px, -18px, 0); }
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 30px 70px rgba(30, 64, 175, 0.18), 0 12px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.login-brand,
.login-form-side {
    position: relative;
    overflow: hidden;
}

.login-brand {
    color: #fff;
    padding: 28px 22px 24px;
    background:
        linear-gradient(90deg, rgba(1, 28, 84, 0.94), rgba(6, 55, 139, 0.9)),
        linear-gradient(135deg, #0d47a1 0%, #082c6b 52%, #0b1d4f 100%);
}

.login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 68% 34%, rgba(255, 255, 255, 0.18), transparent 10%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 44%);
    pointer-events: none;
}

.login-brand > * {
    position: relative;
    z-index: 2;
}

.login-brand-corner {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.login-brand-corner-left {
    top: -2px;
    left: -2px;
    width: 168px;
    height: 96px;
    border-bottom-right-radius: 120px;
    background: linear-gradient(135deg, #ffc107 0%, #ffda5c 100%);
    box-shadow: 0 18px 36px rgba(255, 193, 7, 0.26);
}

.login-brand-corner-right {
    right: -18px;
    bottom: -18px;
    width: 150px;
    height: 116px;
    border-top-left-radius: 180px;
    background: linear-gradient(135deg, #ffc107 0%, #f59e0b 100%);
}

.login-brand-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-brand-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.login-brand-logo {
    display: grid;
    place-items: center;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.login-brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-brand-logo-primary {
    width: 230px;
    height: 86px;
    padding: 12px 18px;
    border-radius: 22px;
}

.login-logo-fallback {
    display: none;
    color: #fff;
    font-size: 2rem;
}

.login-brand-logo.is-fallback .login-logo-fallback {
    display: block;
}

.login-brand-copy {
    max-width: 500px;
}

.login-brand-kicker {
    margin: 0 0 2px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.login-brand-title {
    margin: 0;
    font-size: 2.35rem;
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.login-brand-title span {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 8px 14px;
    border-radius: 18px;
    color: #0d47a1;
    background: linear-gradient(135deg, #ffc107 0%, #ffd54f 100%);
}

.login-brand-sub {
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.login-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffc107;
}

.login-brand-highlight {
    margin-top: 18px;
}

.login-brand-highlight-top {
    margin: 0;
    font-size: 2rem;
    line-height: 0.96;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
}

.login-brand-highlight h2 {
    margin: 0;
    display: inline-block;
    font-size: 2.15rem;
    line-height: 0.98;
    font-weight: 900;
    color: #ffd54f;
    text-shadow: 0 10px 28px rgba(255, 193, 7, 0.2);
}

.login-brand-highlight h2::after {
    content: "";
    display: block;
    width: 88%;
    height: 6px;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffc107 0%, #ffd54f 100%);
}

.login-brand-showcase {
    display: grid;
    gap: 18px;
    margin-top: 22px;
    align-items: center;
}

.login-brand-features {
    list-style: none;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.login-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.96);
}

.lbf-ico {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.12rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.72);
}

.login-brand-stage {
    position: relative;
    display: none;
    width: 100%;
    max-width: 392px;
    height: 292px;
    margin: 0 auto;
}

.login-stage-receipt {
    position: absolute;
    left: 30px;
    bottom: 58px;
    width: 48px;
    height: 110px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #eef4ff 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    transform: rotate(-10deg);
}

.login-stage-receipt::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 9px;
    right: 9px;
    bottom: 14px;
    background:
        repeating-linear-gradient(180deg, #cbd5e1 0 3px, transparent 3px 10px);
}

.login-stage-device {
    position: absolute;
    right: 20px;
    bottom: 46px;
    width: 278px;
    border-radius: 20px;
    padding: 12px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
    transform: perspective(920px) rotateY(-18deg) rotateX(8deg);
    transform-style: preserve-3d;
}

.login-stage-device-top {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.login-stage-device-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.login-stage-device-screen {
    min-height: 154px;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
}

.login-stage-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.login-stage-toolbar div:first-child {
    width: 92px;
    height: 12px;
    border-radius: 999px;
    background: rgba(13, 71, 161, 0.12);
}

.login-stage-toolbar div:last-child {
    width: 56px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d47a1 0%, #1d6fd6 100%);
}

.login-stage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.login-stage-grid span {
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffe082 0%, #ffca28 100%);
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.18);
}

.login-stage-summary {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.login-stage-summary div {
    height: 10px;
    border-radius: 999px;
    background: rgba(13, 71, 161, 0.12);
}

.login-stage-summary div:last-child {
    width: 58%;
    background: rgba(255, 193, 7, 0.44);
}

.login-stage-base {
    position: absolute;
    right: 110px;
    bottom: 18px;
    width: 142px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #111827 0%, #000 100%);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.login-brand-quote {
    display: inline-block;
    margin-top: 8px;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 700;
    color: #fff7d6;
}

.login-brand-quote::after {
    content: "";
    display: block;
    width: 80%;
    height: 4px;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffc107 0%, #ffe082 100%);
}

.login-brand-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
}

.login-foot-divider {
    width: 2px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.92);
}

.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
}

.login-form-corner {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.login-form-corner-top {
    top: -18px;
    right: -18px;
    width: 122px;
    height: 122px;
    border-bottom-left-radius: 100%;
    background:
        radial-gradient(circle at 78% 18%, #ffc107 0 38%, transparent 39%),
        radial-gradient(circle at 100% 0%, #0d47a1 0 53%, transparent 54%);
}

.login-form-corner-bottom {
    left: -8px;
    bottom: -34px;
    width: 220px;
    height: 138px;
    background:
        radial-gradient(ellipse at 26% 100%, rgba(151, 198, 255, 0.82), transparent 54%),
        radial-gradient(ellipse at 36% 100%, rgba(29, 111, 214, 0.26), transparent 64%);
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
}

.login-card-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-card-logo {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    padding: 10px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    border: 1px solid rgba(13, 71, 161, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: 0 10px 24px rgba(13, 71, 161, 0.1);
}

.login-card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-card-logo.is-fallback .login-logo-fallback {
    display: block;
    color: #0d47a1;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #0d47a1;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.1), rgba(13, 71, 161, 0.16));
}

.login-card-head h2 {
    margin: 18px 0 6px;
    font-size: 2.2rem;
    line-height: 1.05;
    font-weight: 800;
    color: #102a72;
}

.login-card-head p {
    margin: 0 0 26px;
    font-size: 1rem;
    color: #5b6475;
}

.login-card-foot {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4b5563;
}

.alert-login {
    border-radius: 18px;
    border: 1px solid rgba(239, 68, 68, 0.14);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.input-login-wrapper {
    position: relative;
}

.input-login-icon {
    color: #8b90a0;
}

.input-login {
    height: 62px;
    padding-left: 54px;
    padding-right: 52px;
    border-radius: 18px;
    border: 1px solid rgba(156, 163, 175, 0.36);
    background: #fff;
    font-size: 1.02rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.input-login:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
}

.input-login:focus + .input-login-icon,
.input-login-wrapper:focus-within .input-login-icon {
    color: #0d47a1;
}

.btn-toggle-pass:hover {
    color: #0d47a1;
}

.form-check-login .form-check-input {
    width: 19px;
    height: 19px;
    border-radius: 6px;
}

.form-check-login .form-check-input:checked {
    background: linear-gradient(135deg, #0d47a1 0%, #1d6fd6 100%);
    border-color: #0d47a1;
}

.link-forgot {
    color: #0d47a1;
    font-weight: 700;
}

.link-forgot:hover {
    color: #082c6b;
}

.login-form-options {
    gap: 14px;
}

.btn-login {
    height: 56px;
    border: none;
    color: #fff;
    font-size: 1.04rem;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    box-shadow: 0 14px 32px rgba(13, 71, 161, 0.26);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.btn-login > * {
    position: relative;
    z-index: 2;
}

.btn-login:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(13, 71, 161, 0.34);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
}

.divider-or::before,
.divider-or::after {
    background: rgba(148, 163, 184, 0.3);
}

.divider-or > span {
    color: #314163;
    font-weight: 800;
    background: transparent;
}

.quick-access-grid {
    margin-top: 8px;
}

.login-quick-access-panel {
    margin-top: 18px;
    padding: 6px 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.btn-quick-access {
    min-height: 68px;
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.btn-quick-access:hover {
    border-color: #0d47a1;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05), rgba(255, 193, 7, 0.08));
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(13, 71, 161, 0.12);
}

@media (min-width: 992px) {
    .login-shell {
        padding: 30px;
    }

    .login-container {
        flex-direction: row;
        min-height: 720px;
    }

    .login-brand {
        flex: 0 0 59%;
        padding: 42px 38px 34px;
    }

    .login-form-side {
        flex: 0 0 41%;
        padding: 40px 36px;
    }

    .login-brand-title {
        font-size: 4.15rem;
    }

    .login-brand-kicker {
        font-size: 1.32rem;
    }

    .login-brand-sub {
        font-size: 1rem;
    }

    .login-brand-highlight {
        margin-top: 22px;
    }

    .login-brand-showcase {
        grid-template-columns: minmax(0, 1fr) 392px;
        gap: 20px;
        margin-top: 24px;
    }

    .login-brand-highlight-top {
        font-size: 3.05rem;
    }

    .login-brand-highlight h2 {
        font-size: 3.2rem;
    }

    .login-brand-features li {
        font-size: 1rem;
    }

    .login-brand-stage {
        display: block;
        margin: 0;
    }

    .login-brand-quote {
        font-size: 1.95rem;
    }

    .login-brand-foot {
        position: absolute;
        left: 38px;
        right: 38px;
        bottom: 24px;
        margin-top: 0;
    }
}

@media (max-width: 991.98px) {
    .login-brand-corner-right,
    .login-form-corner-bottom {
        display: none;
    }

    .login-brand-logo-primary {
        width: 182px;
        height: 68px;
    }

    .login-brand-title {
        font-size: 2.4rem;
    }

    .login-brand-highlight-top {
        font-size: 1.9rem;
    }

    .login-brand-highlight h2 {
        font-size: 2rem;
    }

    .login-card-head h2 {
        font-size: 1.95rem;
    }

    .login-card-logo {
        width: 62px;
        height: 62px;
        border-radius: 18px;
    }

    .login-form-options {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

/* =============================================
   LAYOUT PRINCIPAL — Sidebar + Navbar
   ============================================= */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin-left: 0;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fffb 50%, #fffbf5 100%);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-light);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-brand {
    border-bottom: 1px solid var(--border-soft);
    margin: 0 4px;
    padding: 9px 20px 9px !important;
}
.brand-logo-wrap {
    width: 110px; height: 110px;
}
.brand-logo {
    width: 110px; height: 110px;
    border-radius: 36px;
    background: #fff;
    border: 2px solid rgba(8, 117, 45, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 28px rgba(8, 117, 45, 0.12);
    position: relative;
    overflow: hidden;
    padding: 6px;
}
.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
}
.brand-logo::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 180deg, rgba(245,124,0,0.15), transparent, rgba(29,158,214,0.15));
    animation: rotateSlow 10s linear infinite;
    z-index: 1;
}
@keyframes rotateSlow {
    to { transform: rotate(360deg); }
}
.logo-ico-group {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3px;
    align-items: center;
}
.logo-ico-sun {
    font-size: 1.2rem;
    color: var(--yellow);
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.4));
}
.logo-ico-water {
    font-size: 1.3rem;
    color: var(--water-blue);
    filter: drop-shadow(0 2px 4px rgba(29, 158, 214, 0.4));
}
.logo-ico-tree {
    font-size: 1.2rem;
    color: var(--primary-green);
    filter: drop-shadow(0 2px 4px rgba(8, 117, 45, 0.4));
}
.brand-logo-ring {
    position: absolute;
    inset: -6px;
    border-radius: 30px;
    border: 1px dashed rgba(245, 124, 0, 0.3);
    animation: rotateSlow 20s linear infinite reverse;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.nav-section-title {
    font-size: 0.7rem !important;
    letter-spacing: 0.15em;
    opacity: 0.85;
}

.nav-sidebar {
    padding: 8px;
}

.nav-link-sidebar {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-md) !important;
    transition: all 0.25s ease;
    overflow: hidden;
    font-size: 0.9rem;
    margin-bottom: 2px;
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.nav-link-sidebar::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 0 4px 4px 0;
    transition: all 0.25s ease;
}
.nav-link-sidebar:hover {
    color: var(--primary-green);
    background: linear-gradient(90deg, rgba(106, 165, 44, 0.08), rgba(32, 185, 194, 0.04));
    transform: translateX(2px);
}
.nav-link-sidebar:hover::before {
    background: var(--primary-green-light);
    width: 4px;
}

.nav-link-icon {
    width: 30px; height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-soft);
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
}
.nav-link-sidebar:hover .nav-link-icon {
    background: linear-gradient(135deg, rgba(106, 165, 44, 0.1), rgba(8, 117, 45, 0.15));
    color: var(--primary-green);
    border-color: rgba(8, 117, 45, 0.2);
    transform: scale(1.05);
}

.nav-link-sidebar.active {
    background: linear-gradient(135deg, #08752d 0%, #1d9ed6 100%);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(8, 117, 45, 0.25);
    position: relative;
}
.nav-link-sidebar.active::before {
    background: var(--yellow);
    width: 4px;
}
.nav-link-sidebar.active .nav-link-icon {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.nav-link-sidebar.active .nav-link-text {
    color: #fff;
}

.nav-active-indicator {
    width: 24px; height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    animation: slideIndicator 0.35s ease;
}
@keyframes slideIndicator {
    from { transform: translateX(-8px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 10px; }

.sidebar-card-caja {
    background: linear-gradient(135deg, #08752d 0%, #08752d 30%, #1d9ed6 100%);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 24px rgba(8, 117, 45, 0.25);
}
.card-caja-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 193, 7, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
}
.pulse-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: currentColor;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
}
.pulse-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    opacity: 0.6;
}
@keyframes pulseDot {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

.sidebar-user-card {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.8), rgba(236, 253, 245, 0.8));
    border: 1px solid var(--border-soft);
    transition: all 0.2s ease;
}
.sidebar-user-card:hover {
    background: linear-gradient(135deg, rgba(255, 247, 237, 1), rgba(236, 253, 245, 1));
    transform: translateY(-1px);
}
.user-avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.2);
}

/* Navbar superior */
.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.85) 100%);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 0;
}
.navbar-inner {
    min-height: var(--navbar-height);
}

.btn-sidebar-toggle {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    color: #fff;
    box-shadow: var(--shadow-glow-orange);
    transition: all 0.25s ease;
}
.btn-sidebar-toggle:hover {
    transform: rotate(-90deg) scale(1.08);
    background: linear-gradient(135deg, var(--primary-orange-dark) 0%, var(--primary-orange) 100%);
    color: #fff;
}

.navbar-date-wrap, .navbar-time-wrap {
    padding: 4px 12px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.7), rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-soft);
    min-width: 130px;
}
.navbar-time-wrap {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.7), rgba(255, 255, 255, 0.9));
}

.navbar-caja-wrap {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.85) 0%, rgba(224, 242, 254, 0.7) 100%);
    border: 1px solid rgba(8, 117, 45, 0.1);
    min-width: 170px;
}
.caja-icon-wrap {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(8, 117, 45, 0.2);
}

.btn-ghost-navbar {
    width: 42px; height: 42px;
    background: #fff;
    color: var(--text-secondary);
    border: 1px solid var(--border-light) !important;
    transition: all 0.2s ease;
}
.btn-ghost-navbar:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange-light) !important;
    background: rgba(245, 124, 0, 0.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.navbar-badge {
    top: 6px; right: 6px;
    width: 18px; height: 18px;
    background: linear-gradient(135deg, var(--soft-red), var(--primary-orange));
    font-size: 0.62rem;
    border: 2px solid #fff;
}

.btn-user-profile {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 253, 245, 0.6));
    border: 1px solid var(--border-light) !important;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.btn-user-profile:hover {
    border-color: var(--primary-green) !important;
    background: linear-gradient(135deg, #fff, rgba(236, 253, 245, 0.9));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.user-avatar-sm {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: #fff;
    font-size: 1rem;
}
.user-avatar-lg {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--water-blue) 0%, var(--turquoise) 100%);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(29, 158, 214, 0.3);
}

.dropdown-menu-user {
    min-width: 290px;
    animation: dropdownIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-menu-user .dropdown-item {
    transition: all 0.2s ease;
    border-radius: 12px !important;
    font-weight: 500;
    font-size: 0.93rem;
    color: var(--text-primary);
    margin: 2px 0;
}
.dropdown-menu-user .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(106, 165, 44, 0.08), rgba(32, 185, 194, 0.04));
    color: var(--primary-green);
    transform: translateX(2px);
}
.dropdown-item-logout {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.04), rgba(245, 124, 0, 0.04));
    color: var(--soft-red) !important;
}
.dropdown-item-logout:hover {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), rgba(245, 124, 0, 0.08)) !important;
    color: var(--soft-red) !important;
}
.logout-icon-wrap {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--soft-red), var(--primary-orange));
    color: #fff;
    font-size: 0.9rem;
}

/* Main content */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 28px 0;
    transition: padding 0.35s ease;
}

.app-footer {
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
}

/* Sidebar responsive backdrop */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* =============================================
   MODULE PLACEHOLDER (pantallas en desarrollo)
   ============================================= */
.module-placeholder {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}
.module-placeholder-illustration {
    width: 180px; height: 180px;
    border-radius: 60px;
    background:
        linear-gradient(135deg, rgba(29, 158, 214, 0.12) 0%, rgba(106, 165, 44, 0.14) 50%, rgba(245, 124, 0, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 28px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 20px 40px rgba(0,0,0,0.06);
    border: 1.5px solid var(--border-soft);
    animation: float 6s ease-in-out infinite;
}
.module-placeholder-illustration i {
    font-size: 5.5rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.module-placeholder-illustration::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 64px;
    border: 1px dashed rgba(245, 124, 0, 0.25);
    animation: rotateSlow 30s linear infinite;
}

.badge-in-development {
    background: linear-gradient(135deg, var(--yellow), var(--primary-orange-light));
    color: #fff;
    border-radius: 999px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(245, 124, 0, 0.25);
}

/* =============================================
   Responsive
   ============================================= */
@media (min-width: 992px) {
    .app-wrapper {
        margin-left: var(--sidebar-width);
    }
    .app-wrapper.sidebar-collapsed {
        margin-left: 0;
    }
    .sidebar-backdrop {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
    .app-main {
        padding: 16px 16px 0;
    }
    .navbar-caja-wrap { display: none !important; }
}

@media (max-width: 576px) {
    .navbar-date-wrap, .navbar-time-wrap { display: none; }
    .app-main { padding: 12px 10px 0; }
    :root { --navbar-height: 70px; }
    .btn-sidebar-toggle { width: 40px; height: 40px; }
}
