@charset "utf-8";
/* CSS Document */

/* forma de contacto */ 

/* .cajaForma { width:90%; margin:auto; } */

.cajaFormu {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fa;
}

.form-credito {
    max-width: 900px;
    margin: 40px auto;
}

.form-block {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.form-block h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #1e293b;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Tamaños */
.full { grid-column: span 12; }
.half { grid-column: span 6; }
.small { grid-column: span 4; }

/* Campo moderno */
.form-field {
    position: relative;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 16px 14px;
    border: 1px solid #bad3e5;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Floating label */
.form-field label {
    position: absolute;
    left: 14px;
    top: 16px;
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field select:focus + label,
.form-field select:not([value=""]) + label {
    top: -8px;
    left: 10px;
    background: #fff;
    padding: 0 5px;
    font-size: 11px;
    color: #2563eb;
}

/* Checkbox elegante */
.form-check {
    grid-column: span 12;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.form-check input {
    width: 18px;
    height: 18px;
}

/* Botón */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: #2563eb;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-submit:hover {
    background: #1d4ed8;
}

.hidden {
    display: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .half, .small, .full {
        grid-column: span 1;
    }
}

/*Validar Envio forma */
.error-message {
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
    min-height: 16px;
}

.field-error input,
.field-error select {
    border-color: #dc2626 !important;
    background: #fef2f2;
}

.field-success input,
.field-success select {
    border-color: #16a34a !important;
}

.mensajeFormFail, .mensajeFormExito { padding:20px; color:#000; margin-bottom:20px; text-align:center; line-height:20px; }
.mensajeFormFail { background-color:#f4eb90; }
.mensajeFormExito { background-color:#e6e6e6; }
