/* libro-reclamaciones.css (versión corregida) */

.libro-form {
    max-width: 1250px;
    margin: auto;
    padding: 30px 15px;
    box-sizing: border-box;
    font-family: inherit;
}

/* Títulos */
.libro-form .titform {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
}

.libro-form .titform.letra2 {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

/* Agrupación de campos */
.libro-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

/* Contenedores */
.libro-form .input-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
}

.libro-form .half-width {
    flex: 1 1 calc(50% - 10px);
}

.libro-form .full-width {
    flex: 1 1 100%;
}

/* Campos de entrada */
.libro-form input[type="text"],
.libro-form input[type="email"],
.libro-form input[type="number"],
.libro-form textarea,
.libro-form select {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
}

.libro-form textarea {
    min-height: 120px;
    resize: vertical;
    width: 100% !important;
}

/* Radios y etiquetas */
.libro-form label {
    font-size: 0.95em;
    color: #333;
    margin-bottom: 6px;
}

.libro-form input[type="radio"] {
    margin-right: 6px;
}

/* Checkbox */
.libro-form .form-checks {
    margin-top: 20px;
}

.libro-form .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.libro-form .form-check-input {
    margin-right: 10px;
}

.libro-form .form-check-label {
    font-size: 0.95em;
    color: #444;
}

/* Botón */
.libro-form .btn-box {
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease all;
    border: none;
}

.libro-form .btncolor01 {
    background-color: #005baa;
    color: #fff;
}

.libro-form .btncolor01:hover {
    background-color: #004b90;
}

.libro-form .icont {
    display: inline-block;
    letter-spacing: 1px;
}

/* Arregla el ancho de todos los <select> */
.libro-form select.form-control {
    display: block;
    width: 100% !important;
    max-width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1em;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #222;
    box-sizing: border-box;
}

.libro-form .third-width {
    flex: 1 1 calc(33.333% - 13.33px);
}

@media (max-width: 768px) {
    .libro-form .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .libro-form .third-width,
    .libro-form .half-width,
    .libro-form .full-width {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

.libro-form .enviar-btn {
    min-width: 220px;
    max-width: 300px;
    padding: 12px 30px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
}

/* Ajusta el checkbox y su alineación */
.libro-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.libro-form .form-check-input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 4px;
    cursor: pointer;
}

.libro-form .form-check-label {
    flex: 1;
    font-size: 0.95em;
    color: #333;
}

/* En móviles */
@media (max-width: 768px) {
    .libro-form .form-check {
        flex-direction: row;
        align-items: flex-start;
    }

    .libro-form .form-check-input {
        width: 18px;
        height: 18px;
    }

    .parrafo {
        font-size: 15px;
        text-align: center;
    }
    .letra {
        text-align: center;
    }
}

@media (max-width: 768px) {
  .botton-align {
    display: flex;
    justify-content: center;
  }

  .botton-align .enviar-btn {
    width: auto;
    min-width: 150px;
  }
}

/* Estilo para campos inválidos */
.libro-form.was-validated input:invalid,
.libro-form.was-validated select:invalid,
.libro-form.was-validated textarea:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    padding-right: 2rem;
}

/* Evitar que textarea crezca raro con icono */
.libro-form.was-validated textarea:invalid {
    background-position: right 0.75rem top 0.75rem;
}

/* Asegura que funcione en todos los navegadores modernos */
.libro-form.was-validated input:invalid:focus,
.libro-form.was-validated select:invalid:focus,
.libro-form.was-validated textarea:invalid:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

