/* ===== BASE ===== */
body {
    background: #eef1f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 🔥 elimina scroll lateral */
}

/* ===== HEADER FULL WIDTH ===== */
.card-header {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white !important;
    padding: 20px;
    border-radius: 0;
}

/* ===== CONTENEDOR ===== */
.card-body {
    padding: 25px;
}

/* ===== GRID PRINCIPAL ===== */
.form-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* COLUMNAS */
.columna {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* TITULOS */
.columna h4 {
    border-left: 5px solid #2c3e50;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* ===== INPUTS ===== */
.form-control {
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    padding: 10px;
    transition: 0.2s;
}

.form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 6px rgba(44, 62, 80, 0.2);
}

/* ===== ARCHIVO CENTRADO ===== */
.bloque-archivo {
    margin-top: 25px;
    text-align: left;
}

.bloque-archivo .form-group {
    max-width: 100%;
}

/* ===== BOTONES ===== */
.card-footer {
    text-align: right;
    background: #fafafa;
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.btn-secundario {
    background: #ecf0f1;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.btn-secundario:hover {
    background: #dfe4e8;
}

/* ===== RESULTADO ===== */
#resultadoCancelacion {
    text-align: center;
    margin-top: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-grid {
        flex-direction: column;
    }
    .card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary, .btn-secundario {
        text-align: center;
    }
}

/* Línea divisoria elegante */
.columna-izquierda {
    border-right: 2px solid #eee;
}

/* Iconos */
h4 i {
    margin-right: 8px;
    color: #2c3e50;
}

/* Inputs válidos */
.form-control.valido {
    border-color: #27ae60;
}

.form-control.error {
    border-color: #e74c3c;
}

/* Archivo centrado más elegante */
.bloque-archivo h4 {
    text-align: center;
}

/* Resultado más bonito */
#resultadoCancelacion h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

#resultadoCancelacion p {
    font-size: 20px;
}
#resultadoCancelacion img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.form-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch; /* 🔥 clave */
}

.footer-notarial {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    font-size: 13px;
    color: #7f8c8d;
    border-top: 1px solid #e0e0e0;
}

.footer-notarial p {
    margin: 0;
    letter-spacing: 0.5px;
}

/* ===== VALIDACIONES ===== */
.input-error {
    border-color: #e74c3c !important;
}

.input-ok {
    border-color: #27ae60 !important;
}

.mensaje-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

.mensaje-ok {
    color: #27ae60;
    font-size: 12px;
    margin-top: 4px;
}

/* Centrar todo el formulario */
.content-wrapper .row {
    display: flex;
    justify-content: center;
}

/* Limitar ancho del card */
.card {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.content {
    display: flex;
    justify-content: center;
    padding: 10px;
}

/* FORZAR HEADER A PANTALLA COMPLETA */
.header-notarial {
    width: 100%;
    background: linear-gradient(135deg, #3b5166, #243342);
    padding: 20px 0;
    margin: 0;
}

.header-contenido {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    gap: 15px;
    padding: 0 20px;
}

.header-contenido img {
    height: 55px;
}

.header-contenido h1 {
    flex: 1;
    font-size: 22px;
    margin: 0;
    font-weight: 500;
}

.btn-regresar {
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

/* Espaciado para que no se vea pegado */
.content {
    margin-top: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #2c3e50;
}

/* Inputs más grandes */
.form-control {
    height: 48px;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 10px;
}

/* Select igual de grande */
select.form-control {
    height: 48px;
}

/* Archivo más cómodo */
input[type="file"].form-control {
    height: auto;
    padding: 10px;
}

.form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.15);
    background-color: #fdfefe;
}

.form-group {
    margin-bottom: 18px;
}

.form-control {
    transition: all 0.2s ease;
}

/* TITULOS MÁS VISUALES */
.columna h4 {
    border-left: 6px solid #2c3e50;
    padding-left: 12px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #1a252f;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ICONOS MÁS VISIBLES */
.columna h4 i {
    font-size: 18px;
    color: #2c3e50;
}

/* Subrayado elegante */
.columna h4::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #2c3e50;
    margin-top: 6px;
    border-radius: 2px;
}

::placeholder {
    color: #95a5a6;
    font-size: 14px;
}

/* MEJORAS INTUITIVAS ADICIONALES (sin dañar el código original) */
.campo-ayuda {
    font-size: 11px;
    color: #7f8c8d;
    display: block;
    margin-top: 4px;
}

.etiqueta-archivo {
    font-weight: 600;
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 30px;
    display: inline-block;
    cursor: pointer;
    transition: 0.2s;
}
.etiqueta-archivo:hover {
    background: #e2e6ea;
}

.feedback-inline {
    display: block;
    font-size: 11px;
    margin-top: 4px;
}

.feedback-archivo {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

/* Ajuste responsive */
@media (max-width: 650px) {
    .header-contenido h1 {
        font-size: 16px;
    }
    .btn-regresar {
        padding: 5px 12px;
        font-size: 12px;
    }
    .card-body {
        padding: 15px;
    }
}