/* ========================================
   SECCIÓN DATOS DE FACTURACIÓN
   Maqueta para Instituto Serca
   ======================================== */

.seccion_facturacion {
    margin-top: 25px;
    margin-bottom: 30px;
    background: #f5fbfc;
    border: 2px solid #005348;
    border-radius: 6px;
    overflow: hidden;
}

.btn_despliega_facturacion {
    width: 100%;
    padding: 14px 18px;
    background: #005348;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.btn_despliega_facturacion:hover {
    background: #003d35;
}

.btn_despliega_facturacion:focus {
    outline: none;
    box-shadow: none;
}

.btn_despliega_facturacion .icono_facturacion {
    margin-right: 10px;
    font-size: 16px;
    color: #fff;
}

.btn_despliega_facturacion .flecha_facturacion {
    margin-left: auto;
    font-size: 12px;
    color: #fff;
    transition: transform 0.2s ease;
}

.btn_despliega_facturacion .flecha_facturacion:before {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.btn_despliega_facturacion[aria-expanded="true"] .flecha_facturacion {
    transform: rotate(180deg);
}

.contenido_facturacion {
    padding: 20px;
    background: #f5fbfc;
}

.checkbox_mismos_datos {
    margin-bottom: 18px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.checkbox_mismos_datos input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #005348;
}

.checkbox_mismos_datos label {
    font-size: 14px;
    color: #005348;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.campos_facturacion {
    margin-bottom: 15px;
}

.campos_facturacion .row {
    margin-bottom: 0;
}

.campos_facturacion input,
.campos_facturacion select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dfdfdf;
    font-size: 15px;
    color: #005348;
    margin-bottom: 15px;
    background: #fff;
}

.campos_facturacion input::placeholder {
    color: #999;
}

.campos_facturacion select.placeholder-active {
    color: #999 !important;
}

.campos_facturacion select option {
    color: #005348;
}

.campos_facturacion select option[value=""] {
    color: #999;
}

.campos_facturacion input:hover,
.campos_facturacion input:focus,
.campos_facturacion select:hover,
.campos_facturacion select:focus {
    border-color: #005348;
    outline: none;
}

/* Estilos para campos readonly/disabled */
.campos_facturacion input.readonly-field,
.campos_facturacion select.readonly-field,
.campos_facturacion select:disabled {
    background-color: #e8f0ef;
    color: #4a6b66;
    cursor: not-allowed;
    border-color: #c5d8d5;
}

.campos_facturacion select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23005348' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 35px;
}

.campos_facturacion label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #000;
    font-weight: 600;
}

.aviso_facturacion {
    padding: 12px 15px;
    background: #fef2f2;
    border-left: 4px solid #c41e3a;
    border-radius: 0;
    font-size: 13px;
    color: #9b1c31;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.aviso_facturacion i {
    margin-right: 10px;
    font-size: 14px;
    margin-top: 2px;
    color: #c41e3a;
}

/* Responsive */
@media (max-width: 768px) {
    .btn_despliega_facturacion {
        padding: 12px 15px;
        font-size: 14px;
    }

    .contenido_facturacion {
        padding: 15px;
    }

    .campos_facturacion input,
    .campos_facturacion select {
        padding: 10px 12px;
    }

    .checkbox_mismos_datos {
        padding: 10px 12px;
    }

    .checkbox_mismos_datos label {
        font-size: 13px;
    }
}
