:root {
    --primary: #FBC42E;
    --primary-hover: #e1b029;
    --dark: #2D2A26;
    --card: rgba(0, 0, 0, 0.2);
}

@font-face {
    font-family: 'IBMPlexSans Italic';
    src: url(../assets/fonts/IBMPlexSans-Italic.ttf);
}

@font-face {
    font-family: 'IBMPlexSans';
    src: url(../assets/fonts/IBMPlexSans.ttf);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: 'IBMPlexSans';
    background-color: var(--dark);
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 25px 25px;
    padding: 20px;
}


.header {
    text-align: center;
    margin-bottom: 20px;
}

.header img {
    width: 60px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.header h1 {
    color: var(--primary);
    font-size: 24px;
    letter-spacing: 1px;
}

.subtitulo {
    color: #ccc;
    font-size: 14px;
}


.container {
    max-width: 600px;
    margin: auto;
    background: linear-gradient(145deg, var(--primary), var(--primary-hover));
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.pregunta {
    background-color: var(--card);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: 0.2s;
}

.pregunta:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.label-pregunta {
    font-weight: bold;
    font-size: 14px;
}

.label-pregunta span {
    color: red;
}


.opciones {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.opciones label {
    flex: 1;
    cursor: pointer;
}

.opciones input {
    display: none;
}

.opciones span {
    display: block;
    padding: 8px;
    text-align: center;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    font-weight: bold;
}


.opciones input:checked+span {
    background-color: var(--dark);
    color: var(--primary);
}


button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: var(--dark);
    color: var(--primary);
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-2px);
    background-color: #1f1d1a;
}


#estadoFinal {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}



.campo {
    margin-bottom: 15px;
}

.campo span {
    color: red;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
}

.campo input,
.campo textarea,
.campo select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    margin-top: 5px;
    background-color: rgba(0, 0, 0, 0.2);


    transition: 0.2s;
}

.campo input::placeholder {
    color: #2D2A26;
}

.campo textarea::placeholder {
    color: #2D2A26;
}

.campo input:focus,
.campo select:focus {
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 2px var(--secondary-cv);
}

.campo select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #2D2A26 50%),
        linear-gradient(135deg, #2D2A26 50%, transparent 50%);
    background-position: calc(100% - 15px) calc(50% - 3px),
        calc(100% - 10px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}



.campo input:valid,
.campo select:valid {
    box-shadow: 0 0 0 2px var(--dark);
}

.resumen {
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    display: none;
}

.resumen h3 {
    margin-bottom: 10px;
    color: var(--primary-cv);
}

.item-resumen {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.estado-ok {
    color: #388E3C;
    font-weight: bold;
}

.estado-no {
    color: #D32F2F;
    font-weight: bold;
}

.estado-final {
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

#formChecklist {
    margin-top: 10px;
}

.d-flex {
    display: flex;
    gap: 10px;
}

#resumen_data {
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (max-width: 600px) {

    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .opciones {
        flex-direction: column;
    }

    .opciones span {
        padding: 10px;
    }
}