

.rueda-app {
    width: 100%;
    padding: 0 24px 60px;
}

.rueda-contenedor {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}


/* =========================================================
   PORTADA
========================================================= */

.rueda-portada {
    padding: 48px 0 30px;
    text-align: center;
}

.rueda-etiqueta {
    margin: 0 0 10px;
    color: var(--anaranjado, #C9784A);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rueda-portada h1 {
    margin: 0 0 18px;
    color: var(--verde-bosque, #26382F);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 7vw, 58px);
    font-weight: 400;
    line-height: 1.05;
}

.rueda-portada > p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: var(--verde-bosque, #26382F);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   INTRODUCCIÓN
========================================================= */

.wheel-introduction {
    margin-bottom: 22px;
    padding: 28px;
    border-radius: 22px;
    background: var(--marfil, #E7E9E2);
    color: var(--verde-bosque, #26382F);
}

.section-title {
    margin: 0 0 14px;
    color: var(--verde-bosque, #26382F);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.wheel-introduction p {
    margin: 10px 0;
    line-height: 1.65;
}


/* =========================================================
   GUARDADO
========================================================= */

.wheel-storage-section {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 24px;
}

.wheel-storage-note {
    flex: 1;
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    background: var(--verde-salvia, #748878);
    color: var(--marfil, #E7E9E2);
}

.wheel-storage-note p {
    margin: 2px 0 8px;
    line-height: 1.5;
}

.wheel-storage-icon {
    font-size: 28px;
}


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

.button,
.wheel-reset-button,
.wheel-small-button,
.wheel-delete-button,
.wheel-rating-button,
.wheel-color-button {
    font-family: inherit;
    cursor: pointer;
}

.button,
.wheel-reset-button {
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--anaranjado, #C9784A);
    color: var(--marfil, #E7E9E2);
    font-weight: 700;
}

.wheel-reset-button {
    align-self: center;
    background: var(--verde-oliva, #465B4D);
}

.button-secondary {
    background: var(--verde-oliva, #465B4D);
}


/* =========================================================
   NAVEGACIÓN DE SUBRUEDAS
========================================================= */

.wheel-navigation {
    margin: 0 0 18px;
}

.wheel-breadcrumb {
    color: var(--verde-oliva, #465B4D);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.wheel-back-row {
    margin-top: 12px;
}


/* =========================================================
   ÁREA DE TRABAJO
========================================================= */

.wheel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.wheel-editor,
.wheel-results {
    padding: 26px;
    border-radius: 22px;
    background: var(--marfil, #E7E9E2);
    box-shadow: 0 12px 30px rgba(38, 56, 47, .08);
}

.wheel-instruction,
.wheel-chart-help,
.wheel-empty-message {
    color: var(--verde-bosque, #26382F);
    line-height: 1.6;
}


/* =========================================================
   ÁREAS
========================================================= */

.wheel-areas-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.wheel-area-row {
    padding: 18px;
    border-radius: 18px;
    background: #CDD6CB;
}

.wheel-area-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wheel-color-button {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 50%;
}

.wheel-area-name {
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid rgba(38,56,47,.12);
    border-radius: 12px;
    outline: none;
    background: var(--marfil, #E7E9E2);
    color: var(--verde-bosque, #26382F);
    font: inherit;
    font-weight: 700;
}


/* =========================================================
   CALIFICACIONES
========================================================= */

.wheel-rating-row {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    margin: 14px 0;
}

.wheel-rating-button {
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: rgba(70,91,77,.12);
    color: var(--verde-bosque, #26382F);
    font-size: 13px;
    font-weight: 700;
}

.wheel-rating-button.active {
    background: var(
        --wheel-area-color,
        var(--verde-oliva, #465B4D)
    );

    color: #fff;
}


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

.wheel-area-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wheel-small-button,
.wheel-delete-button {
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.wheel-small-button {
    border: 0;
    background: var(--verde-oliva, #465B4D);
    color: var(--marfil, #E7E9E2);
}

.wheel-delete-button {
    border: 1px solid rgba(38,56,47,.20);
    background: transparent;
    color: var(--verde-bosque, #26382F);
}

.wheel-add-row,
.wheel-download-row {
    margin-top: 18px;
    text-align: center;
}


/* =========================================================
   GRÁFICO
========================================================= */

.wheel-canvas-card {
    width: 100%;
    margin-top: 18px;
    padding: 10px;
    overflow: hidden;
    border-radius: 20px;
    background: #fffdf9;
}

#wheelCanvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
}


/* =========================================================
   REFLEXIÓN
========================================================= */

.wheel-reflection {
    margin-top: 24px;
    padding: 22px;
    border-radius: 18px;
    background: #CDD6CB;
    color: var(--verde-bosque, #26382F);
}

.wheel-reflection h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
}

.wheel-reflection p {
    line-height: 1.65;
}

.hidden {
    display: none !important;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 850px) {

    .wheel-layout {
        grid-template-columns:
            minmax(300px, .85fr)
            minmax(0, 1.15fr);

        align-items: start;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 699px) {

    .rueda-app {
        padding: 0 16px 40px;
    }

    .rueda-portada {
        padding-top: 34px;
    }

    .wheel-introduction,
    .wheel-editor,
    .wheel-results {
        padding: 20px;
    }

    .wheel-storage-section {
        flex-direction: column;
    }

    .wheel-reset-button {
        align-self: stretch;
    }

    .wheel-rating-row {
        grid-template-columns: repeat(5, 1fr);
    }

}

