﻿:root {
    --bg-main: #F3ECE4;
    --bg-soft: #FAF6F0;
    --card-bg: #FFFFFF;
    --text-main: #5A504B;
    --text-soft: #7A6F68;
    --text-dark: #1F1F1F;
    --border: #E3D8CD;
    --shadow: 0 12px 30px rgba(0,0,0,0.08);
    --btn-main: #6B5E57;
    --btn-hover: #514741;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    font-family: "Segoe UI", sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* NAVBAR */
.brulee-navbar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.brulee-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

    .brulee-brand img {
        height: 56px;
        max-width: 100%;
        object-fit: contain;
    }

/* CONTENEDOR */
.main-wrapper {
    padding: 20px 12px 30px 12px;
}

/* CARD */
.card-brulee {
    width: 100%;
    max-width: 980px;
    margin: auto;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* HEADER */
.card-header-brulee {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

    .card-header-brulee img {
        max-width: 320px;
        width: 100%;
        height: auto;
        margin-bottom: 12px;
    }

    .card-header-brulee h1 {
        margin: 0;
        font-size: 28px;
        letter-spacing: 1px;
        color: var(--text-main);
    }

    .card-header-brulee p {
        color: var(--text-soft);
        font-size: 15px;
        margin-top: 10px;
        line-height: 1.5;
    }

/* BODY */
.card-body-brulee {
    padding: 22px 16px;
}

/* TITULOS */
.section-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    color: var(--text-main);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
}

.form-control-brulee {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    font-size: 15px;
    min-height: 46px;
}

    .form-control-brulee:focus {
        outline: none;
        border-color: var(--btn-main);
        background: #fff;
    }

/* GRID DATOS */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* PREGUNTAS */
.question-box {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.question-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.5;
}

/* LISTAS */
.radio-list-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
}

    .radio-list-horizontal input[type="radio"] {
        accent-color: var(--btn-main);
        transform: scale(1.15);
        margin-right: 4px;
    }

.checkbox-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 8px 16px;
}

    .checkbox-list-grid input[type="checkbox"] {
        accent-color: var(--btn-main);
        transform: scale(1.1);
        margin-right: 6px;
    }

    .checkbox-list-grid table,
    .checkbox-list-grid tbody,
    .checkbox-list-grid tr,
    .checkbox-list-grid td {
        width: 100%;
    }

    .checkbox-list-grid label,
    .radio-list-horizontal label {
        color: var(--text-dark);
        font-weight: 500;
        font-size: 15px;
    }

/* BOTONES */
.btn-brulee,
.btn-secundario {
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    min-height: 46px;
    transition: .2s;
}

.btn-brulee {
    background: var(--btn-main);
    color: white;
}

    .btn-brulee:hover {
        background: var(--btn-hover);
    }

.btn-secundario {
    background: #8B7E76;
    color: #fff;
}

/* ALERTAS */
.alert-success {
    background: #E8F5EC;
    border: 1px solid #C8E6D3;
    color: #2E7D32;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert-error {
    background: #FDEAEA;
    border: 1px solid #F5C6C6;
    color: #B71C1C;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

/* FOOTER */
.footer-brulee {
    text-align: center;
    padding: 15px;
    color: var(--text-soft);
    font-size: 13px;
}

/* TABLAS */
.table-responsive-brulee {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-brulee {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 14px;
}

    .table-brulee th {
        background: #6B5E57;
        color: #fff;
        padding: 10px;
        text-align: left;
        border: 1px solid #ddd;
        white-space: nowrap;
    }

    .table-brulee td {
        padding: 10px;
        border: 1px solid #eee;
        color: #1F1F1F;
        vertical-align: top;
    }

    .table-brulee tr:nth-child(even) {
        background: #FAF6F0;
    }

/* BADGES */
.badge-score {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
}

.score-bajo {
    background: #C97A7A;
}

.score-medio {
    background: #D6A85D;
}

.score-alto {
    background: #6B8E6E;
}

/* CHARTS */
.chart-wrap {
    position: relative;
    width: 100%;
    min-height: 280px;
}

    .chart-wrap canvas {
        width: 100% !important;
        max-width: 100%;
        height: 280px !important;
    }

/* TABLET */
@media (max-width: 1024px) {
    .main-wrapper {
        padding: 16px 10px 24px 10px;
    }

    .card-header-brulee h1 {
        font-size: 24px;
    }

    .checkbox-list-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* TABLET VERTICAL / MOVIL GRANDE */
@media (max-width: 768px) {
    .brulee-brand img {
        height: 48px;
    }

    .card-header-brulee {
        padding: 20px 14px;
    }

        .card-header-brulee h1 {
            font-size: 22px;
        }

    .card-body-brulee {
        padding: 18px 14px;
    }

    .form-grid-3,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .checkbox-list-grid {
        grid-template-columns: 1fr;
    }

    .radio-list-horizontal {
        gap: 10px 12px;
    }

    .chart-wrap canvas {
        height: 240px !important;
    }
}

/* MOVIL */
@media (max-width: 480px) {
    .card-header-brulee img {
        max-width: 230px;
    }

    .card-header-brulee h1 {
        font-size: 20px;
    }

    .question-title {
        font-size: 15px;
    }

    .form-control-brulee {
        font-size: 14px;
    }

    .btn-brulee,
    .btn-secundario {
        width: 100%;
    }
}
