.imagenes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.imagen-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
}


@media (max-width: 600px) {
    .imagenes-container {
        grid-template-columns: 1fr;
    }
}
:root {
    --background: #f7f4ef;
    --white: #fffefa;
    --beige: #eee8df;
    --lilac: #a99abb;
    --dark-lilac: #786794;
    --text: #39352f;
    --muted: #918a82;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    display: flex;
}

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
    transition: .2s;
}

button:hover {
    transform: translateY(-2px);
}



.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    background: var(--white);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8e1d8;
}

.logo {
    font-size: 28px;
    color: var(--dark-lilac);
    font-weight: bold;
}

.logo span {
    font-family: Georgia, serif;
}

.subtitle {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 2px;
    margin: 8px 0 25px;
}

nav {
    display: grid;
    gap: 10px;
}

nav button {
    border: none;
    background: transparent;
    text-align: left;
    padding: 13px;
    border-radius: 10px;
    color: var(--muted);
}

nav button:hover {
    background: #eee8f5;
    color: var(--dark-lilac);
}

.theme-button {
    margin-top: auto;
    padding: 12px;
    background: var(--beige);
    border: none;
    border-radius: 10px;
}



main {
    margin-left: 240px;
    width: calc(100% - 240px);
    padding: 35px 5%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1, h2, h3 {
    font-family: Georgia, serif;
}

header h1 {
    font-size: 30px;
}

.page {
    display: none;
    animation: appear .3s ease;
}

.page.active {
    display: block;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.hero {
    background: #eee8f2;
    border-radius: 22px;
    padding: 40px;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 35px;
    line-height: 1.2;
}

.hero em {
    color: var(--dark-lilac);
}

.section-title {
    font-size: 25px;
    margin-top: 30px;
}

.description {
    color: var(--muted);
    font-size: 13px;
}



.primary, .secondary, .delete {
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    margin: 5px 3px;
}

.primary {
    background: var(--dark-lilac);
    color: white;
}

.secondary {
    background: #eee8f5;
    color: var(--dark-lilac);
}

.delete {
    background: #f6e6df;
    color: #a56c5b;
}



.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat, .panel {
    background: var(--white);
    padding: 22px;
    border-radius: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 25px #51452d0a;
}

.stat span {
    font-size: 23px;
    color: var(--dark-lilac);
}

.stat p {
    color: var(--muted);
    font-size: 12px;
}

.stat h2 {
    font-size: 28px;
    margin: 8px 0;
}



form {
    display: grid;
    gap: 12px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5ded5;
    border-radius: 10px;
    background: #fffdfa;
    color: var(--text);
}

textarea {
    resize: vertical;
}



.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--background);
    padding: 13px;
    margin-top: 10px;
    border-radius: 10px;
}

.task-item input {
    width: auto;
}

.task-info {
    flex: 1;
}

.task-info strong {
    display: block;
    font-size: 13px;
}

.task-info small {
    color: var(--muted);
}

.task-item.done strong {
    text-decoration: line-through;
    opacity: .5;
}



.timer-panel {
    text-align: center;
}

.timer-options {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.timer-options button {
    background: var(--beige);
    border: none;
    padding: 10px;
    border-radius: 20px;
}

#timer {
    font-family: Georgia, serif;
    font-size: 75px;
    margin: 35px 0;
    color: var(--dark-lilac);
    font-variant-numeric: tabular-nums;
}
/* POMODORO LAYOUT */

.pomodoro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 25px;
}

/* IMAGEN */

.pomodoro-image {
    background: #eee8df;
    padding: 18px;
    border-radius: 22px;
    text-align: center;
}

.pomodoro-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
}

.pomodoro-image h3 {
    color: #766386;
    margin-top: 15px;
}

.pomodoro-image p {
    color: #918792;
    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 700px) {
    .pomodoro-layout {
        grid-template-columns: 1fr;
    }

    .pomodoro-image img {
        height: 200px;
    }
}
.pomodoro-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pomodoro-images img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
}



.card-panel {
    text-align: center;
}

.flashcard {
    width: 100%;
    min-height: 210px;
    background: #eee8f5;
    border: none;
    border-radius: 18px;
    margin: 15px 0;
    padding: 25px;
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 22px;
}


.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.note {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    overflow-wrap: anywhere;
}

.note p {
    white-space: pre-wrap;
    font-size: 12px;
    color: var(--muted);
}

/* GRÁFICAS */

.chart-panel {
    max-width: 600px;
}

.chart-panel canvas {
    max-height: 300px;
}

progress {
    width: 100%;
    accent-color: var(--dark-lilac);
}

footer {
    margin-top: 40px;
    padding: 20px 0;
    color: var(--muted);
    font-size: 11px;
}



body.dark {
    --background: #211f25;
    --white: #302c35;
    --beige: #403a45;
    --text: #f2eee9;
    --muted: #b1a8b4;
    --dark-lilac: #b6a5d1;
}

body.dark input,
body.dark textarea,
body.dark select {
    background: #39343e;
    color: white;
    border-color: #514b56;
}

body.dark .hero,
body.dark .flashcard {
    background: #393342;
    color: white;
}



@media (max-width: 900px) {
    .sidebar {
        width: 190px;
    }

    main {
        margin-left: 190px;
        width: calc(100% - 190px);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    body {
        display: block;
    }

    main {
        margin: 0;
        width: 100%;
        padding: 20px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 25px;
    }

    .hero h2 {
        font-size: 27px;
    }

    header {
        align-items: flex-start;
        gap: 10px;
    }
}
