:root {
    --green:#1f9d55;
    --dark:#172033;
    --muted:#64748b;
    --bg:#f3f7f4;
    --card:#fff;
    --line:#e5e7eb;
    --red:#ef4444;
    --blue:#0ea5e9;
    --orange:#f97316;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    font-family:Arial, sans-serif;
    background:var(--bg);
    color:var(--dark);
}

/* BLOQUEO COMPUTADORA */
.desktop-block {
    display:none;
}

@media (min-width:768px) {
    .app,
    .login {
        display:none !important;
    }

    .desktop-block {
        display:flex !important;
        min-height:100vh;
        align-items:center;
        justify-content:center;
        text-align:center;
        padding:40px;
        background:white;
    }

    .desktop-logo {
        max-width:250px;
        width:100%;
        height:auto;
        margin-bottom:20px;
    }
}

/* LOGIN */
.login {
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.login-box {
    width:100%;
    max-width:360px;
    background:white;
    padding:30px 20px;
    border-radius:22px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.login-box img {
    max-width:130px;
    width:100%;
    height:auto;
    margin-bottom:15px;
}

.alert {
    background:#fee2e2;
    color:#991b1b;
    padding:10px;
    border-radius:12px;
    margin-bottom:12px;
    font-size:14px;
}

.small {
    color:var(--muted);
    font-size:13px;
    margin-top:4px;
}

/* APP GENERAL */
.app {
    max-width:480px;
    min-height:100vh;
    margin:0 auto;
    background:linear-gradient(#ecfdf3,#f8fafc);
    padding-bottom:88px;
    box-shadow:0 0 30px rgba(0,0,0,.08);
}

.top {
    position:sticky;
    top:0;
    z-index:10;
    background:white;
    padding:16px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #eef2f7;
}

.top h1 {
    margin:0;
    font-size:18px;
    font-weight:900;
}

.icon-btn {
    border:0;
    background:#e9f9ef;
    color:var(--green);
    border-radius:999px;
    padding:9px 12px;
    text-decoration:none;
    font-weight:800;
}

.content {
    padding: 18px;
    padding-bottom: 130px !important;
}

.hello {
    font-size:25px;
    font-weight:900;
    margin:4px 0 2px;
}

.sub {
    color:var(--muted);
    font-size:14px;
    margin:0 0 18px;
}

.grid4 {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
}

.stat {
    border-radius:16px;
    color:white;
    padding:14px 8px;
    text-align:center;
    font-weight:900;
    box-shadow:0 4px 14px rgba(15,23,42,.08);
    text-decoration:none;
}

.stat b {
    display:block;
    font-size:26px;
}

.stat span {
    font-size:11px;
}

.green { background:var(--green); }
.orange { background:var(--orange); }
.blue { background:var(--blue); }
.purple { background:#8b5cf6; }

.section {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:26px 0 12px;
}

.section h2 {
    font-size:17px;
    margin:0;
}

.section a {
    color:var(--green);
    text-decoration:none;
    font-weight:800;
    font-size:13px;
}

.card {
    background:var(--card);
    border:1px solid var(--line);
    border-radius:18px;
    padding:15px;
    margin-bottom:12px;
    box-shadow:0 4px 14px rgba(15,23,42,.05);
}

.row {
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:inherit;
}

.emoji {
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:#ecfdf3;
    font-size:30px;
    flex:0 0 auto;
}

.grow {
    flex:1;
    min-width:0;
}

.title {
    font-weight:900;
}

.chev {
    color:#94a3b8;
    font-weight:900;
}

.split {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

/* FORMULARIOS */
.form label {
    display:block;
    margin:15px 0 7px;
    font-weight:900;
    font-size:14px;
}

input,
select,
textarea {
    width:100%;
    border:1px solid var(--line);
    border-radius:14px;
    padding:13px;
    font:inherit;
    background:white;
}

textarea {
    min-height:90px;
    resize:vertical;
}

.btn {
    display:block;
    width:100%;
    border:0;
    border-radius:16px;
    background:var(--green);
    color:white;
    padding:15px;
    font-weight:900;
    font-size:16px;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
    margin-top:18px;
}

.btn-light {
    background:#e9f9ef;
    color:var(--green);
    border:1px solid #bfe8cc;
}

.info {
    display:flex;
    justify-content:space-between;
    border-top:1px solid #eef2f7;
    padding:11px 0;
    font-size:14px;
}

.info span:first-child {
    color:var(--muted);
    font-weight:700;
}

.info span:last-child {
    font-weight:900;
    text-align:right;
}

.badge {
    display:inline-block;
    border-radius:999px;
    padding:5px 10px;
    background:#dcfce7;
    color:#15803d;
    font-size:12px;
    font-weight:900;
}

.danger {
    color:var(--red);
}

.calendar {
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:7px;
    text-align:center;
    font-size:13px;
}

.calendar div {
    padding:8px 0;
    border-radius:999px;
}

.calendar .today {
    background:var(--green);
    color:white;
    font-weight:900;
}

.bars {
    height:140px;
    display:flex;
    align-items:end;
    gap:12px;
    justify-content:center;
}

.bar {
    width:34px;
    background:#74d48a;
    border-radius:10px 10px 0 0;
}

/* MENÚ INFERIOR */

.bottom {
    position: fixed !important;
    left: 50% !important;
    bottom: 0 !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 480px !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    background: white !important;
    border-top: 1px solid var(--line);
    padding: 8px 4px 14px !important;
    z-index: 999999 !important;
}

.bottom a {
    text-align:center;
    text-decoration:none;
    color:#64748b;
    font-size:11px;
    font-weight:800;
    padding:5px 0;
}

.bottom a.active {
    color:var(--green);
}

.bottom b {
    display:block;
    font-size:19px;
    margin-bottom:2px;
}

/* LOGO DENTRO DEL SISTEMA */
.app-logo,
.header-logo,
.top img {
    max-width:90px;
    height:auto;
}

.rabbit-photo-card {
    padding: 10px;
    overflow: hidden;
}

.rabbit-photo {
    width: 100%;
    max-width: 100%;
    height: 260px;
    display: block;
    border-radius: 14px;
    object-fit: cover;
}

.bottom a {
    text-align: center !important;
    text-decoration: none !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 5px 0 !important;
}

.bottom a.active {
    color: #1f9d55 !important;
}

.bottom b {
    display: block !important;
    font-size: 19px !important;
    margin-bottom: 2px !important;
}

.content {
    padding-bottom: 130px !important;
}