/* ======== FONDO GENERAL ======== */
body {
    background: linear-gradient(135deg, #d4ffcc, #c0ffb0, #d4ffcc);
    background-size: 400% 400%;
    animation: bgMove 12s ease infinite;
    color: #003300;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ======== HEADER ======== */
header {
    background: linear-gradient(90deg, #9aff9a, #b6ff9e);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
}

#header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

#logo-text {
    font-size: 48px;
    font-weight: bold;
    color: #003300;
    text-shadow: 0 0 8px #7fe57f;
}

#logo-img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 8px #7fe57f);
    animation: logoPop 0.8s ease-out;
}

@keyframes logoPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ======== BOTÓN MODO OSCURO ======== */
#darkToggle {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 40px;
    cursor: pointer;
}

/* ======== MENÚ PRINCIPAL ======== */
#dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 10px;
}

.card {
    background: linear-gradient(180deg, #1a1f1a, #2a332a);
    padding: 40px;
    width: 98%;
    max-width: 750px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 48px;
    transition: 0.25s;
    border: 3px solid #8cff8c;
    color: #caffca;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    position: relative;
}

/* ICONOS DEL MENÚ */
.card::before {
    font-size: 70px;
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    animation: glow 2s infinite ease-in-out;
}

.card:nth-child(1)::before { content: "🌡️"; }
.card:nth-child(2)::before { content: "📊"; }
.card:nth-child(3)::before { content: "⚙️"; }
.card:nth-child(4)::before { content: "🔧"; }
.card:nth-child(5)::before { content: "📈"; }

@keyframes glow {
    0% { filter: drop-shadow(0 0 2px #7fe57f); }
    50% { filter: drop-shadow(0 0 10px #7fe57f); }
    100% { filter: drop-shadow(0 0 2px #7fe57f); }
}

.card:hover {
    background: #2f3f2f;
    transform: scale(1.05);
}

/* ======== PÁGINAS ======== */
.page {
    display: none;
    padding: 15px;
    animation: fadeZoom 0.5s ease-out;
}

@keyframes fadeZoom {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* ======== TÍTULOS ======== */
.page h2 {
    font-size: 52px;
    background: #003300;
    color: #caffca;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow: 0 0 14px #7fe57f;
}

/* ======== VALORES ACTUALES ======== */
.valueBox {
    background: #e6ffe6;
    padding: 28px;
    margin: 22px auto;
    border-radius: 16px;
    width: 98%;
    max-width: 750px;
    border: 3px solid #7fe57f;
    font-size: 48px;
    color: #003300;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ICONOS GIGANTES */
.valueBox span.icon {
    font-size: 70px;
    margin-left: 20px;
}

/* ======== SETPOINTS ======== */
.setRow {
    background: #e6ffe6;
    padding: 20px;
    margin: 18px auto;
    border-radius: 16px;
    width: 98%;
    max-width: 750px;
    border: 3px solid #7fe57f;
    font-size: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setRow .icon {
    font-size: 70px;
    margin-left: 20px;
}

.setRow button {
    width: auto;
    padding: 18px 24px;
    font-size: 48px;
    margin-left: 12px;
}

/* ======== MODOS ======== */
.modeRow {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.modeRow button {
    flex: 1;
    padding: 26px;
    font-size: 48px;
    border-radius: 16px;
}

/* ======== BOTONES GENERALES ======== */
button {
    padding: 30px;
    margin: 14px auto;
    background: linear-gradient(180deg, #9aff9a, #7fe57f);
    color: #003300;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 48px;
    font-weight: bold;
    transition: 0.15s;
    width: 98%;
    max-width: 750px;
}

button:active {
    transform: scale(0.95);
}

/* ======== MODO OSCURO ======== */
.dark body {
    background: #0d0d0d;
    color: white;
}

.dark .card {
    background: #111;
    color: #b6ff9e;
    border-color: #7fe57f;
}

.dark button {
    background: linear-gradient(180deg, #4cff4c, #2aff2a);
    color: black;
}

.dark .valueBox,
.dark .setRow {
    background: #222;
    color: #b6ff9e;
    border-color: #7fe57f;
}