#form-denuncia {
    width: 100%;
    display: flex;
    justify-content: center;
}

.denuncia-info-box {
    background-color: white;
    box-shadow: 0 1px 5px 0 rgba(0,0,0,0.3);
    padding: 25px 40px;
    border-radius: 10px;
    margin: 0 0 30px 0;
    border-top: 10px solid var(--color-secondary);
    text-align: center;
    font-size: 14px;
    color: #333;
    width: 100%;
}

.faltas-section {
    margin: 0 0 30px 0;
    width: 100%;
    text-align: center;
}

.faltas-header {
    position: relative;
    padding: 27px 50px 20px;
    border-radius: 8px;
    color: white;
    font-size: 21px;
    font-weight: 500px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faltas-toggle-icon {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    font-size: 20px;
    transition: transform 0.3s;
}

.faltas-header:hover {
    opacity: 0.9;
}

.faltas-toggle-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

/* CORRECCIÓN: Mejorar el contenedor de las imágenes */
.infraccion-opcion {
    background-color: white;
    border-radius: 2px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 300px;
    box-sizing: border-box;
}

.infraccion-opcion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.infraccion-opcion-ng.selected {
    background-color: #365947;
}

.infraccion-opcion-g.selected {
    background-color: #544747;
}

.infraccion-opcion-p.selected {
    background-color: #386D6E;
}

.infraccion-opcion-dhc.selected {
    background-color: #223D27;
}

/* CORRECCIÓN: Asegurar que las imágenes se ajusten correctamente */
.infraccion-opcion img {
    max-width: 100%;
    max-height: 100%;
    width: 300px;
    height: auto;
    object-fit: contain;
    display: block;
}

.responsable-opcion {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.responsable-opcion:hover {
    background-color: #f0f0f0;
}

.responsable-opcion input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    cursor: pointer;
    flex-shrink: 0;
    /* ESTAS LÍNEAS SON CRÍTICAS - Sin ellas no funciona */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    /* Estilos del borde */
    border: 2px solid #5a9f8f;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Hover del checkbox */
.responsable-opcion input[type="checkbox"]:hover {
    border-color: #7bc4af;
    background-color: #f0f9f6;
}

/* Checkbox cuando está marcado */
.responsable-opcion input[type="checkbox"]:checked {
    background-color: #7bc4af; /* Verde claro */
    border-color: #7bc4af;
}

/* El check (palomita) dentro del checkbox */
.responsable-opcion input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; /* Color de la palomita */
    font-size: 18px; /* Tamaño de la palomita */
    font-weight: bold;
}

.denuncia-btn-siguiente {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 15px 60px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    transition: background-color 0.3s;
}

.denuncia-btn-siguiente:hover {
    background-color: var(--color-secondary);
}

.info-denuncia {
    background-color: #d4e8e3;
    border-left: 10px solid #5a9f8f;
    border-radius: 5px;
    padding: 20px;
    width: 100%;
    margin: 10px 0 30px 0;
}

.info-box-denuncia {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon-denuncia {
    color: #5a9f8f;
    font-size: 20px;
    margin-top: -4px;
    flex-shrink: 0;
}

.info-title-denuncia {
    color: #2c5f57;
    font-weight: 800px;
    margin: 0;
}

.info-title-denuncia-2{
    color: #2c5f57;
    font-weight: lighter;
    margin: 0;
}

.info-list-denuncia {
    list-style: none;
    padding-left: 52px;
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: lighter;
}

.info-list-denuncia li {
    color: #2c5f57;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 1px;
    position: relative;
    padding-left: 15px;
}

.info-list-denuncia li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5f57;
    font-weight: bold;
}

.info-footer-denuncia {
    padding-left: 32px;
    color: #2c5f57;
    font-size: 13px;
}

.faltas-header {
    position: relative;
    padding: 27px 50px 20px;
    border-radius: 8px;
    color: white;
    font-size: 21px;
    font-weight: 500px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faltas-title {
    margin: 0;
}

.faltas-toggle-icon {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
}


.faltas-toggle-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

.faltas-toggle-icon.open {
    transform: rotate(180deg);
}

/* Colores de headers */
.faltas-header.faltas-no-graves {
    background-color: #75A19B;
}

.faltas-header.faltas-graves {
    background-color: #706F6F;
}

.faltas-header.faltas-particulares {
    background-color: #69B19B;
}

.faltas-header.hechos-corrupcion {
    background-color: #366A5E;
}

/* Colores de contenido - DEBEN COINCIDIR CON LOS HEADERS */
.faltas-content.faltas-no-graves {
    background-color: #75A19B;
}

.faltas-content.faltas-graves {
    background-color: #706F6F;
}

.faltas-content.faltas-particulares {
    background-color: #69B19B;
}

.faltas-content.hechos-corrupcion {
    background-color: #366A5E;
}

/* CORRECCIÓN: Mejorar el comportamiento del colapso */
.faltas-content {
    position: relative;
    padding: 0;
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faltas-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;

    /* Imagen con opacidad controlada */
    background-image: url('../image/circulos_sesea.png');

    background-repeat: no-repeat;
    background-position: center;
    background-size: 810px 810px;
    filter: opacity(0.25);
}


.faltas-content > * {
    position: relative;
    z-index: 1;
}

.faltas-content.open {
    max-height: 3000px;
    padding: 20px;
}

.faltas-content p {
    color: white;
    margin-bottom: 40px;
    font-size: 14px;
    text-align: center;
}

/* CORRECCIÓN: Grid flexible para centrar items cuando hay menos de 3 */
.infracciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 35px;
    margin-top: 15px;
    margin-bottom: 35px;
    padding: 0 45px;
    justify-content: center;
}

.infraccion-desfase {
    transform: translateX(150px);
}

.infraccion-desfase:hover {
    transform: translateY(-2px) translateX(150px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.denuncia-responsable-section {
    margin: 30px 0 0 0;
    padding: 20px;
    margin-top: 30px;
    padding-bottom: 10px;
    border-radius: 8px;
    width: 100%;
}

.denuncia-responsable-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: 900px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .info-denuncia {
        padding: 15px;
    }
    .info-list-denuncia {
        padding-left: 25px;
    }
    .info-footer-denuncia {
        padding-left: 10px;
    }

    /* Grid de faltas: columnas flexibles que nunca desbordan */
    .infracciones-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
        padding: 0 10px;
        gap: 20px;
    }

    .infraccion-opcion,
    .infraccion-opcion img {
        width: 100%;
        height: auto;
    }

    .infraccion-desfase {
        transform: none;
    }

    .infraccion-desfase:hover {
        transform: translateY(-2px);
    }

    .faltas-content.open {
        padding: 12px;
    }
}